您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to do the world!
// ==UserScript== // @name New5 Userscript // @namespace http://tampermonkey.net/ // @license MIT // @version 0.1 // @description try to do the world! // @author You // @match https://huodong.xueanquan.com/2022safeedu/guanwei.html?tabNum=2 // @icon https://www.google.com/s2/favicons?sz=64&domain=xueanquan.com // @grant none // ==/UserScript== (function() { 'use strict'; var elment1=document.querySelector("body > div.container-fluid > div:nth-child(1)"); var para = document.createElement("a"); para.href="javascript:window.opener=null;window.open('','_self');window.close();"; para.innerText="s关闭s"; para.setAttribute("Id","closeself"); elment1.parentElement.insertBefore(para,elment1); document.getElementById("closeself").click(); // Your code here... })();