您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Cleanup new BPL
当前为
// ==UserScript== // @name Condense BPL // @namespace ffmike // @description Cleanup new BPL // @include https://bplight.wpengine.com/* // @include https://backpackinglight.com/* // @grant none // @version 1 // @domain www.backpackinglight.com // @license CC0 1.0; https://creativecommons.org/publicdomain/zero/1.0/ // ==/UserScript== $(function () { function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } console.log('Hiding subscription block and how the forums work'); $("#text-28").hide(); $("#text-29").hide(); $("#text-32").hide(); $("#text-34").hide(); $("#menu-item-15").hide(); $(".bbp-header").hide(); $(".bbp-footer").hide(); console.log('Hiding related posts'); addGlobalStyle('div.zem_rp_content { display: none ! important; }'); console.log('Fixing fonts and generally condensing things'); addGlobalStyle("body {font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important; font-weight: 400 !important; font-size: 11px !important; color: black !important; line-height: 1.25 !important; }") addGlobalStyle('.entry-content code {color: black !important; }'); addGlobalStyle('.entry-content a {color: black !important; }'); addGlobalStyle('.entry-content a.bbp-topic-permalink {font-weight: 600 !important; }'); addGlobalStyle('.bbp-reply-author {font-size: 8px !important; padding-bottom: 2px !important; }'); addGlobalStyle('.bbp-reply-content {padding-bottom: 0px !important; }'); addGlobalStyle('.bbp-author-role {font-size: 8px !important; }'); addGlobalStyle('.bbp-user-nicename {margin-bottom: 0px !important; }'); addGlobalStyle('.entry {margin-bottom: 2px !important; }'); // Uncomment this section if you don't want to see Gear Swap posts in the recent posts listing // $("a").each(function(index, value) // { // ref = value.href; // // // Get rid of Gear Swap posts on posts list while we're here // if (ref == 'https://backpackinglight.com/forums/forum/commerce/gear-swap/') // { // $(this).closest('.topic').hide(); // } // // }); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址