Crystal-RainSlide / regex-subset-to-glob

MIT License
1 stars 0 forks source link

作者你好 阻止知乎在-firefox-android-下自动跳转至-zhihu 这个插件用不了啊 #1

Open QGB opened 3 years ago

QGB commented 3 years ago

https://greasyfork.org/zh-CN/scripts/411338-知乎-阻止知乎在-firefox-android-下自动跳转至-zhihu

这个插件用不了啊,我调试了一下发现 exportFunction undefined

if ( typeof exportFunction === "function" ) exportFunction(
    function (type, listener, ...args) {
        if ( type === "load" && typeof listener === "function" ) {
            const payload = String(listener);
            if (
                payload.includes('"zhihu://"') &&
                payload.includes('"?utm_source=mobile_web_scheme"')
            ) return;
        }
        EventTarget.prototype.addEventListener.apply(this, [type, listener, ...args]);
    }, window.wrappedJSObject, { defineAs: "addEventListener" }
);

exportFunction 只有在Firefox 移动版中有吗?

QGB commented 3 years ago

yandex for Android