您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fuck up all shit on CSDN
- // ==UserScript==
- // @name CSDN Fucker
- // @namespace http://tampermonkey.net/
- // @version 0.2
- // @description Fuck up all shit on CSDN
- // @author LYUJ
- // @match https://blog.csdn.net/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- // solve the folding problems
- var folding = document.querySelector("main")
- if(folding != null){
- folding.querySelector(".article_content").setAttribute("style", "none")
- }
- // fuck up the adv
- var adv = document.querySelector(".csdn-toolbar")
- if(adv != null){
- adv.remove()
- }
- // Fuck up the black mask shit
- var darkMask = document.getElementsByClassName('mask-dark')
- if(darkMask != null){
- darkMask[0].remove()
- }
- // Expand comments and fuck up the expand button
- var comments = document.getElementsByClassName('comment-list-box')
- if(comments != null){
- comments[0].setAttribute("style", "none")
- }
- var expandShit = document.getElementById('btnMoreComment')
- if(expandShit != null){
- expandShit.parentElement.remove()
- }
- })();