MediaWiki:Common.js

// Adding links to On the Wiki tab - From Runescape Wiki $(document).ready(function {   if ( skin == 'oasis' && $.inArray("staff", wgUserGroups) == -1) {        $('.WikiHeaderRestyle nav ul li.marked ul').prepend('Our Policies'); //      $('.WikiHeaderRestyle nav ul li.marked ul').append('Blog posts');    } });

// "Username" template - from Avatar Wiki

$(function { if (typeof wgUserName != 'undefined') {     $('.insertusername').html(wgUserName);  } });

// Auto-refresh button config options ajaxPages = ["Blog:Featured blog posts","Blog:News","Blog:Popular blog posts","Blog:Recent posts","Special:Contributions","Special:Log","Special:RecentChanges","Special:WikiActivity","User blog:Lol Limewire/Bloons Trivia Reborn!"];

// InactiveUsers settings InactiveUsers = { months: 1, gone: ['Anomalous13'] //Format - gone: ['User1', 'User2'] //   text: 'Inactive' };

// LockOldBlogs settings window.LockOldBlogs = { expiryDays: 30,     // lock blogs after "expiryDays" days expiryMessage: "This blog is considered archived because it hasn\'t been commented on in over  days.\nTo disable the auto-archiving on your post you can add it to the \"Never archived posts\" category", nonexpiryCategory: "Never archived posts" };

importArticles({   type: "script",    articles: [        "MediaWiki:Common.js/ajaxrefresh.js",           //Auto-refresh        "MediaWiki:Common.js/chat.js",                  //Test only        "MediaWiki:Chat-headline",        "MediaWiki:Common.js/Contribs.js",              //Contribs to user menu        "MediaWiki:Common.js/displayTimer.js",          //UTC Clock        "MediaWiki:Common.js/EditGreeting.js",          //Edit greeting button        "MediaWiki:Common.js/ShowHide.js",              //From dev        "MediaWiki:Common.js/standardeditsummaries.js", //From runescape        "w:c:dev:LockOldBlogs/code.js",                 //Disables commenting on old blogs        "w:c:dev:Countdown/code.js",                    //Countdown timer        "w:c:dev:InactiveUsers/code.js",                //Inactive tag        "w:c:dev:FastDelete/code.js",                   //FastDelete        "w:c:dev:RevealAnonIP/code.js",                 //Reveals anon IPs ] });

// FastDelete var fdButtons = [];

fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'Spam' };

fdButtons[fdButtons.length] = { 'summary': 'Vandalism', 'label': 'Vandalism' };

// Change chat description // First seen (aka borrowed) at my little pony wiki

function changeChatDesc { try { if ($('section.ChatModule').size > 0 && $('p.chat-name').html != chatDesc){ $('p.chat-name').html(+chatDesc+); setTimeout("changeChatDesc", 200); } }catch (err){ setTimeout("changeChatDesc", 200); } }; $(document).ready(function {changeChatDesc});

// RevealAnonIP from dev wiki window.RevealAnonIP = { permissions : ['rollback', 'sysop', 'bureaucrat'] }; // End RevealAnonIP