看今日某帖子有感,论坛某些人的三观真的让人崩溃,看着都想吐,要能拉黑最好了。
山西网友:
- // ==UserScript==
- // [url=home.php?mod=space&uid=5839]@name[/url] 屏蔽器
- // @description 屏蔽与相应用户有关的所有内容
- // @include http*://*hostloc.com/*
- // @version 1.0
- // ==/UserScript==
- var ID = new Array("姜叔","豆浆","lovework","hxuf","倾城翻翻分身一"); //用户名屏蔽列表 备注: 如需屏蔽多人 按照 "用户名1","用户名2" 格式
- var displaymessage = false; //如需显示屏蔽提示 请将"false"改为"true"
- for (var x in ID) {
- thread = document.evaluate(‘//table/tbody[tr[1]/td[2]//cite/a[text()="’ + ID[x] + ‘"]]’, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
- if (thread.snapshotLength) {
- for (var i = 0; i < thread.snapshotLength; i++) {
- if(displaymessage) {
- thread.snapshotItem(i).innerHTML = "<tr><td class=’icn’><img src=’static/image/common/folder_common.gif’ /></a></td><th class=’common’><b>已屏蔽主题 " + "<font color=grey></th><td class=’by’><cite><font color=grey>" + ID[x] + "</font></cite></td><td class=’num’></td><td class=’by’></td></tr>";
- }
- else {
- thread.snapshotItem(i).innerHTML = "";
- }
- }
- }
- post = document.evaluate(‘//table/tbody[tr[1]/td[1]//a[text()="’ + ID[x] + ‘"]]’, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
- if (post.snapshotLength) {
- for (var i = 0, c = ""; i < post.snapshotLength; i++) {
- c = post.snapshotItem(i).firstChild.childNodes[3].textContent.replace(/\s*/g, "").slice(0, 3);
- c = (Number(c) > 99) ? c + "#" : c;
- if(displaymessage) {
- post.snapshotItem(i).innerHTML = "<p><center>已屏蔽" + " <font color=grey>" + ID[x] + "</font></center></p>";
- }
- else {
- post.snapshotItem(i).innerHTML = "";
- }
- }
- }
- quote = document.evaluate(‘//blockquote[font/a/font[contains(text(),"’ + ID[x] + ‘")]]’, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
- if (quote.snapshotLength) {
- for (var i = 0; i < quote.snapshotLength; i++) {
- if(displaymessage) {
- quote.snapshotItem(i).innerHTML = ‘<p>已屏蔽引用 <font color=grey>’ + ID[x] + ‘</font>的言论</p>’;
- }
- else {
- quote.snapshotItem(i).innerHTML = ‘<br />’;
- }
- }
- }
- title = document.evaluate(‘//table/tbody[tr[1]/th[1]//a[contains(text(),"’ + ID[x] + ‘")]]’, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
- if (title.snapshotLength) {
- for (var i = 0, c = ""; i < title.snapshotLength; i++) {
- title.snapshotItem(i).innerHTML = "";
- }
- }
- }
复制代码
浙江网友:不能,我就喜欢你看到我想吐,又干不掉我的样子。
陕西网友:我的 – 好友 – 我的黑名单 把用户名加进去就行了。
西藏网友:有的
台湾网友:感谢
山西网友:拉黑也是会有消息提示,只不过折叠了,直接无视他的消息吧,看的闹心…..
未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » 论坛有没有黑名单功能?