您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
open one's eyes to see the world.
当前为
// ==UserScript== // @name weihl_test // @namespace http://tampermonkey.net/ // @version V0.1 // @description open one's eyes to see the world. // @author weihule // @match https://pmos.sd.sgcc.com.cn:18080/trade/main/index.do* // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com // @grant none // @license AGPL-3.0 // ==/UserScript== (function() { 'use strict'; window.addEventListener('load', function() { alert('Hello World'); const li1 = document.querySelector("body > div.container-fluid > div > div.side > div.sidebar > ul > li.nav-item.modulemenu.active > a") li1.click() // console.log("开始进入iframe"); // // 查找并切换到特定的 iframe // const iframe = document.querySelector("iframe.body-iframe"); // if (iframe) { // iframe.contentWindow.document.body; // } // console.log("已经进入iframe ..."); const close_btn = document.querySelector("#logModal > div > div > div.modal-header > button"); if (close_btn){ console.log("获取到close_btn 000000"); close_btn.click() } }); })();