Advertisement
nhorquender

Untitled

Aug 4th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Recuit
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://www.torn.com/userlist.php?*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. var listObserver = new MutationObserver(function(mutations) {
  15. mutations.forEach(function(mutation) {
  16. //$("li #icon9").parent().parent().parent().parent().parent().hide() //hides already in a faction (shows leader and co)
  17. $("li #icon27").parent().parent().parent().parent().parent().hide() //hides company
  18. $("li #icon73").parent().parent().parent().parent().parent().hide() //hides company
  19. /*
  20. $("li #icon6").parent().parent().parent().parent().parent().hide() //males
  21. $("li #icon7").parent().parent().parent().parent().parent().hide() //females
  22. $("li #icon3").parent().parent().parent().parent().parent().show() //
  23. $("li #icon4").parent().parent().parent().parent().parent().show()
  24. */
  25. });
  26. });
  27. listObserver.observe($('.user-info-list-wrap')[0], { attributes: true, childList: true, characterData: true });
  28.  
  29. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement