您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
搞事情(匹配https)
// ==UserScript== // @name nga自用 // @namespace http://tampermonkey.net/ // @version 0.4 // @description 搞事情(匹配https) // @author You // @match *://bbs.nga.cn/* // @grant none // @require https://cdn.bootcss.com/jquery/1.7.1/jquery.min.js // ==/UserScript== (function() { 'use strict'; // Your code here... //debugger; var local = window.location; var url = local.href; if (url.indexOf('/misc/') !== -1) { if (local.search.match(/nga\.cn|nga\.donews\.com|ngacn\.cc|178\.com|ngabbs\.com|bigccq\.cn/)) local.replace(local.search.substr(1)) else local.replace('https://'+l.host) } 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(); } } var $scollerDiv = $('div.ubbcode'); console.log("滚动条div:" + $scollerDiv.length); $scollerDiv.each(function() { var $this = $(this); var maxHeight = $this.css('max-height'); console.log(maxHeight); if (maxHeight !== 'none') { $this.css('max-height', 'none'); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址