User:Nanaki/global.js

importArticles({   type: "script",    articles: [      "w:c:dev:NoImageLightbox/code.js",      "w:c:dev:WHAM/code.js",      "w:c:dev:AjaxBatchDelete/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);