User:Pecoes/global.js

Sine = { sine: '' + String.fromCharCode(126) };

importScriptPage('Sine/code.js', 'dev'); importScriptPage('FixWantedFiles/code.js', 'dev'); importScriptPage('FastDelete/code.js', 'dev'); importScriptPage('AjaxUndo/code.js', 'dev'); //importScriptPage('PurgeButton/code.js', 'dev' );

importScriptURI('http://dev.wikia.com/wiki/BotoneraPopups/Code/en.js?action=raw&ctype=text/javascript&templates=expand'); importStylesheetPage('BotoneraPopups/code.css', 'dev');

importScriptPage('Flib.js', 'wikimarks');

importScriptPage('Client.js', 'wikimarks');

if( wgNamespaceNumber >= 0 && !window.PurgeButtonsLoaded && document.getElementById('control_purge') == null && wgNamespaceNumber != 500 && wgNamespaceNumber != 502 ) { addOnloadHook( addPurgeButton ); } var PurgeButtonsLoaded = true; // prevent duplicate running (but not dupe buttons from outside this code) function addPurgeButton { var theText = 'Refresh'; //default text, ala SMW if( typeof PurgeButtonText == "string" ) { theText = PurgeButtonText; }   function purge  { $.get('/index.php?title=' + encodeURIComponent(wgPageName) + '&action=purge', function {            location.reload(true);        }); }   switch( skin ) { case 'answers': /* forked from monaco, close enough, pass to monaco */ case 'awesome': /* you really shouldnt even have this value... */       case 'monaco_old': /* really, where are you getting these skin settings from... */       case 'monaco': $('#page_controls').append(''+ theText + ''); break; case 'uncyclopedia': /* monobook clone, pass to monobook */ case 'wowwiki': /* monobook clone, pass to monobook */ case 'lostbook': /* monobook clone, pass to monobook */ case 'monobook': $('#p-cactions > .pBody > ul').append(''+ theText + ''); break; case 'oasis': case 'wikia': $(((wgNamespaceNumber == 2 || wgNamespaceNumber == 3) && $( '.UserProfileActionButton' ).length ? '.UserProfileActionButton' : '#WikiaPageHeader') + ' > .wikia-menu-button > ul').append(''+ theText + ''); break; }   $('#purge').click(purge); }