SHARE
TWEET

Untitled

a guest Apr 1st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top