NGA hidden message auto open

simple but useful

目前為 2021-02-11 提交的版本,檢視 最新版本

// ==UserScript==
// @name         NGA hidden message auto open
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  simple but useful
// @author       GitHub: isaacveg
// @match        *://*.nga.cn/*
// @grant        none
// ==/UserScript==

var pageURLCheckTimer = setInterval (
    function () {
        if (    this.lastPathStr  !== location.pathname
            ||  this.lastQueryStr !== location.search
            ||  this.lastPathStr   === null
            ||  this.lastQueryStr  === null
           ) {
            this.lastPathStr  = location.pathname;
            this.lastQueryStr = location.search;
            setTimeout(gmMain,3000);
        }
    }
    , 1000
);

function gmMain () {
    var x = document.getElementsByName("lessernukeblk");
    for(var i=0;i<x.length;i++)
    {x[i].style.display = ""}
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址