Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Ignore Lowetide User Script v 0.1
- // ------------------------------------
- // Insert username of person you want to ignore in the line below.
- // Simply replace the name 'Add username here'
- // or add another using "" separated by a comma.
- const userNames = ["Harpers Hair", "Add Username Here"];
- // Nothing needs to be edited below this line ***************************************
- let userComments = document.getElementsByClassName("wpd-comment-author");
- for (var i = 0; i < userComments.length; i++) {
- let userName = userComments[i].textContent.trim();
- let blockTarget = userComments[i].parentNode.parentNode.parentNode.parentNode;
- if (userNames.includes(userName)) {
- blockTarget.style.display = "none";
- }
- let repliesToUser = document.getElementsByClassName("wpd-reply-to");
- for (var x = 0; x < repliesToUser.length; x++) {
- let targetUser = repliesToUser[x].children[1].innerText.trim();
- if (userNames.includes(targetUser)) {
- repliesToUser[x].parentNode.parentNode.parentNode.parentNode.parentNode.style.display = "none";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement