日期:2014-05-20 浏览次数:20922 次
// ==UserScript== // @name ShieldingCSDN // @namespace HW // @description 屏蔽CSDN的“社区焦点” // @include http://topic.csdn.net/u/* // ==/UserScript== var div = document.body.firstChild; if (div.tagName != 'DIV' || div.childNodes.length == 0 || div.childNodes[0].tagName != 'TABLE') { alert('csdn 修改页面配置了,请相应的修改 GreaseMonkey 脚本!'); return; } document.body.removeChild(div);
<!-- DefaultTemplate -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta name="designer" content="csdn design team" />
<meta content="all" name="robots" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/u/ui/styles/default/topic.css" />
<link type="text/css" rel="Stylesheet" href="/u/ui/styles/mzform.css" />
<title>屏蔽 csdn 里面的“社区焦点” </title>
<meta csdnid="keywords" content="" name="Keywords" />
<meta id="topicViewUrl" csdnid="topicViewUrl" content="http://topic.csdn.net/u/20081224/14/dcf976e1-867f-4602-9628-54a90eacf7dd.html" />
<meta csdnid="sectionId" content="e2798a59-79d5-4833-9c57-87d46a8b907a" />
<meta csdnid="description" content="屏蔽 csdn 里面的“社区焦点”" name="description" />
<script type="text/javascript" src="/u/ui/scripts/StaticTopicView.js"> </script>
</head>
<body>
<a name="top"> </a>
<div id="CSDNPHL">
<table class="CSDN-PHF" border="0" cellspacing="1" cellpadding="0"> <tr>
<td> <a rel="mz" href="http://www.csdn.net/">首页 </a> </td>
<td> <a rel="mz" href="http://news.csdn.net/">新闻 </a> </td>
<td> <a rel="mz" href="http://bbs.csdn.net/">论坛 </a> </td>