Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加强对 FreeStyler.ws 与 OpenUserCSS 的支持 #64

Open
Crystal-RainSlide opened this issue May 24, 2018 · 5 comments
Open

加强对 FreeStyler.ws 与 OpenUserCSS 的支持 #64

Crystal-RainSlide opened this issue May 24, 2018 · 5 comments

Comments

@Crystal-RainSlide
Copy link

Crystal-RainSlide commented May 24, 2018

更新样式

不带高级选项的话支持起来应该挺简单的。

两种的更新链接例如:

https://freestyler.ws/api/v2/get_css.php?json=[{"id"%3A"155926"%2C"params"%3A[]}]
https://freestyler.ws/api/v2/get_css.php?json=[{"id"%3A"155950"%2C"params"%3A[{"value"%3A"0px 3px 1px -2px rgba(0%2C 0%2C 0%2C 0.2)%2C 0px 2px 2px 0px rgba(0%2C 0%2C 0%2C 0.14)%2C 0px 1px 5px 0px rgba(0%2C 0%2C 0%2C 0.12)"%2C"type"%3A"text"%2C"option_id"%3A"40242"}]}]

而带高级选项的后者会解析得到:

json=[{
"id":"155950",
"params":[{
  "value":"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",
  "type":"text",
  "option_id":"40242"
}]
}]

里面没有这个文本项的名称2dp
下面的也没有。

https://freestyler.ws/api/v2/get_styles_info.php?json=%5B%22155950%22%5D

可能得看看他们官方拓展的操作了。

OpenUserCSS:
https://openusercss.org/

@sylingd
Copy link
Member

sylingd commented Jun 5, 2018

因为freestyler比较小众,所以只提供了有限的支持
最近几个月比较忙,所以没怎么更新扩展。有空的话会考虑提供更多支持的

@Crystal-RainSlide
Copy link
Author

那…支持的 Userstyle 里自带高级选项吗?

@Crystal-RainSlide Crystal-RainSlide changed the title 加强对 FreeStyler.ws 的支持 加强对 FreeStyler.ws 与 OpenUserCSS 的支持 Aug 27, 2018
@Crystal-RainSlide
Copy link
Author

又有新网站啦……

@Crystal-RainSlide
Copy link
Author

@sylingd
Copy link
Member

sylingd commented Sep 12, 2018

OpenUserCSS的CSS格式与本应用的格式不兼容,集成难度比较大,暂不考虑。
http://freestyler.ws/更改为https://freestyler.ws/会尽快生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants