MediaWiki:Wikia.js

$("#wpSave").attr("value", "Save Page"); $("#wpSummary").attr("placeholder", "Please add a summary of your edit");

// // Movepage // Uncheck "Leave a redirect behind" if moving a file // $(function {       if (wgPageName == "Special:MovePage") {                if (document.getElementById('wpNewTitle').value.split(":",1) == "File") {                document.getElementById( 'wpLeaveRedirect' ).checked = false;                }        } });

/** if (wgPageName.toLowerCase.indexOf("move") >= 0 && wgPageName.toLowerCase.indexOf("file") >= 0){ var input = $("#wpLeaveRedirect"); input.removeAttr("checked"); input.val("0"); input.parent.hide; }
 * Force removal of "leave redirect" box for file moves.

/*** Script Configurations ***/

/* AjaxRC */ window.ajaxPages = ["Special:WikiActivity","Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; window.ajaxIndicator = 'http://vignette2.wikia.nocookie.net/dev/images/8/82/Facebook_throbber.gif'; window.ajaxRefresh = 30000; window.AjaxRCRefreshText = 'Auto-refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page';

/* User Tags */ window.UserTagsJS = { //links tags to user lists (i.e. admin --> list of admins) modules: {}, tags: { 'staff': { link: 'Special:ListUsers/staff' },       'vstf': { link: 'Special:ListUsers/vstf' },       'bureaucrat': { link: 'Special:ListUsers/bureaucrat' },       'sysop': { link: 'Special:ListUsers/sysop' },       'bot': { link: 'Special:Listusers/bot' },       'threadmoderator': { link: 'Special:ListUsers/threadmoderator' },       'chatmoderator': { link: 'Special:ListUsers/chatmoderator' },

'rollback': { link: 'Special:ListUsers/rollback' }   } };

/* WikiaNotifiction */

var WikiaNotificationMessage = "Which Youtube streamer are you? Find out and enter to win TubeHero figures! Take the TubeHero Personality Quiz today!"; var WikiaNotificationexpiry = 10;

//—————————————————————————————— ! ! ! ———————————————————————————————// /* Import scripts. NOTE: Place scripts configurations above this line */ importArticles({   type: 'script',    articles: [        'u:dev:BackToTopButton/code.js',  //Back to top button.        'u:dev:SocialIcons/code.js',      //Inserts social media icons for sharing.         'u:dev:AjaxRC/code.js',           //Automatically refreshes pages.        'u:dev:UserTags/code.js',      //Customize user tags.        'u:dev:WikiaNotification/code.js', // Site-wide messaging        'u:halo:MediaWiki:Wikia.js/Slider.js',    ] }); /* Poll - Wikia Rail */ $(window).load(function {   var Poll = ' ';    $('#WikiaRail').append(Poll);    $.getJSON('/api.php?action=parse&text=&format=json', function(n) { var addContent = n.parse.text['*']; $('.Poll').append(addContent); }); });

importScriptURI('https://apis.google.com/js/platform.js');