Code Monkey home page Code Monkey logo

Comments (7)

fakeyanss avatar fakeyanss commented on August 16, 2024 1

我看很多issue都聊了可以注入,但是我不熟悉js,在这里也查了挺久才解决的。

最开始是监听click事件,找到点击的这个dom元素的跳转目标地址,然后 window.eval("window.location.replace('" + url + "')") 更新当前页的地址。

后来发现可以重写全局的window.open方法,更简单

window.open = function (open) {
  return function (url, name, features) {
    window.top.location = url;
    return false;
  };
}(window.open);

from pake.

tw93 avatar tw93 commented on August 16, 2024

其实有解法,注入js,改写链接跳转方式即可

from pake.

lencx avatar lencx commented on August 16, 2024

我们早上就聊到了这种方式,如果要改写所有新开窗口的方式,注入脚本可靠吗?有些可能是通过事件触发的。

from pake.

tw93 avatar tw93 commented on August 16, 2024

这个pake已经实现了
话说有兴趣一起来建设pake不 我拉你进群

from pake.

lencx avatar lencx commented on August 16, 2024

可以呀,我也在搞类似的事情,我也实现了,通过脚本注入。

from pake.

tw93 avatar tw93 commented on August 16, 2024

我的 tg 号是 Hitw93,你加我一下,我拉你进群

from pake.

lencx avatar lencx commented on August 16, 2024

好的,谢谢

from pake.

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.