Subreddit filter

Filter the reddit popular page of terrible subreddits

  1. // ==UserScript==
  2. // @name Subreddit filter
  3. // @namespace RedditPopFilter
  4. // @version 0.0.9
  5. // @license Apache 2.0
  6. // @description Filter the reddit popular page of terrible subreddits
  7. // @author zachmu
  8. // @include https://*.reddit.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. var filterSub = [
  13. "/r/PoliticalHumor/",
  14. "/r/MurderedByWords/",
  15. "/r/ENLIGHTENEDCENTRISM/",
  16. "/r/SelfAwarewolves/",
  17. "/r/Overwatch/",
  18. "/r/TopMindsOfReddit/",
  19. "/r/ShitPostCrusaders/",
  20. "/r/badwomensanatomy/",
  21. "/r/The_Mueller/",
  22. "/r/IncelTears/",
  23. "/r/trashy/",
  24. "/r/JusticePorn/",
  25. "/r/JusticeServed/",
  26. "/r/thatHappened/",
  27. "/r/vaxxhappened/",
  28. "/r/Instagramreality/",
  29. "/r/gatekeeping/",
  30. "/r/KidsAreFuckingStupid/",
  31. "/r/fuckthesepeople/",
  32. "/r/iamatotalpieceofshit/",
  33. "/r/iamverysmart/",
  34. "/r/iamverybadass/",
  35. "/r/ihavesex/",
  36. "/r/EntitledBitch/",
  37. "/r/insanepeoplefacebook/",
  38. "/r/insanepeoplequora/",
  39. "/r/insaneparents/",
  40. "/r/Cringetopia/",
  41. "/r/Nicegirls/",
  42. "/r/niceguys/",
  43. "/r/justneckbeardthings/",
  44. "/r/4PanelCringe/",
  45. "/r/sadcringe/",
  46. "/r/cringe/",
  47. "/r/quityourbullshit/",
  48. "/r/entitledparents/",
  49. "/r/creepyPMs/",
  50. "/r/rareinsults/",
  51. "/r/AteTheOnion/",
  52. "/r/creepyasterisks/",
  53. "/r/TheRightCantMeme/",
  54. "/r/imveryedgy/",
  55. "/r/notliketheothergirls/",
  56. "/r/BlackPeopleTwitter/",
  57. "/r/TwoXChromosomes/",
  58. "/r/MaliciousCompliance/",
  59. "/r/NotHowGirlsWork/",
  60. "/r/ToiletPaperUSA/",
  61. "/r/Gamingcirclejerk/",
  62. "/r/PewdiepieSubmissions/",
  63. "/r/menwritingwomen/",
  64. "/r/politics/",
  65. "/r/worldpolitics/",
  66. "/r/Trumpgret/",
  67. "/r/WhitePeopleTwitter/",
  68. "/r/facepalm/",
  69. "/r/FragileWhiteRedditor/",
  70. "/r/therewasanattempt/",
  71. "/r/Bad_Cop_No_Donut/",
  72. "/r/Whatcouldgowrong/",
  73. "/r/holdmyfries/",
  74. "/r/awfuleverything/",
  75. "/r/NoahGetTheBoat/",
  76. "/r/lgbt/",
  77. "/r/bi_irl/",
  78. "/r/LeopardsAteMyFace/",
  79. "/r/PublicFreakout/",
  80. "/r/ActualPublicFreakouts/",
  81. ];
  82.  
  83. function filter() {
  84. var elements = document.querySelectorAll("a[data-click-id=subreddit]")
  85. elements.forEach(function(a, i) {
  86. if (filterSub.indexOf(a.attributes.href.value) >= 0) {
  87. a.closest("div.scrollerItem").style.display = "none"
  88. }
  89. })
  90. }
  91.  
  92. var mutationObserver = new MutationObserver(function(mutations) {
  93. filter();
  94. });
  95.  
  96. mutationObserver.observe(document.documentElement, {
  97. childList: true,
  98. subtree: true,
  99. });
  100.  
  101. filter();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址