Are you sure you want to go to an external site to donate a monetary value?
WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.
var BLOCK_LIST = [43579,38404,45428]; var UID_REG = /userdetails\.php\?id=(\d+)/i; var SHOUTBOX_ITEM_SELECTOR = "body > table > tbody > tr:nth-child(1) > td > div"; var CHAT_UID_SELECTOR = "> span.nowrap > a"; //黑名单用户被引用时 var CHAT_UID_SELECTOR_2 = "> span[style='word-break: break-all; word-wrap: break-word;'] > bdo > b > a"; //在"全部展开"中被引用时 var CHAT_UID_SELECTOR_3 = "> span[style='word-break: break-all; word-wrap: break-word;'] > bdo > span.expandable-content > b > a" var RemoveChatFunc = function() { var that = $(this); if ($(this).find("span[style='word-break: break-all; word-wrap: break-word;'] > bdo > span.expandable-content > b").length>0){ $(this).find(CHAT_UID_SELECTOR_3).each(function(){ var uid = Number($(this).attr("href").match(UID_REG)[1]); if ($.inArray(uid, BLOCK_LIST)>=0){ that.hide(); } }) } if ($(this).find("span[style='word-break: break-all; word-wrap: break-word;']> bdo > b").length>0){ $(this).find(CHAT_UID_SELECTOR_2).each(function(){ var uid = Number($(this).attr("href").match(UID_REG)[1]); if ($.inArray(uid, BLOCK_LIST)>=0){ that.hide(); } }) } if ($(this).find("span.nowrap").length>0) { var uid = Number($(this).find(CHAT_UID_SELECTOR).attr("href").match(UID_REG)[1]); //console.log(uid); if ($.inArray(uid, BLOCK_LIST)>=0) { // 移除黑名单对U2娘提问时U2娘的回答 if ($(this).prev().find("span.nowrap").length===0) { $(this).prev().remove(); } $(this).remove(); } } }; $(SHOUTBOX_ITEM_SELECTOR).each(RemoveChatFunc);