MediaWiki:AdvancedWikiActivity.js

//Advanced WikiActivity script. //Personal use only if (wgCanonicalSpecialPageName == "WikiActivity") { $('.WikiaPageHeader').after(' Thêm thông tin '); $('#more-data').click(function {        $(this).removeAttr('id').text('Mặc định').click(function  { window.location.reload; });       $('#WikiaRail').fadeOut('slow');        importArticles({ type: "style", article: "u:sonako:MediaWiki:AdvancedWikiActivity.css" });       $('#WikiaArticle').html('    ').css('width', $('#WikiaMainContent').width - 20);        var json = wgServer + '/api.php?action=query&list=recentchanges&rclimit=50&rcprop=sizes|title|user|timestamp|comment|ids&format=json&callback=?';        $(getrecent);        function getrecent {            $.getJSON(json, function (data) { $('tbody').html(''); $.each(data.query.recentchanges, function (index, val) {                   $('tbody').append('' + val.type + '  ' + val.user + '  ' + val.title + '  ' + val.oldlen + '  ' + val.newlen + '  ' + (val.newlen - val.oldlen) + ' '  + val.comment + '  ' + val.timestamp.replace(/T/, ' ').replace(/Z/, '') + '  ');                }); });           setInterval(getrecent, 45000);        };    }); }