Advertisement
Guest User

Untitled

a guest
Apr 1st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Title cleaner forum
  3. // @namespace http://github.com
  4. // @version 0.1
  5. // @description Removes ABDL from title on ABDL sites
  6. // @include *abdl*
  7. // @author BrightTo
  8. // ==/UserScript==
  9.  
  10. function mreplace (replacements, str) {
  11. let result = str;
  12. for (let [x, y] of replacements)
  13. result = result.replace(x, y);
  14. return result;
  15. }
  16.  
  17. let input = document.title;
  18.  
  19. let output = mreplace ([
  20. //If you want to add more, use this way of declaring
  21. //['What to replace', 'What to replace it with'],
  22. [' ABDL', ''],
  23. ['ABDL', ''],
  24. [' AB/DL', ''],
  25. ['AB/DL', '']
  26.  
  27. ], input);
  28. document.title = output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement