- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
User:Schnookums/gag: Difference between revisions
Jump to navigation
Jump to search
imported>Schnookums gm script that gags U Mad Bro from rc (requested) |
imported>Schnookums gm script that gags U Mad Bro from rc (requested) |
(3 intermediate revisions by the same user not shown) | |
(No difference)
|
Latest revision as of 18:25, 28 March 2015
// ==UserScript== // @name wiki // @namespace [email protected] // @include *encyclopediadramatica* // @exclude *forum.* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js // @run-at document-start // ==/UserScript== if (window.top != window.self) { return ; } var users = [ 'User:U Mad Bro', 'User talk:U Mad Bro', ]; var count = 0; var interval = setInterval(function () { $('ul.special li.mw-line-even, ul.special li.mw-line-odd') .each(function () { for (index = 0; index < users.length; index++) { if ($(this) .html() .search(users[index]) != - 1) { //alert ($(this).html()); $(this) .remove(); } } }); $('#siteNotice') .remove(); if (count++ > 20) { clearInterval(interval); } }, 50); var interval_title = setInterval(function () { if (document.title) { document.title = document.title + ' - wiki'; clearInterval(interval_title); } }, 250);