User:MrAwesome8/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); importScriptPage('User:Madnessfan34537/ignore.js','cod'); importScriptPage('AjaxBatchDelete/code.js', 'dev'); importScriptPage('User:Sannse/forumtools.js', 'community'); //importScriptPage('User:Splarka/contribtools.js', 'community'); // -- importScriptPage('FastDelete/code.js', 'dev'); importScriptPage('User:Sannse/Imagelisttools.js', 'community'); //importScriptPage('User:MrAwesome8/test.js', 'c'); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': '* Violation of Wikia\'s Terms of Use ', 'label': 'ToU'}; fdButtons[fdButtons.length] = { 'summary': 'Removed by Wikia staff due to potential copyright issues', 'label': 'copyrt'}; fdButtons[fdButtons.length] = { 'summary': 'Requested deletion', 'label': 'reqst'}; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'other'}; if(wgNamespaceNumber!=-1) addOnloadHook(function { addPortletLink('p-cactions','/wiki/Special:Prefixindex/' + escape(wgPageName),'Subpages','ca-subpages','Show subages of ' + wgPageName); }); importScriptPage('User:Joeyaa/wham.js','vstf'); $('a[data-name="customize"]').html( function{ return $(this).parent.find('img').detach } ); importScriptURI( 'https://internal.wikia-inc.com/index.php?title=MediaWiki:CU.js&action=raw&ctype=text/javascript' );

//importScriptPage('User:~=(iNate)=~/ChatHacks.js', 'c');

window.InactiveUsers = function (my) { function restart { $(function {            $('.inactive-user', '#UserProfileMasthead')            .add('.inactive-user', 'h1#firstHeading')            .remove;        }); }       function getSkinType  { switch (skin) { case 'uncyclopedia': case 'wowwiki': case 'lostbook': case 'monobook': return 'monobook'; case 'oasis': case 'wikia': return 'oasis'; default: return false; }   }    function getUserName  { switch (my.skinType) { case 'monobook': if (2 !== wgNamespaceNumber || -1 !== wgTitle.indexOf('/')) return false; return wgTitle; case 'oasis': if (-1 < [2,3,500,501,1200].indexOf(wgNamespaceNumber) && -1 === wgTitle.indexOf('/')) { return wgTitle; } else if (-1 === wgNamespaceNumber && -1 < ['Contributions','Following'].indexOf(wgCanonicalSpecialPageName)) { if ('/index.php' == location.pathname) { return $.getUrlVar('target') || false; }                   var lastPart = location.pathname.split('/').pop; if (lastPart.length && lastPart != wgPageName) { return decodeURIComponent(lastPart.replace(/_/g, ' ')); }                   return wgUserName; }               return false; default: return false; }   }    function getApiUrl  { function ISODateNDaysAgo (days) { function pad (n) { return n < 10 ? '0' + n : n; } function ISODateString (d) { return   d.getUTCFullYear + '-' + pad(d.getUTCMonth+1) + '-' + pad(d.getUTCDate)   + 'T' + pad(d.getUTCHours)  + ':' + pad(d.getUTCMinutes) + ':' + pad(d.getUTCSeconds) + 'Z' ; }           return ISODateString(new Date(Date.now - days * 24 * 60 * 60 * 1000)); }       return '/api.php?action=query&list=usercontribs&uclimit=1&ucprop=title|timestamp&format=json' + '&ucuser=' + encodeURIComponent(my.userName) + '&ucstart=' + ISODateNDaysAgo(0) + '&ucend='  + ISODateNDaysAgo(30 * Math.max(1, parseInt(my.months, 10))); }   function labelAsInactive  { switch (my.skinType) { case 'oasis': $(function {                    $('hgroup', '#UserProfileMasthead').append( ' ' + my.text + ' ' );               });                break; case 'monobook': $(function {                    $('h1#firstHeading').append( ' [' + my.text + '] ' );               })                break; }   }    my = $.extend({        text: 'inactive', gone: [], months: 2, debug: false    }, my); if (my.debug) restart; my.skinType = getSkinType; my.userName = getUserName; if (!my.skinType || !my.userName) { if (my.debug) console.log('InactiveUsers(abort): ', my); return; }   if (-1 < my.gone.indexOf(my.userName)) { if (my.debug) console.log('InactiveUsers(gone): ', my); labelAsInactive; } else { my.apiUrl = getApiUrl ; $.getJSON(my.apiUrl, function (result) {           my.reply = result;            if (result.query && result.query.usercontribs && !result.query.usercontribs.length) {                if (my.debug) console.log('InactiveUsers(query): ', my);                labelAsInactive;            }            if (my.debug) console.log('InactiveUsers(abort): ', my);        }); }   return my; } (window.InactiveUsers = window.InactiveUsers || {});

importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Rappy_4187/scripts.js&action=raw&ctype=text/javascript'); // PurgeButton PurgeButtonText = 'Purge'; importArticles({   type: 'script',    articles: [        'u:dev:FastDelete/code.js',        'u:dev:PurgeButton/code.js'] });

importScriptURI('http://janitor.wikia.com/index.php?title=User:RansomTime/scripts.js&action=raw&ctype=text/javascript')