Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name <3 Evil-Duck
- // @namespace QuackQuack
- // @version 15.22.10004
- // @description Hides quacking
- // @include *.torn.com/forums.php*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var duckObserver = new MutationObserver(function(mutations) {
- mutations.forEach(function(mutation) {
- if (mutation.addedNodes.length > 0) {
- // Quacking? I don't see any quacking!
- $('ul.thread-list > li > div.column-wrap > div.post-wrap[data-author="1182047"]').parent().parent().remove();
- $('ul.threads-list > li.new > div.thread-info-wrap > ul.thread > li.starter > a.user[href*="1182047"]').parent().parent().parent().parent().remove();
- $('ul.threads-list > li.new > div.thread-info-wrap > ul.thread > li.starter > a.user[data-placeholder*="1182047"]').parent().parent().parent().parent().remove();
- }
- });
- });
- duckObserver.observe($('#forums-page-wrap')[0], { attributes: true, childList: true, characterData: true });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement