Giter Site home page Giter Site logo

Comments (9)

CodFrm avatar CodFrm commented on June 8, 2024

看起来是不符合预期的,沙盒模式下,不应该能通过window访问到Quill

from scriptcat.

CodFrm avatar CodFrm commented on June 8, 2024

刚刚试了一下,3个脚本管理器表示都不一样,不过我认为从设计上来说,tm的表现形式应该是正确的 (vm加上setTimeout后正确,难道是vm执行太快了?)

image

from scriptcat.

WindrunnerMax avatar WindrunnerMax commented on June 8, 2024

我感觉严格上来说,第二个表现应该是比较正确?

from scriptcat.

CodFrm avatar CodFrm commented on June 8, 2024

是的,第二个是tampermonkey

from scriptcat.

CodFrm avatar CodFrm commented on June 8, 2024

我不带window访问也可以获取到,期望应该是获取不到的🤯

    console.log("tm Quill", Quill)
    console.log("tm window", "------", window.Quill)
    console.log("tm unsafeWindow", "------", unsafeWindow.Quill)
    console.log("tm onload", window.onload, unsafeWindow.onload)

from scriptcat.

WindrunnerMax avatar WindrunnerMax commented on June 8, 2024

funny

from scriptcat.

CodFrm avatar CodFrm commented on June 8, 2024

处理了,目前的表现形式与tm一致了,哥哥可以试试这个版本:https://github.com/scriptscat/scriptcat/actions/runs/8873074186

但是不知道会不会对其它内容产生影响,单元测试是通过了(

from scriptcat.

WindrunnerMax avatar WindrunnerMax commented on June 8, 2024

ggnb

from scriptcat.

CodFrm avatar CodFrm commented on June 8, 2024

fix: https://github.com/scriptscat/scriptcat/actions/runs/8874658426

b93be76...b5c2910

from scriptcat.

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.