您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Close all popup window automatic
// ==UserScript== // @name Kill popup window // @namespace https://gf.qytechs.cn/en/scripts/408032-close-all-popup-window/ // @version 0.5 // @description Close all popup window automatic // @author TechComet // @include http://*/* // @include https://*/* // @supportURL https://gf.qytechs.cn/en/scripts/408032-close-all-popup-window/feedback // @grant none // ==/UserScript== // replace all `no_close` to custom any string (function() { 'use strict'; var element_url = document.getElementsByTagName("a"), index_url; for (index_url = element_url.length - 1; index_url >= 0; index_url--) { var cur_url = element_url[index_url] var prefix = function (url) { return cur_url.href.indexOf(url) != -1 }; cur_url.href = cur_url.href + "#no_close" } var except = [ 'google.com', 'facebook.com' //example except WebSites ] var hostname = window.location.hostname.replace("www.", "") if (window.location.href.indexOf("#no_close") == -1) { if (except.indexOf(hostname) == -1) { window.close(); } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址