Advertisement
Guest User

Net Neutrality userscript

a guest
Dec 12th, 2017
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         BFTN Meme
  3. // @version      0.1
  4. // @description  Meme
  5. // @match        https://*/*
  6. // @match        http://*/*
  7. // @grant        none
  8. // ==/UserScript==
  9.  
  10. const ToReplace =
  11. [
  12.     {Regex: /(save * net * neutrality)/gi, Words: "save thicc ass"},
  13.     {Regex: /(net neutrality)/gi, Words: "Thicc Ass"},
  14.     {Regex: /(savenetneutrality)/gi, Words: "SaveThiccAss"},
  15.     {Regex: /(netneutrality)/gi, Words: "AssNeutrality"},
  16.     {Regex: /(stopthefcc)/gi, Words: "StopTheFlat"},
  17.     {Regex: /(the congress)/gi, Words: "the Death Eaters"},
  18.     {Regex: /(congress)/gi, Words: "the Death Eaters"},
  19.     {Regex: /(throttle)/gi, Words: "money shot"}
  20. ];
  21.  
  22. (function()
  23. {
  24.     window.addEventListener("load", function()
  25.     {
  26.         let body = document.body.innerHTML;
  27.  
  28.         for (let i = 0, len = ToReplace.length; i < len; i++)
  29.         {
  30.             const part = ToReplace[i];
  31.             body = body.replace(part.Regex, part.Words);
  32.         }
  33.  
  34.         document.body.innerHTML = body;
  35.     }, false);
  36. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement