Comments (9)
经测试,只要规则是以(.*)
、(.+)
这一类通配符开头的正则,就会卡住浏览器,但是单独在console里执行则不会。暂不清楚此原因。目前修复办法为暂时移除此类规则
from headereditor.
已在20170929测试,无法复现问题
from headereditor.
能否尝试等待一段时间,Firefox会提示“某个网页让您的浏览器变慢了”,选择停止,然后按CTRL+SHIFT+J,将错误截图给我?
from headereditor.
@sylingd 你好,我在网页中等了一会,没有提示“某个网页让您的浏览器变慢了”,我尝试打开about:addons -> Header Editor 选项,等了一会儿才会有这个提示.
第2张显示出来的时候, 浏览器刚好渲染出 Header Editor 选项的页面的内容
1
2
3
from headereditor.
能否将规则导出给我看看?看上去似乎是某个规则导致的问题
from headereditor.
用的是 @dupontjoy 的整合版 CingNightly-58.0a1-2017.09.23
{
"request": [
{
"enable": 1,
"name": "Google ajax/fonts >> 科大",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/(ajax|fonts)\\.googleapis\\.com\\/(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "https://$1.proxy.ustclug.org/$2",
"id": 73
},
{
"enable": 1,
"name": "通用论坛简版>>完整版4",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "(.*)archive/index.php/t-(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1/showthread.php?t=$2",
"id": 74
},
{
"enable": 1,
"name": "通用论坛简版>>完整版3",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "(.+)/archiver/\\?tid-(\\d+).html",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1/thread-$2-1-1.html",
"id": 75
},
{
"enable": 1,
"name": "通用论坛简版>>完整版2",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "(.*)/archiver/tid-(.*)-page-.*.html",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1/thread-$2-1.html",
"id": 76
},
{
"enable": 1,
"name": "通用论坛简版>>完整版1",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "(.+)/archiver/tid-(\\d+).html",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1/viewthread.php?tid=$2",
"id": 77
},
{
"enable": 1,
"name": "sourceforge下载 >> 镜像站点",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/sourceforge\\.net\\/projects\\/(((\\w)\\w).*)\\/files\\/(.*)\\/download",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "http://master.dl.sourceforge.net/project/$1/$4",
"id": 78
},
{
"enable": 1,
"name": "般若文海article >> books",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/book\\.bfnn\\.org\\/article([\\d]?\\/.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "http://book.bfnn.org/books$1",
"id": 79
},
{
"enable": 1,
"name": "Google themes >> 科大",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/themes\\.googleusercontent\\.com\\/(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "https://google-themes.proxy.ustclug.org/$1",
"id": 80
},
{
"enable": 1,
"name": "微信图片重定向",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/(mmbiz\\.(qpic|qlogo)\\.cn\\/[^?]+)\\?.*$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "http://$1",
"id": 81
},
{
"enable": 1,
"name": "google搜索国家域名 >> google.com",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/www\\.google\\.(?:co|com)\\.(?:hk|jp|sg|kr)\\/(?:s\\?|search\\?|webhp\\?|.*\\&safe=strict)(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "https://www.google.com/search?$1",
"id": 82
},
{
"enable": 1,
"name": "FT中文网全文",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/www\\.ftchinese\\.com\\/story\\/(\\d+)(.*?)$",
"exclude": "^https?:\\/\\/www\\.ftchinese\\.com\\/story\\/(\\d+)\\/en",
"isFunction": 0,
"action": "redirect",
"to": "http://www.ftchinese.com/story/$1?full=y",
"id": 83
},
{
"enable": 1,
"name": "凤凰网 只显示首图修正",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/(.*)\\.ifeng\\.com\\/a\\/(ydzx|)\\/(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "http://$1.ifeng.com/a/$3",
"id": 84
},
{
"enable": 1,
"name": "凤凰网 图片修正",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/(.*)\\.ifeng\\.com\\/(.+)?shtml.+?(#p=.)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "http://$1.ifeng.com/$2shtml$3",
"id": 85
},
{
"enable": 1,
"name": "zhihu去跳转",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/link\\.zhihu\\.com\\/\\?target=(.+)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1",
"id": 86
},
{
"enable": 1,
"name": "AMO去跳转",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/outgoing\\.(mozilla\\.org|prod\\.mozaws\\.net)\\/v\\d+/\\w+/(.+)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$2",
"id": 87
},
{
"enable": 1,
"name": "Pocket去跳转",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/getpocket\\.com\\/redirect\\?url=(.*)&formCheck=.*$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1",
"id": 88
},
{
"enable": 1,
"name": "百度网盘去跳转",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/.+\\?url=((https?:\\/\\/)?pan\\.baidu\\.com\\/s\\/.+)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1",
"id": 89
},
{
"enable": 1,
"name": "douban去跳转",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/www\\.douban\\.com\\/link.*\\/\\?url=(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1",
"id": 90
},
{
"enable": 1,
"name": "Google fonts.gstatic >> 科大",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/fonts\\.gstatic\\.com\\/(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "https://fonts-gstatic.proxy.ustclug.org/$1",
"id": 91
},
{
"enable": 1,
"name": "Google storage >> 科大",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/storage\\.googleapis\\.com\\/(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "https://storage-googleapis.proxy.ustclug.org/$1",
"id": 92
},
{
"enable": 1,
"name": "Google gerrit >> 科大",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/gerrit\\.googlesource\\.com\\/(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "https://gerrit-googlesource.proxy.ustclug.org/$1",
"id": 93
},
{
"enable": 1,
"name": "secure.gravatar >> 科大",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^https?:\\/\\/secure\\.gravatar\\.com\\/(.*)$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "https://gravatar.proxy.ustclug.org/$1",
"id": 94
},
{
"enable": 1,
"name": "观察者网全文",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "^(https?:\\/\\/www\\.guancha\\.cn\\/.*\\_\\d+)\\.shtml$",
"exclude": "",
"isFunction": 0,
"action": "redirect",
"to": "$1_s.shtml",
"id": 95
}
],
"sendHeader": [
{
"name": "bing默认英文",
"ruleType": "modifySendHeader",
"pattern": ".*\\.bing\\.com.*",
"exclude": "",
"action": {
"name": "Accept-Language",
"value": "en-US"
},
"matchType": "regexp",
"isFunction": 0,
"enable": 1,
"id": 133
},
{
"enable": 1,
"name": "economist免订阅",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.economist\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "https://www.google.com/"
},
"id": 134
},
{
"enable": 1,
"name": "letv H5辅助",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": "^https?:\\/\\/w+\\.le(sports)?\\.com\\/.+\\.html",
"exclude": "",
"isFunction": 0,
"action": {
"name": "User-Agent",
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A"
},
"id": 135
},
{
"enable": 1,
"name": "wsj免订阅",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.wsj\\.(net|com).*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "https://www.facebook.com/"
},
"id": 136
},
{
"enable": 1,
"name": "ft免订阅",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.ft\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "https://www.google.com/"
},
"id": 137
},
{
"enable": 1,
"name": "sina图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.sinaimg\\.cn.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://blog.sina.com.cn/"
},
"id": 138
},
{
"enable": 1,
"name": "isnowfy图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.isnowfy\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 139
},
{
"enable": 1,
"name": "微信图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.(qpic|qlogo)\\.cn.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 140
},
{
"enable": 1,
"name": "waylee图片反盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.waylee\\.net.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 141
},
{
"enable": 1,
"name": "baidu图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*(bdimg|bdstatic|imgsrc\\.baidu)\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://www.baidu.com/"
},
"id": 142
},
{
"enable": 1,
"name": "QQ图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*photo\\.store\\.qq\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 143
},
{
"enable": 1,
"name": "tianya图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.(laibafile|tianya|tianyablog)\\.(cn|com).*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://www.tianya.cn/"
},
"id": 144
},
{
"enable": 1,
"name": "126图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*(ph|bimg)\\.126\\.net.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 145
},
{
"enable": 1,
"name": "chiphell图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.chiphell\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 146
},
{
"enable": 1,
"name": "pconline图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.pconline\\.com\\.cn.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://www.pconline.com.cn/"
},
"id": 147
},
{
"enable": 1,
"name": "pixiv图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.pixiv\\.net.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "https://www.pixiv.net/"
},
"id": 148
},
{
"enable": 1,
"name": "poco图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.poco\\.cn.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 149
},
{
"enable": 1,
"name": "autoimg图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.autoimg\\.cn.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://club.autohome.com.cn/"
},
"id": 150
},
{
"enable": 1,
"name": "douban图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.douban\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://www.douban.com"
},
"id": 151
},
{
"enable": 1,
"name": "jiandan图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*jdstatic\\.tankr\\.net.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://jandan.net/"
},
"id": 152
},
{
"enable": 1,
"name": "imanhua图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.mangafiles\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://www.imanhua.com/"
},
"id": 153
},
{
"enable": 1,
"name": "tudou图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.tudou\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "http://www.tudou.com/"
},
"id": 154
},
{
"enable": 1,
"name": "sina图片盗链-2",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*photo\\.sina\\.com\\.cn.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 155
},
{
"enable": 1,
"name": "得到图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.(igetget|luojilab)\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 156
},
{
"enable": 1,
"name": "zol图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.(zol|zol-img)\\.com\\.cn.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 157
},
{
"enable": 1,
"name": "postimg图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.(postimg|postimage)\\.org.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 158
},
{
"enable": 1,
"name": "yahoo图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*blogs\\.yahoo\\.co\\.jp.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 159
},
{
"enable": 1,
"name": "cnbeta图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*img\\.cnbeta\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 160
},
{
"enable": 1,
"name": "imgur图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.imgur\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 161
},
{
"enable": 1,
"name": "quora图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.quora\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 162
},
{
"enable": 1,
"name": "tumblr图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.tumblr\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 163
},
{
"enable": 1,
"name": "wuyou图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.wuyou\\.net.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 164
},
{
"enable": 1,
"name": "baidu图片盗链-2",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*hiphotos\\.baidu\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 165
},
{
"enable": 1,
"name": "178图片盗链",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*img.*\\.178\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": ""
},
"id": 166
},
{
"enable": 1,
"name": "Save-Data: on",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Save-Data",
"value": "on"
},
"id": 172
},
{
"enable": 1,
"name": "statista免订阅",
"ruleType": "modifySendHeader",
"matchType": "regexp",
"pattern": ".*\\.(statista|)\\.com.*",
"exclude": "",
"isFunction": 0,
"action": {
"name": "Referer",
"value": "https://www.google.com"
},
"id": 173
}
],
"receiveHeader": [ ]
}
from headereditor.
我查看了崩溃日志,似乎是Nightly对正则表达式的处理有点毛病
from headereditor.
Nightly 2017-09-29更新后出现的问题
看明天Moz会不会修复了
from headereditor.
尝试了修复,但是似乎不是我能修复的……
from headereditor.
Related Issues (20)
- [Question] 请问设置里的“规则对header editor无效”是什么意思? HOT 1
- [Question] Help making a rule HOT 3
- [Question] 能否通过检测窗口大小来设置浏览器 UA? HOT 13
- 第三方规则:复杂跨域
- [Question] 可以重定向 js 文件吗 HOT 2
- [BUG]webWorkers发起的请求无法拦截修改请求头 HOT 1
- [Question] 如何加载JS小书签?问题 2.0 版本 HOT 6
- [BUG] Redirector rule converter website broken HOT 1
- [Question]关于网址的重定向 HOT 2
- { "request": [ { "enable": true, "name": "bing-cn-to-www", "ruleType": "redirect", "matchType": "prefix", "pattern": "https://cn.bing.com", "exclude": "", "group": "bing-redirect", "isFunction": false, "action": "redirect", "to": "https://www.bing.com" } ], "sendHeader": [ { "enable": true, "name": "bing", "ruleType": "modifySendHeader", "matchType": "regexp", "pattern": "^http(s?)://www\\.bing\\.com/(.*)", "exclude": "", "group": "bing-direct", "isFunction": false, "action": { "name": "x-forwarded-for", "value": "8.8.8.8" } } ], "receiveHeader": [], "receiveBody": [] }
- [Feature Request] Support sync to WebDAV
- 123
- [Question]Edge浏览器不支持HE的自定义函数? HOT 1
- [Question]why did Header Editor for edge on macos not work HOT 4
- 1
- head editor
- [Question] How to delete a header in a custom function
- bing
- canshu
- [BUG] 在别的插件中显示sina-img图片返回status 403 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headereditor.