您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script will remove all posts which begin with a @ mention
// ==UserScript== // @name Remove Mention Gabs From Gab.ai Homepage // @namespace https://gab.ai/Jeremy20_0 // @version 0.1 // @description This script will remove all posts which begin with a @ mention // @author Jeremiah 20:9 // @match https://gab.ai/home // @match https://gab.ai // @grant none // ==/UserScript== $(document).ready(function(){ var list = document.getElementById("user-post-list"); list.addEventListener('DOMSubtreeModified', function () { var posts = $("div.post").not(".post--load"); if(posts.length < 2 || userpostlist === undefined || userpostlist.posts.length === 0) return; var regex = /^\s*@[A-Za-z][A-Za-z0-9_]*/gi; for(var p = 0; p < userpostlist.posts.length; p++) { if(regex.test(userpostlist.posts[p].post.body)) { userpostlist.posts.splice(p,1); p--; } } }); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址