Guest User

script

a guest
Jul 8th, 2021
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Unfuck IVWORLD
  3. // @namespace none yet
  4. // @match *://*.ivworld.net/*
  5. // @grant none
  6. // @version 0.1
  7. // @author Kvothe (original code), fakeanatomydoctor (regex), anon (switch from pornhub to ivworld)
  8. // @description Formerly Unfuck Pornhub
  9. // ==/UserScript==
  10.  
  11.  
  12. // WORD BLOCK LIST (supports regex, can make a copy and change these terms to whatever you like)
  13. let wordList = ["JMKD", "MIU", "KODV", "IMOG", "Chu-boh42", "SMAC", "CPSKY", "ICDV", "IMHS",
  14. "IMOL", "EICCB", "PPT", "ICS", "IMOQ", "TASK", "GGGG", "EMO", "GOD", "WPCS",
  15. "PIST", "BSTAR", "IMBD", "IMOB", "SNM", "SBKD", "CHAMA", "SOPD", "ICS"];
  16.  
  17. // DON'T EDIT BELOW
  18. console.log('WORKING');
  19.  
  20.  
  21. const titles = document.querySelectorAll('.posttitle a')
  22. titles.forEach(title => {
  23. const titleContent = title.textContent.trim();
  24. wordList.forEach(word => {
  25. if(titleContent.match(word) && word != "") {
  26. title.parentElement.parentElement.parentElement.remove();
  27. console.log(`post removed => ${titleContent} cuz it contains ==> ${word}`)
  28. }
  29. })
  30. });
Add Comment
Please, Sign In to add comment