Giter VIP home page Giter VIP logo

Comments (6)

jiacai2050 avatar jiacai2050 commented on June 2, 2024
  • 第一个可以在 sandbox 里面测试下,看看哪里出了问题
  • 第二个已经创建了。#122

from gooreplacer.

inkroom avatar inkroom commented on June 2, 2024
  • 第一个可以在 sandbox 里面测试下,看看哪里出了问题

我尝试替换类似的url也是这样,sandbox里替换处理的结果就是url编码后的值,没有处理过。

网页上就是一点动静都没有

要替换的url是

https://www.oschina.net/action/GoToLink?url=https%3A%2F%2Flists.fedoraproject.org%2Farchives%2Flist%2Fdevel%40lists.fedoraproject.org%2Fthread%2FJUJV6BEJAXK5LATTSWGRFZDIAVM7KN4J%2F

规则是:

    {
      "src": "https://www\.oschina\.net/action/GoToLink\?url=(.*)",
      "kind": "regexp",
      "dst": "$1",
      "enable": true
    }

sandbox里提示如下:

匹配成功!https://www.oschina.net/action/GoToLink?url=https%3A%2F%2Flists.fedoraproject.org%2Farchives%2Flist%2Fdevel%40lists.fedoraproject.org%2Fthread%2FJUJV6BEJAXK5LATTSWGRFZDIAVM7KN4J%2F 被重定向到 https%3A%2F%2Flists.fedoraproject.org%2Farchives%2Flist%2Fdevel%40lists.fedoraproject.org%2Fthread%2FJUJV6BEJAXK5LATTSWGRFZDIAVM7KN4J%2F

from gooreplacer.

jiacai2050 avatar jiacai2050 commented on June 2, 2024

sandbox 有提示,说明规则没问题,那么大概率就是插件拿到的地址是没有 url encoding 的,用 encoding 之前的试试看?

from gooreplacer.

hdtopku avatar hdtopku commented on June 2, 2024

from gooreplacer.

hdtopku avatar hdtopku commented on June 2, 2024

image

如图,其他插件有进行链接解码

from gooreplacer.

Lehmaning avatar Lehmaning commented on June 2, 2024
  • 第一个可以在 sandbox 里面测试下,看看哪里出了问题

同样的问题。

  • 规则:^https://link\..*\..*/\?target=http(s?)(?:%3A|:)(?:%2F%2F|//)
  • 链接:https://link.juejin.cn/?target=https%3A%2F%2Fgithub.com%2Frgripper%2Frusty-bomber

沙盒测试结果是https://github.com%2Frgripper%2Frusty-bomber,可能因为这个原因,我的 Firefox 没认为这是个有效的 URL,于是就没有重定向……预期结果应该是https://github.com/rgripper/rusty-bomber,然后正常重定向才对。另外,如果 URL 里的中文没有经过解码的话有的网站也只会显示 404,而不是正常的页面。

from gooreplacer.

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.