Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name robin-spam-filter
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Robin Spam Filter
- // @author foobar5678
- // @match https://www.reddit.com/robin/
- // @grant none
- // ==/UserScript==
- setTimeout(function(){
- var target = document.querySelector('#robinChatMessageList');
- var observer = new MutationObserver(function(mutations) {
- mutations.forEach(function(mutation) {
- var msg = mutation.addedNodes[0].lastElementChild.innerHTML;
- if( msg.endsWith("voted to GROW")
- || msg.endsWith("voted to STAY")
- || msg.endsWith("voted to ABANDON")
- || msg.startsWith("[Robin")
- || msg.startsWith("[STATS]")
- || msg.includes("Autovoter")
- || msg.includes("╠═══╣")
- || msg.includes("༼")
- || msg.includes("ᕙ༼=ݓ益ݓ=༽ᕗ")
- || msg.includes("░░▒▒▓▓██")
- || msg.includes("▂▃▅▆▇█")
- || msg.includes("NAGARK")
- || msg.includes("THE RABBIT")
- || msg.includes("༼ つ ◕_◕ ༽つ")
- || msg.includes("we're the biggest chat room! ❤️")
- || msg.includes("I AM SUPREME RULER OF THIS CHATROOM")
- || msg.includes("AAAAAAAAAAAAAAAAAAAAAAAAAAAA")
- || msg.includes("oooooooooooo")
- || msg.includes("G R O W T H")
- || msg.includes("------>")
- || msg.includes("▲")
- || msg.includes("~~~~~~")
- || msg.includes("B I L L . G A T E S")
- || msg.includes("J U S T . P R E S S . G R O W")
- || msg.includes("I automatically voted")
- || msg.includes("﷽")
- || msg.includes("🅻")
- || msg.includes("🅴")
- || msg.includes("🆂")
- || msg.includes("🅿")
- || msg.includes("🅰")
- ) {
- mutation.addedNodes[0].style.display = "none";
- }
- });
- });
- observer.observe(target, {childList: true});
- }, 500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement