Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name YV ignore
- // @include http://www.yksivaihde.net/site/foorumi/*
- // @version 0.1
- // @description ignore
- // @author Okw
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- var turhat_ulisijat = ["Tahmatassu"];
- var x = document.getElementsByClassName("threadauthor");
- for (var i = 0, alt = false; i < x.length; i++) {
- var li = x[i].parentNode;
- if (turhat_ulisijat.includes(x[i].children[0].children[2].innerHTML.replace(/(<([^>]+)>)/ig,""))) {
- li.style.display = "none";
- continue;
- }
- if (alt) {
- li.setAttribute("class", "alt");
- } else {
- li.removeAttribute("class");
- }
- alt = !alt;
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement