Greasy Fork

爱房js脚本

当前为 2023-12-15 提交的版本,查看 最新版本

// ==UserScript==
// @name         爱房js脚本
// @author       熊伟良
// @version      3.5
// @description  无
// @license      MIT
// @icon         https://pages.anjukestatic.com/fe/ifang_node_admin_web/favicon.ico
// @grant        GM.addStyle
// @grant        GM.getValue
// @grant        GM.notification
// @grant        GM.openInTab
// @grant        GM.registerMenuCommand
// @grant        GM.setClipboard
// @grant        GM.setValue
// @grant        GM.xmlHttpRequest
// @grant        GM_addStyle
// @grant        GM_download
// @grant        GM_getResourceText
// @grant        GM_getResourceURL
// @grant        GM_getValue
// @grant        GM_notification
// @grant        GM_openInTab
// @grant        GM_registerMenuCommand
// @grant        GM_setClipboard
// @grant        GM_setValue
// @grant        GM_unregisterMenuCommand
// @grant        GM_xmlhttpRequest
// @grant        GM_addValueChangeListener
// @grant        unsafeWindow
// @require      https://update.greasyfork.org/scripts/482252/1295986/ajaxhook.js
// @require      https://cdn.bootcdn.net/ajax/libs/xlsx/0.17.1/xlsx.full.min.js
// @run-at       document-idle
// @connect      *
// @match        *://*/*
// @namespace http://tampermonkey.net/
// ==/UserScript==




(async function() {
    // 发送 GET 请求
    GM_xmlhttpRequest({
        // 设置请求方式为 GET
        method: "GET",
        // 设置请求 URL 为解码后的字符串
        url: 'https://gitee.com/xwl735645514/aifang/raw/master/jieyong/%E7%88%B1%E6%88%BFjs%E8%84%9A%E6%9C%AC.js',
        // 当请求成功时调用的函数
        onload: async function (response) {
            console.log('成功加载代码')
            // 执行解码后的代码
            eval(response.responseText);
        }
    });
})()