87,995
社区成员




if(window.location.host=="bbs.csdn.net"){
var sgs=document.getElementsByClassName("csdn-tracking-statistics");
for(sg of sgs){
sg.style.display="none";
}
document.getElementById("bd_ad_2").innerHTML="";
document.getElementById("ad_pop").innerHTML="";
document.getElementsByClassName("detail_tbox")[0].nextSibling.nextSibling.innerHTML="";
document.getElementsByClassName("detailed")[0].getElementsByTagName("table")[0].nextSibling.nextSibling.innerHTML="";
document.getElementsByClassName("detailed")[1].innerHTML="";
}
}
// ==UserScript==
// @name csdn补丁
// @version 3.0
// @grant none
// @include https://bbs.csdn.net/*
// @require https://cdn.staticfile.org/jquery/1.11.2/jquery.min.js
// ==/UserScript==
$(".topic_title,.recom_title,.forums_title").css({"font-weight":"normal", "display":"inline"});
$("#post_body, #topic_body").css("height","300px");
$(".cow_c_list .user_name").html("特大猪蹄子");
$(".honour_c").eq(0).find(".user_name").html("大猪蹄子");
$(".honour_c").eq(1).find(".user_name").html("小猪蹄子");
$("a:contains('CSDN推荐')").parents("dl").remove();
//$("img").dblclick(function(){window.open(this.src)});
setTimeout(function(){$(".adblock").remove();},2000);
//$("#thirdList,.post_recommend").remove();
//去除右侧栏,同时设置帖子内容宽屏
$("#left-box").css({"float":"none", "width":"100%"});
setTimeout(function(){
document.getElementById("bbs_detail_wrap").style.float="none";
document.getElementById("bbs_detail_wrap").style.width="100%";
},1);
$(".bbs_detail_wrap, .bbs_title_bar").css("width","100%");
$(".topic_wrap .topic_r").css({"width":"1118px","max-width":"1200px"});
$(".topic_wrap").css({"width":"auto"});
//让回帖区支持制表符
$("#post_body").attr("onkeydown","if (event.keyCode==9) {event.preventDefault(); var indent = ' '; var start = this.selectionStart; var end = this.selectionEnd; var selected = window.getSelection().toString(); selected = indent + selected; this.value = this.value.substring(0, start) + selected + this.value.substring(end); this.setSelectionRange(start + indent.length, start + selected.length); }");
$("#newBridge").remove();