// ==UserScript== // @name 彪扑 // @namespace https://greasyfork.org/gmail // @version 0.3.2 // @description (从“烂虎扑屏蔽器”修改而来。)根据屏蔽标题和作者的关键词 // @author biopsy // @license Apache Licence 2.0 // @match https://bbs.hupu.com/* // @icon https://w1.hoopchina.com.cn/images/pc/old/favicon.ico // @grant unSafeWindow // @grant GM_setValue // @grant GM_getValue // @grant GM_log // @grant GM_notification // @grant GM_listValues // @grant GM_deleteValue // @require https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js // @downloadURL https://update.greasyfork.icu/scripts/518891/%E5%BD%AA%E6%89%91.user.js // @updateURL https://update.greasyfork.icu/scripts/518891/%E5%BD%AA%E6%89%91.meta.js // ==/UserScript== (function () { 'use strict'; const Keys = {blacklist: "banKeyword", tour: "firstTime"}; function appendAssets() { const $head = $("head"); $head.append($(``)); $head.append($(``)); $head.append($(``)); } function appendElements() { // 添加右下角fab const $body = $("body"); $body.append($(`
`)); // 添加屏蔽词的chips $body.append($(` `)); // 添加个click事件,用于判断是否点击在chips组件之外 $('#container').click(() => $('#keywordList').fadeOut(500)); // 初始化 FAB M.FloatingActionButton.init(document.querySelectorAll('.fixed-action-btn'), {direction: 'left'}); // 初始化 tooltip M.Tooltip.init(document.querySelectorAll('.tooltip'), { enterDelay: 200, exitDelay: 0, inDuration: 200, outDuration: 200, position: 'top', transitionMovement: 10 }); } // 添加新用户引导 function addTour(count) { $('body').append($(`在这里进行自定义配置
此新用户引导只显示3次,这是第` + count + `次