#脚本# hostloc论坛屏蔽器 ,可指定多用户
主机社 1月前

1.新建油猴脚本 

屏蔽掉用户发帖/回帖/被其他人引用内容

// ==UserScript==// @name           苏紫紫屏蔽器// @description    屏蔽与相应用户有关的所有内容// @include        http*://*hostloc.com/*// @version        1.0// ==/UserScript==var ID = new Array("suzizi");    //用户名屏蔽列表  备注: 如需屏蔽多人   按照 "用户名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 = "";                                }                        }}

2.  

HostLoc 黑名单链接 :https://www.hostloc.com/home.php?mod=space&do=friend&view=blacklist  

加入到黑名单的用户,将会从您的好友列表中删除。同时,对方将不能进行与您相关的打招呼、踩日志、加好友、评论、留言、短消息等互动行为

可以配合使用

作者:Madlifer

参看原帖:https://www.hostloc.com/thread-471749-1-1.html

最新回复 (0)
返回
网站标签