Discussions » Creation Requests
Hide User Texts On a website which is forum
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
}
}
thank you mate
You are welcome
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();
}
}
})();
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