hjj工具

去刷屏,楼层无图

当前为 2017-07-04 提交的版本,查看 最新版本

// ==UserScript==
// @name         hjj工具
// @namespace    http://tampermonkey.net/
// @version      0.7
// @description  去刷屏,楼层无图
// @author       miaomiao
// @match        http://bbs.jjwxc.net/board.php?board=*&type=*&page=*
// @match        http://bbs.jjwxc.net/showmsg.php?board=*&boardpagemsg=*&id=*
// @match        http://bbs.jjwxc.net/board.php?board=*&page=*
// @match        http://bbs.jjwxc.net/showmsg.php?board=*&id=*
// @grant        none
// @resource     hjj  http://git.oschina.net/asuka123/tempermonkeyjs/raw/master/jjwxc/hjj.js
// ==/UserScript==

function extendJS() {
    if (typeof unsafeWindow.jQuery == 'undefined') {
        window.setTimeout(GM_wait, 100);
    } else {
        extendJSModel('hjj');
    }
}

function extendJSModel(name) {
    let text = GM_getResourceText(name);
    let node = document.createElement('script');
    node.setAttribute('type', "text/javascript");
    node.appendChild(document.createTextNode(text));
    document.getElementsByTagName('head')[0].appendChild(node);
}

(function(){
    extendJS();
})();