User:Chiến Thần Vương/global.js

var ajaxPages = ["Đặc_biệt:Thay_đổi_gần_đây", "Đặc_biệt:Hoạt_động_wiki", "Đặc_biệt:Nhật_trình", "Đặc_biệt:Đóng_góp_của_tôi", "Đặc_biệt:Danh_sách_theo_dõi", "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"; var QuickToolsAdvancedtop = false; window.cacheSkip = []; window.cacheSkipLimit = 1000; window.topLevelCat = ''; massRenameDelay = 1000; massRenameSummary = 'automatic'; var QuickContribs = { expiry : '3 days', reason : 'Vandalism' };

importArticles({   type: "script",    articles: [		'u:dev:ListFiles/code.js',        'w:c:dev:CacheCheck/code.js',		'u:dev:AjaxBatchDelete/code.2.js',		'u:dev:WHAM/code.js',		'u:dev:QuickContribs/code.js',		'u:dev:AjaxRename/code.js',		'u:dev:PurgeButton/code.js',		'w:c:dev:BackToTopButton/code.js',		'u:dev:RevealAnonIP/usercode.js',		'u:dev:NoImageLightbox/code.js',		'u:dev:PortableCSSPad/code.js',        'u:dev:MassRenameRevert/code.js',        'u:dev:CategoryRenameAuto-update/code.js',		'u:dev:HideRail/code.js',		'u:dev:AjaxBatchUndelete/code.js',        'u:dev:Quick_Management/code.js',        'u:dev:QuickComments/code.js',		'u:dev:QuickComments/advanced.js',		'u:dev:AjaxRC/code.js',		'u:dev:MassRename/code.js',		'u:dev:QuickThreads/code.js',		'u:dev:QuickToolsv2/code.js',		'u:dev:MassProtect/code.js',		'u:dev:LastEdited/code.js',                'u:dev:MultiUpload/code.js',                'u:dev:NullEditButton/code.js', 'u:dev:MassNullEdit/code.js', 'u:dev:AutoEditPages/code.js', 'u:dev:PageRenameAuto-update/code.js', 'u:dev:Thread_Inspection/code.js', 'u:dev:MassCategorization/code.js', 'u:dev:FileUsageAuto-update/code.js', 'u:c:User:Ozuzanna/chatconnect.js', 'u:dev:DiffAnchored/code.js', 'u:dev:CategoryRenameAuto-update/code.js', 'u:dcsuper:User:Dai_ca_superman/GlobalScripts.js', 'u:dcsuper:MediaWiki:Skin_Switch_Button.js', ] });

$(function {   if(!$('#WikiaArticleComments').length) {        return;    }    window.CommentReply = function {        $('.buttons .tools').before('Quote ');        $('.article-comm-quote').click(function { var text = '', nick = $(this).parents('.SpeechBubble').attr('data-user'), $comment = $(this).parents('.speech-bubble-message'); $(this).parents('.speech-bubble-message').find('.article-comm-text p').each(function {               text += $(this).text.replace(/\n/g,' ');            }); if ($(this).parents('.sub-comments').length) { $(this).parents('.sub-comments').prev.find('.article-comm-reply').click; } else { $(this).parents('.SpeechBubble').find('.article-comm-reply').click; }           $comment.bind("DOMSubtreeModified", function {                if ($('.loading-indicator').css('display') != 'none') {                    return;                }                $comment.unbind("DOMSubtreeModified");                $('[name="wpArticleReply"]').val(''+nick+': '+text+' ');            }); });   };    if ($('#article-comments').length) {        CommentReply;    } else {        $("#WikiaArticleComments").bind("DOMSubtreeModified", function { if (!$('#article-comments').length) { return; }           $("#WikiaArticleComments").unbind("DOMSubtreeModified"); CommentReply; });   } });