Greasy Fork is available in English.

議論 » 作成依頼

Hide User Texts On a website which is forum

§
投稿日: 2020/08/08
編集日: 2020/08/08

Hi I wanna hide specific users messages but ı dont have experience with scripts.
this is the web site how can I do that ?
https://www.tahribat.com/forum/elektronikten-anlayan--kapasitorler-247148

§
投稿日: 2020/08/12

var blacklist = ["DestinatioN","user2example"]; //ADD USERS HERE
var allUsers = document.querySelectorAll("div.postPanel a");

for(var i=0;i= 0) {allUsers[i].parentElement.parentElement.parentElement.remove(); // Remove all of the user posts
}
}

§
投稿日: 2020/08/14

thank you mate

§
投稿日: 2020/08/14

You are welcome

§
投稿日: 2021/01/22

It seems that the script I did for you isn't working now, here's the updated working version

// ==UserScript==
// @name Hide Threads Started By Specific Users
// @namespace HideThreads
// @version 0.2
// @description Hide Threads Started By Specific Users.
// @author hacker09
// @match https://www.tahribat.com/forum/*
// @grant none
// ==/UserScript==

(function() {
'use strict';
var blacklist = ["DestinatioN","samaccc"]; //ADD USERS HERE
var allUsers = document.querySelectorAll("div.postPanel a");
for (let i = 0; i < allUsers.length; i++) {
if (blacklist.indexOf(allUsers[i].innerHTML) >= 0) {
allUsers[i].parentElement.parentElement.parentElement.remove();
}
}
})();

返信を投稿

返信を投稿するにはログインしてください。