版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明。否则将追究法律责任。http://blog.csdn.net/mayongzhan - 马永占,myz,mayongzhan
面对csdn极其xx的改版,彻底xx。改吧。
csdn把左右对调了一下,左边是文章,右边是导航,我x,你要换也要给个配置,可以手动调节行不?
左右换了之后document.ready就不需要了,注释掉。
去公告条兼容首页和内容页。
去掉收藏按钮的样式修改
调整了一下css,以适应csdn的修改。
详见红字
#SubscriptionList {display:none;}
#csdnblog_allwrap {width:1000px;}
#csdnblog_sidebar {width:200px;}
#csdnblog_sidebar div.gutter{width:100%;margin:0px;}
.aboutauthor{padding:0px;border-left:0px;border-bottom:0px;border-top:0px;border-right:1px dotted #AAA;}
#csdnblog_content {width:800px;}
#csdnblog_content div.gutter{}
.publiclist_sidebar ul li {margin:0px;padding:0px;}
.publiclist_sidebar ul li a {margin:0px;padding:0px;}
.user_article h1 img{display:none;}
.user_article p{text-indent:0em;}
.blogstory p{text-indent:0em;}
.aboutauthor{width:200px;}
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js">
</script>
<script type="text/javascript" src="/SyntaxHighlighter/jquery.highlighter.js"></script>
<script language="javascript" type="text/javascript">
$jQ = jQuery;
$jQ("dd:contains('次访问,排名'):first").html("");
$jQ("dt:contains('ID:'):first span").html("");
$jQ("dt:contains('的文章'):first").html("");
$jQ("dd:contains('原创'):first").html("");
$jQ("dd:contains('翻译'):first").html("");
$jQ("dd:contains('转载'):first").html("");
$jQ("dd:contains('评论'):first").html("");
$jQ("#Search_ddlSearchScope > option[value!='all']").attr("selected","true");
//$jQ(document).ready(function(){
var blogTitle = $jQ('.user_article > h1');
var blogNextPrev =$jQ("#Post\\.ascx_ViewPost_PreviousAndNextEntriesDown");
if (blogNextPrev.html() != null) {
blogTitle.html(blogTitle.html() + "<div> </div><div>" + blogNextPrev.html() + "</div>");
}
if ($jQ('#csdnblog_content > .gutter > script').length != 0) {
var csdnTempScriptSrc = $jQ('#csdnblog_content > .gutter > script')[0].src;
if (csdnTempScriptSrc == 'http://blog.csdn.net/js/PrintNotice.js' || csdnTempScriptSrc == '/js/PrintNotice.js') {
$jQ("script ~ .default_contents:first").css('display','none');
}
}
//});
</script>