您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
屏蔽简书右侧和正文下方的垃圾推荐
当前为
// ==UserScript== // @name 简书推荐屏蔽 // @namespace http://tampermonkey.net/ // @version 0.3 // @description 屏蔽简书右侧和正文下方的垃圾推荐 // @author Annunx // @match *://www.jianshu.com/p/* // @icon https://www.google.com/s2/favicons?sz=64&domain=jianshu.com // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; window.onload = function () { removeJanshuRecommend() automaticOpening() } // 清理元素 function removeJanshuRecommend() { document.getElementsByTagName('aside')[0].remove() const sections = document.querySelectorAll('section') if (sections.length > 0) { sections[1].remove() } } // 长文自动展开 function automaticOpening() { const btn = document.querySelector(".close-collapse-btn") if (btn) { btn.click() } } })();