nga自用

搞事情

目前為 2018-09-11 提交的版本,檢視 最新版本

// ==UserScript==
// @name         nga自用
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  搞事情
// @author       You
// @match        http://bbs.nga.cn/*
// @grant        none
// @require      https://cdn.bootcss.com/jquery/1.7.1/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var url = window.location.href;

    if (url.indexOf('/misc/') !== -1) {
       url = bbs.nga.cn;
    }

    if (url.indexOf('php') == -1) {
       $('img').each(function(){
           console.log($(this).attr('onload'));
           if ($(this).attr('onload') !== 'undefined') {
              $(this).parent().parent().remove();
           }
       });
    } else {
       $('div.w100 > span:first').remove();
       if ($('td.null')) {
          $('td.null').remove();
       }
    }
})();

QingJ © 2025

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