Greasy Fork is available in English.

去除360安全/极速扩展中心限制

让其他基于Chromium的浏览器可以直接从360安全/极速扩展中心下载扩展,不主动 不解释 不负责

// ==UserScript==
// @name         去除360安全/极速扩展中心限制
// @author       huqiu2
// @version      2.0.0.0
// @grant        unsafeWindow
// @run-at       document-idle
// @license      MPL-2.0
// @description  让其他基于Chromium的浏览器可以直接从360安全/极速扩展中心下载扩展,不主动 不解释 不负责
// @icon         data:image/x-icon;base64,AAABAAIAICAAAAEAIACoEAAAJgAAABAQAAABACAAaAQAAM4QAAAoAAAAIAAAAEAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4f8oAOH/ZgDh/6EA4f/MAOH/4gDh/+AB4P/FAeD/jQHf/00C3v8XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADh/84A4f//AOH//wDg//8B4P//Ad///wHf//8C3v//At3//wPd//8D3P/KBNv/NQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOH/kQHg//8B4P//Ad///wLe//8C3v//At3//wPc//8D2///BNr//wTZ//8F2f//Bdj/ngbX/wQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALucRFjDkD38z4g7INd8M8TfcC/842wz9M9ok/yLaeP8F3PP/A9z//wPc//8E2///BNr//wXZ//8F2P//Btf//wbW//8H1f//B9T/twjT/wIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK+oTAS3oEnQv5hD5MeQP/zPhDf823gz/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W8//8Au///ALr//wC6//8UUv7/GTv+/xo9//8aP//eGkD/ASntFBQp7BT/K+sT/yzpEv8u5xH/NuEP/562Df/knwz/9qAM//mkDP/6qAz/96kL/92tCv9xyhX/KtYZ/yXXGv8m1xn/JtYZ/znPDv8Rw///EsL//wq9//8BuP//ALj//wC3//8AuP//ALj//xg//v8ZOv7/Gj3//xo///8aQP8eKe0USCrsFP8r6hP/LegS/3LHDv/vlwz/95wN//ieDP/5oQz/+aUM//qnDP/7qwz/+64L//ywC//htw3/W84X/yTWG/8j1hv/OM4V/w+9//8Dt///ALT//wC1//8AtP//ALT//wC0//8Fof//GTb9/xk5/v8ZPP7/Gj7//xpA/10p7RR+KuwU/yzqE/+LvQ7/9JQN//aZDP/3mwz/+J4M//miDP/5pQz/+qgM//urC//8rgv//LIR//7elv//+u//8/zw/6Dtnf86yzj/A7L//wCx//8AsP//ALH//wCx//8Asf//ALH//w9i/v8ZNf3/GTj+/xk7/v8aPf//Gj//nintFLAq6xP/Zc8Q//STDf/2lg3/9pkM//ebDf/4ng3/+KIM//mkDP/6qAz/+6sM//utDv/916H//////////////////////6Dj0P8Arf//AK3//wCt//8Arf//AK3//wCt//8Fl///GDL8/xgz/f8ZNv7/GTn+/xo8/v8aPv/NKewUfjLoE7Tolg369ZQN//aXDf/2mQ3/95sN//ifDP/5ogz/+aUM//qoDP/7qRH/821i//3w+f//////////////////////7fn//wCp//8Aqf//AKn//wCq//8Aqv//A57//xQ5/P8YLvz/GDL9/xk1/f8ZOP7/GTv+/xo9/+MAAAAA9ZINUfWSDf/1kg3/9ZIN//WTDf/1lA3/9pUN//aYDf/3mg3/+JwP//Fgcf/pKbn//fD6///////////////////////s+P//AKf//wCm//8Ap///AKb//wWO/v8UM/v/Fyn7/xct/P8YMP3/GDT9/xk3/v8ZOv7/Gjz+3QAAAAD1lQ6m9ZUO//WVDv/1lQ7/9ZUO//WVDv/1lQ7/9ZUO//WVDv/yblb/6S28/+ktvP/1o+L//////////////////////4/X//8ApP//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fyrsFLFE3hL/06MN//idDP/5owz/+6kM//ywDf/O12r/d+Vx/yHCk/8Bs///ALP//wCz//8SXP7/GTr+/xo+/74s6xO4zaMO/vaYDf/4nQ3/+aMM//upDf/6uIP///////////9jzfP/AKv//wCs//8Hh/7/GDH9/xk3/v8aPP7s9ZQOPvWUDv/1lA7/9ZUO//aXDv/xZmX/8XrU////////////X8f//wGg//8LZv3/Fir7/xgu/P8ZNf3/GTr+5febEXL3mxH/95sR//ebEf/2jCv/7DO+/+wzwf/Nf+L/f4z+/zhQ+f8sN/v/Fx36/xYj+/8XK/z/GDL9/xk4/qb3oxNr+KMU//ijFP/4oxT/9HBp//A5yP/wOcf/4i7A/z859/8sOv3/LDr9/yg1/P8YI/r/Fyj7/xgv/PoZNf00+akWF/mrFvv6rBf/+qwX//Zzd//zQc//80DP//AywP/HMsz/NzL2/yEx/P8hMfz/IC/8/xkn++4XK/xQAAAAAAAAAAD6sxmF+7Qa//u0Gv/5gHH/9kjW//ZF0//0P8z/9D/M/+c+z/+YOOL/czXq/4M25v+/O9nM9ULPDwAAAAAAAAAA/LkcA/y6HLH8ux3/+601//lP2f/4Tdn/+EzY//hM2P/4TNj/+EzY//hM2P/4TNj/+EvXvvdJ1QgAAAAAAAAAAAAAAAD9wB4D/cEeg/3BHvv8jH7P/Fbh/fxX4v/8V+L//Ffi//xX4v/8VuH9+1XgmPtU3wgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+xSAc/sUgHf5e6D7+X+my/l/p5P5f6dL+XuiP/l7oLwAAAAAAAAAAAAAAAAAAAAD4DwAA4AcAAIADAACAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAACAAQAAgAEAAMADAADwDwAA
// @match        https://ext.se.360.cn/*
// @match        https://ext.chrome.360.cn/*
// @require      https://cdn.staticfile.org/jquery/3.7.1/jquery.min.js
// @namespace    https://greasyfork.org/zh-CN/scripts/481066
// ==/UserScript==

(function () {

    function matchURL(x) {
        return window.location.href.indexOf(x) != -1;
    }

    // 360极速扩展中心
    if (matchURL("ext.chrome.360.cn")) {
        Object.defineProperty(navigator,"userAgent",{value:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 QIHU 360EE",writable:false,configurable:false,enumerable:true});
        document.getElementById('yellowtip').remove();
    }

    // 360安全扩展中心
    if (matchURL("ext.se.360.cn")) {
        Object.defineProperty(navigator,"userAgent",{value:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36 QIHU 360SE",writable:false,configurable:false,enumerable:true});
        // 选择要删除的 script 元素
        var scripts = document.querySelectorAll('script[src="js/se6api.js"], script[src="js/appcenter.js?v=2"]');

        // 如果找到了要删除的 script 元素,则删除它
        if (scripts.length > 0) {
            scripts.forEach(function (script) {
                script.remove();
                console.log("360 脚本被删除了");
            });
        }

        // 提取JSON函数
        function extractJSONFunction() {
            if (typeof unsafeWindow.extlist !== 'undefined') {
                return unsafeWindow.extlist;
            } else {
                console.error('extlist 对象未定义');
                return null;
            }
        }

        // 替换div元素中a标签的href值
        var divs = document.querySelectorAll('div.appwrap');
        for (var i = 0; i < divs.length; i++) {
            var crx_id = divs[i].getAttribute('crx_id');
            var extlist = extractJSONFunction(); // 调用提取 JSON 函数获取 extlist 的 JSON 数组
            if (extlist[crx_id]) {
                var filename = extlist[crx_id].filename;
                var aTag = divs[i].querySelector('a.install');
                aTag.setAttribute('href', filename); // 替换 a 标签中的 href 值为获取到的 filename
                console.log("DIV替换完毕!");
            }
        }

        // 替换li元素中a标签的href值
        var liElements = document.querySelectorAll('li[crx_id]');
        liElements.forEach(function (li) {
            var crxId = li.getAttribute('crx_id');
            var extlist = extractJSONFunction(); // 调用提取 JSON 函数获取 extlist 的 JSON 数组
            if (extlist[crxId]) {
                var filename = extlist[crxId].filename;
                var aTag = li.querySelector('a.install');
                if (aTag) {
                    aTag.setAttribute('href', filename);
                    console.log("LI替换完毕!");
                }
            }
        });
    }
})();