User:Sandubadear/global.js

window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:WikiActivity", "Especial:WikiActivity","Especial:Mudanças_recentes","Especial:Contribuições"];

window.ajaxIndicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif';

window.ajaxRefresh = 30000;

importScriptPage('AjaxRC/code.js', 'dev');

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importScriptPage("FileUsageAuto-update/code.js", "dev");

importScriptPage('MediaWiki:Rollback/code.js', 'dev');

importScriptPage('MediaWiki:AjaxUndo/code.js', 'dev');

WHAMBotMe = true WHAMDelay = 1000; importArticles({   type: "script",    articles: [        'u:dev:WHAM/code.2.js'    ] });

function ForumRC{ var $temp = $(' '); var href = location.href.replace(/#[\S]*/, ''); $temp.load(href + ' #mw-content-text', function {			var $newContent = $temp.children('#mw-content-text');			if ($newContent.length) {				$('#mw-content-text').replaceWith($newContent);				mw.util.$content = $newContent;			}		}); $temp.remove; } $(function {   if(wgCanonicalNamespace === "Thread")    {   $( ' Reload  ' ).insertAfter('.wds-global-navigation__search:first');   } });

/* if (["wikia","oasis"].indexOf(mw.config.get('skin')) !== -1 && mw.config.get('wgAction') === 'view' && mw.config.get('wgNamespaceNumber') != 500 && !mw.config.get('wgCanonicalSpecialPageName') && ($('nav.wikia-menu-button:nth-child(2)').length || $('.comments').length || $('#ShareEntryPoint').length)) { if ($('#ShareEntryPoint').length) { var shareButton = $('#ShareEntryPoint').first.clone(true,true); $('#ShareEntryPoint').first.remove; $('.header-column:nth-child(1) > h1:nth-child(1)').after(shareButton); }	if ($('.comments').length) { var discussionButton = $('.comments').first.clone(true,true); $('.comments').first.remove; $('.header-column:nth-child(1) > h1:nth-child(1)').after(discussionButton); $('.comments:nth-child(2)').after('   '); }	if ($('nav.wikia-menu-button:nth-child(2)').length) { var editButton = $('nav.wikia-menu-button:nth-child(2)').clone(true,true); $('nav.wikia-menu-button:nth-child(2)').remove; $('.header-column:nth-child(1) > h1:nth-child(1)').after(editButton); $('nav.wikia-menu-button:nth-child(2)').after('   '); }	/* Remove leftover line break after doing everything else */ $('#WikiaPageHeader > br:nth-child(2)').remove; } }) (this.jQuery, this.mediaWiki);
 * @description: This is just a modified version of the RelocateEditDiscussionButtons script (adding the share button).
 * @original author: Ozuzanna
 * @modified by: Ultragustavo25
 * (function($, mw) {

importArticles({   type: 'script',    articles: [        'u:dev:PurgeButton/code.js',    ] });