User:Nanaki/global.js

PurgeButtonText = 'Odśwież';

importArticles({   type: "script",    articles: [      "u:dev:NoImageLightbox/code.js",      "u:dev:WHAM/code.js",      "u:dev:AjaxBatchDelete/code.js",      "u:dev:RevealAnonIP/usercode.js",      "u:dev:ShowAdsButton/code.js",      "u:dev:BackToTopButton/code.js",      "u:dev:RelatedDiscussionsModule/code.js",      "u:dev:PurgeButton/code.js",      "u:dev:FloatingToc/code.js",    ] });

function lookupContribsLink { if($('#contentSub').length==0) return; var allLinks = $('#contentSub > A'); var lastLink = $('#contentSub > A:last-child'); for(var x=0;x H1:first-child').html; var css = { 'background-color': 'rgba(255,255,255,0.9)', 'border-radius': '3px', 'display': 'inline-block', 'padding': '3px 5px', 'margin': '2px 5px', 'height': '16px', 'line-height': '16px', 'vertical-align': 'middle', }   var en = $(document.createElement('span')).css(css).append(''); var pl = $(document.createElement('span')).css(css).append(''); var container = $(document.createElement('div')).css({       'float': 'right',        'height': '38px',        'line-height': '38px',        'vertical-align': 'middle',        'margin-right': '-15px',    }); if(! /spolecznosc.wikia.com/.test(location.href)) container.append(pl); if(! /community.wikia.com/.test(location.href)) container.append(en); hgroup.append(container); } function WHAMfix { $('#quicktools').click(function(event) {       event.preventDefault;        $('.dialog-full').dialog('open');    }); } //addOnloadHook(lookupContribsLink); addOnloadHook(userLinkToCentral); addOnloadHook(WHAMfix);