Giter Club home page Giter Club logo

Comments (5)

02030pllolipop avatar 02030pllolipop commented on June 2, 2024 2

@gera2ld 一样不?
default

from violentmonkey-mx.

Sunev avatar Sunev commented on June 2, 2024

打包后的代码为
image

...

                GM_getResourceText: {
                    value: function (t) {
                        if (t in f) {
                            var n = f[t],
                                a = e[n];
                            return a && o(window.atob(a))
                        }
                    }
                },
...

console输出错误:

Uncaught ReferenceError: o is not defined

from violentmonkey-mx.

Sunev avatar Sunev commented on June 2, 2024

上述涉及的function utf8decode(utftext)被打包为

    "utf8decode": function o(t) {
        for (var e = "", n = 0, o = 0, a = 0, i = 0; n < t.length;) o = t.charCodeAt(n), o < 128 ? (e += String.fromCharCode(o), n += 1) : o > 191 && o < 224 ? (a = t.charCodeAt(n + 1), e += String.fromCharCode((31 & o) << 6 | 63 & a), n += 2) : (a = t.charCodeAt(n + 1), i = t.charCodeAt(n + 2), e += String.fromCharCode((15 & o) << 12 | (63 & a) << 6 | 63 & i), n += 3);
        return e
    },

所以在试图调用o(window.atob(a))时,因为未定义而报错

from violentmonkey-mx.

gera2ld avatar gera2ld commented on June 2, 2024

@kliop00023 不一样,这是CSP的权限控制问题,傲游无解。

from violentmonkey-mx.

gera2ld avatar gera2ld commented on June 2, 2024

fixed in v2.7.0

from violentmonkey-mx.

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.