您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
装好就行了不行就自己调参数
当前为
// ==UserScript== // @name CSDN辅助脚本 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 装好就行了不行就自己调参数 // @author 海绵宝宝 // @match http*://blog.csdn.net/* // @require http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js // @grant none // ==/UserScript== (function() { 'use strict'; $(function() { setTimeout(function(){ fuck_csdn(); }, 1500); }); var evencall=[ {"t1":function(){document.getElementById("btn-readmore").click();}},//我点我自己 {"t1":function(){document.getElementsByTagName("aside")[0].remove();}},//我删我自己 {"t1":function(){document.getElementById("dmp_ad_58").remove();}},//我删我自己 {"t1":function(){$('div[class*="recommend-ad-box"]').map(function(a,b){b.remove();});}},//删除夹层广告 {"t1":function(){$('div[class*="type_hot_word"]').map(function(a,b){b.remove();});}},//删除夹层热词推荐 {"t1":function(){$('div[class*="recommend-download-box"]').map(function(a,b){b.remove();});}},//删除夹层推荐下载 {"t1":function(){$('div[class*="blog-expert-recommend-box"]').map(function(a,b){b.remove();});}},//推荐关注这个也删了吧 {"t1":function(){document.getElementsByClassName("recommend-right")[0].remove();}},//右边干掉 //右边删类就会使得样式乱类 {"t1":function(){$("#mainBox").attr("class","");}},//干掉这个所有样式 {"t1":function(){$("#mainBox").css("margin","auto");$("#mainBox").css("width","1183px");}}//设置我们的样式 ]; function fuck_csdn() { for(var i=0;i<evencall.length;i++) { try{ evencall[i]["t1"](); }catch(err){} } console.log("海绵出品"); /* 记录已经看过的url,这个没问题 */ /*var urls = localStorage.getItem("urls");var json=[]; if(urls!=null) { json = JSON.parse(urls); $(".content > a").map(function(a,b){ if(json.indexOf(b.href)!=-1) { b.parentNode.css("background","#e8e7e7"); } else{ json.push(document.URL); localStorage.setItem("urls",JSON.stringify(json)); } }); }else{ json.push(document.URL); localStorage.setItem("urls",JSON.stringify(json)); }*/ } })();