Comments (15)
是。实际执行的JS函数:url.replace(new RegExp('正则表达式'), '目标地址')
from headereditor.
正常规则应该是^http://www\.ftchinese\.com/story/(\d+)(.*?)$
重定向至:http://www.ftchinese.com/story/$1?full=y
from headereditor.
重定向去跳转规则都没有生效
匹配规则:https?:\/\/outgoing\.(prod\.mozaws|mozilla)\.(net|org)\/.*(http.*)
排除规则:
重定向至:$3
网址:https://outgoing.mozilla.org/v1/5c2a5620285210f7267fdf87cfd39943f03f42538d2d98eec0b0cf5565dbca23/http%3A//vimium.github.io/
Redirector扩展可以跳转, headerEditor不行, 是不是因为不支持urldecode?
from headereditor.
@dupontjoy 正则写错了吧?
from headereditor.
正则没用代码格式, 斜杠被自动去掉了, 已改
from headereditor.
@sylingd
嗯,规则改为^(http://www\.ftchinese\.com/story/\d+).*$
就好了!
@dupontjoy
试试规则改为^https?://outgoing\.(prod.mozaws|mozilla)\.(net|org)/.*?(http.+)$
网址匹配以http开头,最好加上^,这样效率高
from headereditor.
@xinggsf 还是没有效果
from headereditor.
@dupontjoy 在正则工具中测试通过啊!
这扩展正则复杂些就失效
from headereditor.
原因是URL经过了编码,浏览器认为这个URL非法
和正则复杂与否没有任何关系
from headereditor.
已经增加自动解码功能(于e1e3039),可有效简化此类问题
from headereditor.
什么时候发布新版安装包
from headereditor.
@dupontjoy 后续工作(界面调整、BUG修复、本地化)完成后,预计今天或者明天
from headereditor.
还有个问题,
新版增加了"分组"功能, 但是在导出规则时, 分组的信息没有保存的样子
from headereditor.
@dupontjoy 就是这样设计的
from headereditor.
from headereditor.
Related Issues (20)
- [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
- [Question] Match by header (e.g. content-type) HOT 1
- ws和wss协议不能修改
- Firefox 102.13.0 modify response body not working ? HOT 1
- [Question] Only work on html, not on follows js.
- [BUG]ubuntu20.04 firefox 118规则列表界面加载不出来
- [Question] Troubleshooting cookies disappearing in redirect to another domain
- [Question] tls extensions edition
- [Question]我这重定向的自定义函数写对了吗? 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.