MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ //importScriptPage('MediaWiki:Snow.js','sonako');// jQuery.fx.interval = 100;

var ajaxPages = ["Special:RecentChanges", "Special:WikiActivity", "Special:Log", "Special:MyContributions", "Special:Watchlist"]; var AjaxRCRefreshText = "Auto-refresh"; var ajaxIndicator = "http://images4.wikia.nocookie.net/__cb20100617113123/dev/images/6/6a/Snake_throbber.gif";

PurgeButtonText = 'Refresh trang'; nullEditDelay = 1000; window.lastEdited = { avatar: true, size: false, diff: true, comment: false, time: 'timeago', lang: 'vi', namespaces: { include: [], exclude: [] },   pages: [] };

/********** Wikipedia:Tools/Navigation popups // wikipedia:User:Lupin/popups importScriptURI("http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Lupin/popups.js"); popupStructure='menus'; popupDelay=1.5; /** * Configure my list of global.js articles * Grab the list from sessionStorage if available * This allows me to easily turn on/off individual scripts * from the browser console for testing purposes */ var globalJSArticles; try { globalJSArticles = JSON.parse(sessionStorage.getItem("globalJSArticles")); } catch (e) { globalJSArticles = null; } if (!jQuery.isArray(globalJSArticles)) { globalJSArticles = [ 'u:dev:PurgeButton/code.js', 'u:dev:LastEdited/code.js', 'u:dev:FloatingToc/code.js', "w:dev:WallGreetingButton/code.js", 'w:c:dev:ReferencePopups/code.js', "u:dev:SearchSuggest/code.js", "u:dev:AjaxRC/code.js", "u:dev:ExternalImageLoader/code.js", 'u:dev:NullEditButton/code.js', 'u:dev:MassNullEdit/code.js', "w:c:dev:RevealAnonIP/code.js", 'u:sonako:MediaWiki:Top_And_Down.js', 'u:sonako:MediaWiki:Ebook.js', 'u:sonako:MediaWiki:Nhac.js', 'u:sonako:MediaWiki:Comment.js', 'u:sonako:MediaWiki:DeadVideos.js', 'u:sonako:MediaWiki:Common.js/Usertags.js', 'u:sonako:MediaWiki:StarRatings/stats.js', 'u:sonako:MediaWiki:StarRatings/ui.js', 'u:sonako:MediaWiki:StarRatings/code.js', 'u:sonako:MediaWiki:GA.js', 'u:sonako:MediaWiki:Common.js/Skin_Switch_Button.js', 'u:sonako:MediaWiki:PowerPageMaker.js', 'u:sonako:MediaWiki:Common.js/async.js' ]; } console.log("globalJSArticles =", globalJSArticles); console.log("\nglobalJSArticles.splice(4, 1); sessionStorage.setItem(\"globalJSArticles\", JSON.stringify(globalJSArticles)); window.location.reload;\n\nsessionStorage.removeItem(\"globalJSArticles\"); window.location.reload;\n"); // Load all scripts with importArticles // http://help.wikia.com/wiki/Help:Including_additional_JavaScript_and_CSS importArticles({	type: 'script',	articles: globalJSArticles }); $(function {   if (document.getElementsByClassName("countdown")[0] !== null) {        importScriptPage('MediaWiki:TimeCircles.js‎','sonako');    } }); if (mediaWiki.config.get('wgPageName') === 'Sonako_Patrol') { importStylesheet('User:Dai_ca_superman/SonakoPatrol.css'); importScript('User:Dai_ca_superman/SonakoPatrol.js'); } if (mediaWiki.config.get('wgPageName') === 'Sonako_Real-Time_Feed') { importScript('MediaWiki:Rss.js'); } if (mediaWiki.config.get('wgPageName') === 'Test') { importScript('MediaWiki:Test.js'); }

if (mediaWiki.config.get('wgPageName') === 'Sonako_Light_Novel') { importScript('MediaWiki:Mainpage.js'); }

var loadScripts = new Array;

if (typeof wgIsEditPage != "undefined"|| mw.util.getParamValue('action') == "edit" || mw.util.getParamValue('action') == "submit" || wgPageName == "Special:CreateBlogPage" ) { loadScripts.push('MediaWiki:StdTemplates.js'); importScriptURI('http://kangaroopower.wikia.com/index.php?title=MediaWiki:Scope.js/dev.js&action=raw&ctype=text/javascript&t=' + (new Date).getTime); }

importArticles({ type: 'script', articles: loadScripts });

/* */