Advertisement
Guest User

Quacking? I don't see any Quacking?

a guest
Feb 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         <3 Evil-Duck
  3. // @namespace    QuackQuack
  4. // @version      15.22.10004
  5. // @description  Hides quacking
  6. // @include      *.torn.com/forums.php*
  7. // @grant        none
  8. // ==/UserScript==
  9.  
  10. (function() {
  11.     'use strict';
  12.  
  13.     var duckObserver = new MutationObserver(function(mutations) {
  14.         mutations.forEach(function(mutation) {
  15.             if (mutation.addedNodes.length > 0) {
  16.                 // Quacking? I don't see any quacking!
  17.                 $('ul.thread-list > li > div.column-wrap > div.post-wrap[data-author="1182047"]').parent().parent().remove();
  18.                 $('ul.threads-list > li.new > div.thread-info-wrap > ul.thread > li.starter > a.user[href*="1182047"]').parent().parent().parent().parent().remove();
  19.                 $('ul.threads-list > li.new > div.thread-info-wrap > ul.thread > li.starter > a.user[data-placeholder*="1182047"]').parent().parent().parent().parent().remove();
  20.             }
  21.         });
  22.     });
  23.     duckObserver.observe($('#forums-page-wrap')[0], { attributes: true, childList: true, characterData: true });
  24.  
  25. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement