// ==UserScript== // @name 百度删帖管理 // @namespace http://tampermonkey.net/ // @version 0.4 // @description try to take over the world! // @author You // @match *tieba.baidu.com/pmc* // @grant none // @downloadURL none // ==/UserScript== (function () { 'use strict'; let debug = false; let url = window.location.href.split("?")[0]; if (url.length === url.indexOf("pmc") + 3) { window.location.href = "http://tieba.baidu.com/pmc/recycle?tab=system"; } let hideDeleted = Number(localStorage.getItem("hideDeleted")) || 0; let hideSaving = Number(localStorage.getItem("hideSaving")) || 0; let hideList = JSON.parse(localStorage.getItem("hideList")) || []; debug && console.log(localStorage.getItem("hideList")); debug && console.log(hideList); function doHide() { let eventId = setInterval(function () { if ($("span.del-reason-sty").length) { clearInterval(eventId); $("span.pm_post_content").each(function (i, o) { let info = $(o).parent().next().next().html(); if (hideSaving && $(o).parent().next().next().next().html().indexOf("等待人工恢复") > -1) { $(o).parent().parent().html("