FirefoxBar / xStyle

A user styles manager for Firefox and Chrome
http://team.firefoxcn.net/#addons
GNU General Public License v3.0
171 stars 13 forks source link

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

Open Crystal-RainSlide opened 6 years ago

Crystal-RainSlide commented 6 years ago

更新样式

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

两种的更新链接例如:

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 commented 6 years ago

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

Crystal-RainSlide commented 6 years ago

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

Crystal-RainSlide commented 6 years ago

又有新网站啦……

Crystal-RainSlide commented 5 years ago

https://github.com/FirefoxBar/xStyle/blob/master/popup.html 建议将此文件中的 http://freestyler.ws/ 更改为 https://freestyler.ws/

sylingd commented 5 years ago

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