User:DigiFluid/monobook.js

// Find more stuff in w:c:c:User:Xd1358/global.js //Adds a new box in the sidebar and populates it with custom links --Grunny addOnloadHook( function {	$('#p-interaction').after(' quick links   ');	addPortletLink('p-pql','/wiki/Special:AbuseFilter','abf');	addPortletLink('p-pql','/wiki/Wookieepedia:AgriCorps','AC');	addPortletLink('p-pql','/wiki/Wookieepedia:Inquisitorius','Inq');	addPortletLink('p-pql','/wiki/Wookieepedia:Comprehensive_article_nominations','CAN');	addPortletLink('p-pql','/wiki/Category:Candidates_for_speedy_deletion','CSD');	addPortletLink('p-pql','/wiki/Wookieepedia:Good_article_nominations','GAN');	addPortletLink('p-pql','/wiki/Wookieepedia:Featured_article_nominations','FAN');	addPortletLink('p-pql','/wiki/Wookieepedia:Re-featured_article_nominations','RFAN');	addPortletLink('p-pql','/wiki/Wookieepedia:Requests_for_protection','RFP');	addPortletLink('p-pql','/wiki/Wookieepedia:Requests_for_user_rights','RFU');	addPortletLink('p-pql','/wiki/Wookieepedia:Spamfilter problems','SFP'); addPortletLink('p-pql','/wiki/Wookieepedia:Trash_compactor','TC'); addPortletLink('p-pql','/wiki/Wookieepedia:Vandalism_in_progress','VIP'); addPortletLink('p-pql','/wiki/Wookieepedia:Wookieepedian_of_the_Month','WOTM'); } );

//Removes some links from the sidebar; by user:Tm T. function remove_portlet_link(section, link) {   var list = document.getElementById(section) .getElementsByTagName('div')[0] .getElementsByTagName('ul')[0]; var listelements = list.getElementsByTagName('li');

for (var i = 0; i < listelements.length; i++) { if (listelements[i].getElementsByTagName('a')[0].href == link ) { list.removeChild(listelements[i]); }   } }

function remove_links {   remove_portlet_link('p-navigation', "http://starwars.wikia.com/wiki/Wookieepedia:Wookieenews"); remove_portlet_link('p-navigation', "http://starwars.wikia.com/wiki/Wookieepedia:Featured_articles"); remove_portlet_link('p-navigation', "http://starwars.wikia.com/wiki/Help:Contents"); remove_portlet_link('p-navigation', "http://starwars.wikia.com/wiki/Wookieepedia:FAQ"); remove_portlet_link('p-interaction', "http://starwars.wikia.com/wiki/Wookieepedia:About"); remove_portlet_link('p-interaction', "http://starwars.wikia.com/wiki/Wookieepedia:Community_Portal"); remove_portlet_link('p-interaction', "http://starwars.wikia.com/wiki/Wookieepedia:IRC"); }

addOnloadHook(remove_links);

//Adds a link in the "interaction" box in Monobook sidebar. By User:Tm_T. addOnloadHook( function {	addPortletLink('p-interaction', "/wiki/Forum:Administrators'_noticeboard", "Admin noticeboard"); });

// Adding links to Monobook's p-personal thing (top right corner). By User:Tm_T function add_link {    var URL = '/wiki/User:Xd1358/test' addPortletLink('p-personal', URL, "test page"); } addOnloadHook(add_link);

// Customized fastdelete importScriptPage( 'FastDelete/code.js', 'dev' ); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': '-- 1.1 Fanon', 'label': 'FN' }; fdButtons[fdButtons.length] = { 'summary': '-- 1.2 Nonsense', 'label': 'N' }; fdButtons[fdButtons.length] = { 'summary': '-- 2.1 CSD', 'label': 'CSD' }; fdButtons[fdButtons.length] = { 'summary': '-- 3.5 Unnecessary redirect', 'label': 'red' }; fdButtons[fdButtons.length] = { 'summary': ' ', 'label': 'nr' };