decency

comment decency

  1. // ==UserScript==
  2. // @name decency
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-09-13
  5. // @description comment decency
  6. // @author You
  7. // @match https://saidit.net/s/all/comments*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=saidit.net
  9. // @grant none
  10. // @license AGPL 3.1
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. Object.entries(document.querySelectorAll(".usertext-body")).reduce(function(res, item) {
  17. console.log(item);
  18. let text = item[1].childNodes[0].childNodes[0].innerText.toLowerCase();
  19. if (text.indexOf("dick") >= 0) {
  20. item[1].parentNode.parentNode.parentNode.remove();
  21. return false;
  22. } else if(text.indexOf("nigger") >= 0) {
  23. item[1].parentNode.parentNode.parentNode.remove();
  24. return false;
  25. } else if(text.indexOf("cunt") >= 0) {
  26. item[1].parentNode.parentNode.parentNode.remove();
  27. return false;
  28. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "YoMamma") {
  29. item[1].parentNode.parentNode.parentNode.remove();
  30. return false;
  31. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "Oyveygoyim") {
  32. item[1].parentNode.parentNode.parentNode.remove();
  33. return false;
  34. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "TheBlackSun") {
  35. item[1].parentNode.parentNode.parentNode.remove();
  36. return false;
  37. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText.indexOf("kys") >= 0) {
  38. item[1].parentNode.parentNode.parentNode.remove();
  39. return false;
  40. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "GuyWhite") {
  41. item[1].parentNode.parentNode.parentNode.remove();
  42. return false;
  43. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "TotalAnon1337") {
  44. item[1].parentNode.parentNode.parentNode.remove();
  45. return false;
  46. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "WoodyWoodPecker") {
  47. item[1].parentNode.parentNode.parentNode.remove();
  48. return false;
  49. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "NastyWetSmear") {
  50. item[1].parentNode.parentNode.parentNode.remove();
  51. return false;
  52. } else if (item[1].parentNode.parentNode.querySelector(".author").innerText == "LarrySwinger2") {
  53. item[1].parentNode.parentNode.parentNode.remove();
  54. return false;
  55. } else if(text.indexOf(" ") < 0) {
  56. item[1].parentNode.parentNode.parentNode.remove();
  57. return false;
  58. } else if(text.indexOf("sexy") >= 0) {
  59. item[1].parentNode.parentNode.parentNode.remove();
  60. return false;
  61. }
  62.  
  63.  
  64. return true;
  65.  
  66. }, true);
  67.  
  68.  
  69. })();