Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. // ==UserScript==
  2. // @name robin-spam-filter
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Robin Spam Filter
  6. // @author foobar5678
  7. // @match https://www.reddit.com/robin/
  8. // @grant none
  9. // ==/UserScript==
  10. setTimeout(function(){
  11. var target = document.querySelector('#robinChatMessageList');
  12. var observer = new MutationObserver(function(mutations) {
  13. mutations.forEach(function(mutation) {
  14. var msg = mutation.addedNodes[0].lastElementChild.innerHTML;
  15. if( msg.endsWith("voted to GROW")
  16. || msg.endsWith("voted to STAY")
  17. || msg.endsWith("voted to ABANDON")
  18. || msg.startsWith("[Robin")
  19. || msg.startsWith("[STATS]")
  20. || msg.includes("Autovoter")
  21. || msg.includes("╠═══╣")
  22. || msg.includes("༼")
  23. || msg.includes("ᕙ༼=ݓ益ݓ=༽ᕗ")
  24. || msg.includes("░░▒▒▓▓██")
  25. || msg.includes("▂▃▅▆▇█")
  26. || msg.includes("NAGARK")
  27. || msg.includes("THE RABBIT")
  28. || msg.includes("༼ つ ◕_◕ ༽つ")
  29. || msg.includes("we're the biggest chat room! ❤️")
  30. || msg.includes("I AM SUPREME RULER OF THIS CHATROOM")
  31. || msg.includes("AAAAAAAAAAAAAAAAAAAAAAAAAAAA")
  32. || msg.includes("oooooooooooo")
  33. || msg.includes("G R O W T H")
  34. || msg.includes("------>")
  35. || msg.includes("▲")
  36. || msg.includes("~~~~~~")
  37. || msg.includes("B I L L . G A T E S")
  38. || msg.includes("J U S T . P R E S S . G R O W")
  39. || msg.includes("I automatically voted")
  40. || msg.includes("﷽")
  41. || msg.includes("🅻")
  42. || msg.includes("🅴")
  43. || msg.includes("🆂")
  44. || msg.includes("🅿")
  45. || msg.includes("🅰")
  46. ) {
  47. mutation.addedNodes[0].style.display = "none";
  48. }
  49. });
  50. });
  51. observer.observe(target, {childList: true});
  52. }, 500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement