Guest User

Untitled

a guest
Oct 2nd, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Cuck Detector
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Rag on a stick
  6. // @author A special kid from /pg/
  7. // @match http://boards.4chan.org/*
  8. // @grant none
  9. // @include http://boards.4chan.org/*
  10.  
  11. // ==/UserScript==
  12. nodes = document.evaluate("//text()",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
  13.  
  14. var searchterm = new RegExp('4chan Pass user since' + '.*','gi');
  15. var replaceterm = 'Proud Cuck';
  16. for (var i = 0; i < nodes.snapshotLength;i++){
  17. var node = nodes.snapshotItem(i);
  18. node.data = node.data.replace(searchterm,replaceterm);
  19. }
Add Comment
Please, Sign In to add comment