论坛
Firefox 桌面版
Firefox for Android
附加组件
RSS
搜索
登录
注册
pcxfirefox的个人空间
访问量
190
新鲜事
帖子
资料
https://www.firefox.net.cn/index.php?m=space&uid=39042
stylish脚本如何用-moz-document regexp匹配指定文件扩展名
我想使得某个脚本只针对扩展名为txt的文件,不论网络链接还是本地链接使用-moz-document regexp("*\.txt")变成了不只匹配txt,还有其他任何格式的(.sql, .c的都包含了)使用-moz-document regexp("...
全文
回复
(
5
)
2013-02-13 22:34
来自版块 -
Firefox 扩展、插件、脚本和样式
◆
◆
表情
告诉我的粉丝
提 交
taglife
:
打頭 是什麼?
(2013-02-13 22:34)
回复
pcxfirefox
:
这些都是可以同时使用的 例如 @document url(http://www.w3.org/), url-prefix(http://www.w3.org/Style/), domain(mozilla.org), ...
(2013-02-13 22:34)
回复
iwo
:
+1支持
问多一些(已知url-prefix可以区分scheme,想知道regexp能否这样做): 那么如何匹配 http://打头, .js或xul结尾的呢(伪挨踢看代码用,好像也是pre的class) 或匹配 http://打头,所有网页embed内容(那啥,想给...
(2013-02-13 22:34)
回复
pcxfirefox
:
我最终测试出来了 @-moz-document regexp(".*\.(t|T)(x|X)(t|T)") 这样就可以匹配了
(2013-02-13 22:34)
回复
taglife
:
@-moz-document regexp("((?!twitter.com).)*") 排除 Twitter 是這樣寫的
(2013-02-13 22:34)
回复
pcxfirefox
加关注
写私信
6
关注
31
粉丝
2539
帖子
返回顶部