著作權聲明:原創作品,允許轉載,轉載時請務必以超連結形式標明文章原始出版、作者資訊和本聲明。否則將追究法律責任。http://blog.csdn.net/mayongzhan
- 馬永占,myz,mayongzhan
最近發現csdn把直接的訂閱地址給幹掉了,目前只能通過feedsky訂閱,目的顯而易見,1是feedsky的訂閱是有錢可以分成的,2是csdnblog排名利
用了feedsky,沒辦法只能顯示csdn官方的訂閱,csdn你還能更狠點麼?
#SubscriptionList {display:none;}
順便顯示了回貼,去掉這段-> .spacecommment{display:none;}
添加了屏蔽getJSON出來的使用者資訊(csdn用了無比邪惡的replaceWith,我也用...)
$('#userInfo').replaceWith('<dt style="text-align: left;">使用者資訊</dt><dd class="middle"><a href="http://blog.csdn.net/mayongzhan"><img alt="" src="http://avatar.profile.csdn.net/3/6/3/1_mayongzhan.jpg"/></a></dd><span style="display:none;"><span id="userInfo"></span></span>');
同步"上一篇下一篇"的角本在document.ready中執行(csdn調整了模板的順序,本來是不需要的,咬牙中...)
$jQ(document).ready(function(){/* to do */});
完整的樣式如下
#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("#Search_ddlSearchScope > option[value!='all']").attr("selected","true");
$('#userInfo').replaceWith('<dt style="text-align: left;">使用者資訊</dt><dd class="middle"><a href="http://blog.csdn.net/mayongzhan"><img alt="" src="http://avatar.profile.csdn.net/3/6/3/1_mayongzhan.jpg"/></a></dd><span style="display:none;"><span id="userInfo"></span></span>');
$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/javascript/PrintNotice.js' || csdnTempScriptSrc == '/javascript/PrintNotice.js') {
$jQ("script ~ .default_contents:first").css('display','none');
}
}
});
</script>