论坛有没有黑名单功能?

搬瓦工机场JMS

看今日某帖子有感,论坛某些人的三观真的让人崩溃,看着都想吐,要能拉黑最好了。
山西网友:

  1. // ==UserScript==
  2. // [url=home.php?mod=space&uid=5839]@name[/url]           屏蔽器
  3. // @description    屏蔽与相应用户有关的所有内容
  4. // @include        http*://*hostloc.com/*
  5. // @version        1.0
  6. // ==/UserScript==
  7. var ID = new Array("姜叔","豆浆","lovework","hxuf","倾城翻翻分身一");    //用户名屏蔽列表  备注: 如需屏蔽多人   按照 "用户名1","用户名2" 格式
  8. var displaymessage = false;                                         //如需显示屏蔽提示   请将"false"改为"true"
  9. for (var x in ID) {
  10.         thread = document.evaluate(‘//table/tbody[tr[1]/td[2]//cite/a[text()="’ + ID[x] + ‘"]]’, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  11.         if (thread.snapshotLength) {
  12.                 for (var i = 0; i < thread.snapshotLength; i++) {
  13.                      if(displaymessage) {
  14.                              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>";
  15.                          }
  16.                          else {
  17.                                  thread.snapshotItem(i).innerHTML = "";
  18.                      }
  19.                 }
  20.         }
  21.         post = document.evaluate(‘//table/tbody[tr[1]/td[1]//a[text()="’ + ID[x] + ‘"]]’, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  22.         if (post.snapshotLength) {
  23.                 for (var i = 0, c = ""; i < post.snapshotLength; i++) {
  24.                         c = post.snapshotItem(i).firstChild.childNodes[3].textContent.replace(/\s*/g, "").slice(0, 3);
  25.                         c = (Number(c) > 99) ? c + "#" : c;
  26.                         if(displaymessage) {
  27.                              post.snapshotItem(i).innerHTML = "<p><center>已屏蔽" + " <font color=grey>" + ID[x] + "</font></center></p>";
  28.                          }
  29.                          else {
  30.                                  post.snapshotItem(i).innerHTML = "";
  31.                      }
  32.                 }
  33.         }
  34.          quote = document.evaluate(‘//blockquote[font/a/font[contains(text(),"’ + ID[x] + ‘")]]’, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  35.      if (quote.snapshotLength) {
  36.         for (var i = 0; i < quote.snapshotLength; i++) {
  37.                          if(displaymessage) {
  38.                              quote.snapshotItem(i).innerHTML = ‘<p>已屏蔽引用 <font color=grey>’ + ID[x] + ‘</font>的言论</p>’;
  39.                          }
  40.                          else {
  41.                                  quote.snapshotItem(i).innerHTML = ‘<br />’;
  42.                      }
  43.                 }
  44.         }
  45.          title = document.evaluate(‘//table/tbody[tr[1]/th[1]//a[contains(text(),"’ + ID[x] + ‘")]]’, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  46.                         if (title.snapshotLength) {
  47.                                 for (var i = 0, c = ""; i < title.snapshotLength; i++) {
  48.                                         title.snapshotItem(i).innerHTML = "";
  49.                                 }
  50.                         }
  51. }

复制代码

浙江网友:不能,我就喜欢你看到我想吐,又干不掉我的样子。
陕西网友:我的 –  好友 – 我的黑名单 把用户名加进去就行了。
西藏网友:有的
台湾网友:感谢
山西网友:拉黑也是会有消息提示,只不过折叠了,直接无视他的消息吧,看的闹心…..

未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » 论坛有没有黑名单功能?

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏