您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove pop-up ads from huijiwiki.
// ==UserScript== // @name 干掉灰机wiki广告 // @namespace http://tampermonkey.net/ // @version 1.0.0 // @description Remove pop-up ads from huijiwiki. // @author You // @match *://*.huijiwiki.com/* // @grant none // ==/UserScript== (function() { 'use strict'; //setCookie('fndAds',true,100); var ads_status = getCookie('fndAds'); if (ads_status == true) { //alert('ads cleaned'); return; } else{ //alert("cleaning..."); setCookie('fndAds',true,100); } // Your code here... })(); function setCookie(c_name, value, expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie = c_name + "=" + escape(value) + ((expiredays==null) ? "" : ";expires="+exdate.toUTCString() + ";path=/"); } function getCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址