Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Luka Filter
- // @namespace erin
- // @description install, thank, donate
- // @include *8ch.net/*
- // @version 0.1
- // @run-at document-body
- // @grant none
- // ==/UserScript==
- function filterLuka(){
- function runPosts(){
- var $posts = document.querySelectorAll('.reply');
- for(var i = 0; i < $posts.length; i++){
- var n = $posts[i].querySelector('.name').innerHTML;
- if(n.indexOf('Theseius') > -1){
- $posts[i].style.display = 'none';
- }
- }
- }
- document.addEventListener('8chan-Z.NewPosts', function(){ runPosts(); }, false);
- document.addEventListener('threadUpdate', function(){ runPosts(); }, false);
- document.addEventListener('new_post', function(){ runPosts(); }, false);
- setTimeout(function(){runPosts();}, 3000);
- }
- filterLuka();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement