Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Title cleaner forum
- // @namespace http://github.com
- // @version 0.1
- // @description Removes ABDL from title on ABDL sites
- // @include *abdl*
- // @author BrightTo
- // ==/UserScript==
- function mreplace (replacements, str) {
- let result = str;
- for (let [x, y] of replacements)
- result = result.replace(x, y);
- return result;
- }
- let input = document.title;
- let output = mreplace ([
- //If you want to add more, use this way of declaring
- //['What to replace', 'What to replace it with'],
- [' ABDL', ''],
- ['ABDL', ''],
- [' AB/DL', ''],
- ['AB/DL', '']
- ], input);
- document.title = output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement