Code Monkey home page Code Monkey logo

Comments (15)

sylingd avatar sylingd commented on June 14, 2024

是。实际执行的JS函数:url.replace(new RegExp('正则表达式'), '目标地址')

from headereditor.

sylingd avatar sylingd commented on June 14, 2024

正常规则应该是^http://www\.ftchinese\.com/story/(\d+)(.*?)$
重定向至:http://www.ftchinese.com/story/$1?full=y

from headereditor.

dupontjoy avatar dupontjoy commented on June 14, 2024

重定向去跳转规则都没有生效
匹配规则: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.

sylingd avatar sylingd commented on June 14, 2024

@dupontjoy 正则写错了吧?
qq 20170914211531

from headereditor.

dupontjoy avatar dupontjoy commented on June 14, 2024

正则没用代码格式, 斜杠被自动去掉了, 已改

from headereditor.

xinggsf avatar xinggsf commented on June 14, 2024

@sylingd
嗯,规则改为^(http://www\.ftchinese\.com/story/\d+).*$就好了!
@dupontjoy
试试规则改为^https?://outgoing\.(prod.mozaws|mozilla)\.(net|org)/.*?(http.+)$
网址匹配以http开头,最好加上^,这样效率高

from headereditor.

dupontjoy avatar dupontjoy commented on June 14, 2024

@xinggsf 还是没有效果

from headereditor.

xinggsf avatar xinggsf commented on June 14, 2024

@dupontjoy 在正则工具中测试通过啊!
这扩展正则复杂些就失效

from headereditor.

sylingd avatar sylingd commented on June 14, 2024

原因是URL经过了编码,浏览器认为这个URL非法
和正则复杂与否没有任何关系

from headereditor.

sylingd avatar sylingd commented on June 14, 2024

已经增加自动解码功能(于e1e3039),可有效简化此类问题

from headereditor.

dupontjoy avatar dupontjoy commented on June 14, 2024

什么时候发布新版安装包

from headereditor.

sylingd avatar sylingd commented on June 14, 2024

@dupontjoy 后续工作(界面调整、BUG修复、本地化)完成后,预计今天或者明天

from headereditor.

dupontjoy avatar dupontjoy commented on June 14, 2024

还有个问题,
新版增加了"分组"功能, 但是在导出规则时, 分组的信息没有保存的样子

from headereditor.

sylingd avatar sylingd commented on June 14, 2024

@dupontjoy 就是这样设计的

from headereditor.

ivysrono avatar ivysrono commented on June 14, 2024

@dupontjoy #16

from headereditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.