52用户屏蔽脚本

52破解论坛用户屏蔽脚本,屏蔽消息页面,帖子列表,帖子详情.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         52用户屏蔽脚本
// @namespace    https://www.52pojie.cn/home.php?mod=space&uid=2027781
// @version      0.2
// @license MIT
// @description  52破解论坛用户屏蔽脚本,屏蔽消息页面,帖子列表,帖子详情.
// @author       zhuxiangyu1024
// @match        https://www.52pojie.cn/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=52pojie.cn
// @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @grant        unsafeWindow
// @run-at document-end
// ==/UserScript==

(function() {
    'use strict';

let block_name = ["ilovecomputer66"];
var jq = $.noConflict();
function block_user() {
  block_name.forEach(name => {
    let feed_page = jq("tbody:contains('" + name + "')");
    let notice_page = jq("dl.cl").find("dd:contains('" + name + "')");
    let conent_page = jq("div[id^='post_'").find(
      "div:contains('" + name + "')"
    );
    if (unsafeWindow.location.href.indexOf("type=reply") != -1) {
      feed_page.next().remove();
    }
    console.log(feed_page);
    console.log(conent_page);
    feed_page.remove();
    conent_page.remove();
    notice_page.parent().remove();
  });
}

setTimeout(() => {
  block_user();
}, 1000);

})();