FirefoxBar / xStyle

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

@document can only get the part of css from firefox stylish #5

Closed 0w0miki closed 7 years ago

0w0miki commented 7 years ago

I imported from xml to xStyle follow the instruction. All styles are imported, but none is effective. From the editing interface, only the first domain matching. Such as the following effective css in stylish

@-moz-document domain("www.baidu.com"), domain("www1.baidu.com") {

in xStyle

, domain("www1.baidu.com") {

This is an error here. The application object does not recognize the www1.baidu.com domain, and correspondingly xStyle.json file shows

{"sections":[{"urls":[],"urlPrefixes":["http://baidu.com"],"domains":[],"regexps":[],"code":", url-prefix(\"http://www.baidu.com\"), url-prefix(\

You can also see that only the first scope is extracted. My xStyle version is 1.3.1 and Firefox version is 54.0.


我跟着说明从火狐stylish导入到xStyle 所有样式都导入了 但是都没有效果 从编辑界面看 只有第一个应用对象匹配上了 比如stylish下面有效的css

@-moz-document domain("www.baidu.com"), domain("www1.baidu.com") {

在xStyle下

, domain("www1.baidu.com") {

这段报错 应用对象那里没有识别www1.baidu.com域,xStyle.json文件对应

{"sections":[{"urls":[],"urlPrefixes":["http://baidu.com"],"domains":[],"regexps":[],"code":", url-prefix(\"http://www.baidu.com\"), url-prefix(\

也可以看到只提取出了第一个作用域 xStyle版本1.3.1 火狐版本54.0

sylingd commented 7 years ago

已经尝试了一些修复,请再试一次(不需要更新扩展)

0w0miki commented 7 years ago

可以了(`・ω・´)