MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ /* If you don't know what you are doing, do not edit this page */

importScriptPage('ShowHide/code.js', 'dev');

function fBox { $('#fbox').append(''); }

$(fBox);

function fBox2 { $('#fbox2').append(''); }

$(fBox2); AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; importScriptPage('AjaxRC/code.js', 'dev');

function onloadhookcustom { var replace = document.getElementById("JRChatReplace"); if (null != replace) { replace.innerHTML=' '; if (window.attachEvent) window.attachEvent("onbeforeunload",confirmexitjrchat); else window.onbeforeunload = confirmexitjrchat;

} //alert(document.getElementById("JRChatReplace").innerHTML);

}

if (window.addEventListener) window.addEventListener("load",onloadhookcustom,false); else if (window.attachEvent) window.attachEvent("onload",onloadhookcustom); /* Replaces with the name of the user browsing the page. Requires copying Template:USERNAME. */

function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);

/* End of the replacement */

var ShowHideConfig = { brackets: '' }; importScriptPage('ShowHide/code.js', 'dev'); importScriptPage('CollapsibleInfobox/code.js', 'dev'); //for examples on CollapsibleInfobox

// Test if an Element has a Certain Class importScript('MediaWiki:Common.js/elementClass.js'); // END Test if an Element has a Certain Class

//main importScript('MediaWiki:Common.js/main.js'); //main//

// Cookie accessor functions importScript('MediaWiki:Common.js/cookieAccessor.js'); // END Cookie accessor functions // Redesign of ProfileMastheads (included for statustop) importScript('MediaWiki:Common.js/profileRedesign.js'); // END Redesign of ProfileMastheads // Custom edit buttons importScript('MediaWiki:Common.js/CEB.js'); // END of custom edit buttons var autoCollapse = 2; var collapseCaption = "hide"; var expandCaption = "show"; var maxHeight = 300; // Collapsible Tables importScriptPage('ShowHide/code.js', 'dev'); // END of Collapsible Tables // Standard Edit Summaries importScript('MediaWiki:Common.js/standardeditsummaries.js'); // END of Standard Edit Summaries // Ajax auto-refresh var ajaxPages = ['Special:RecentChanges','Special:WikiActivity']; var AjaxRCRefreshText = 'Auto-refresh'; importScriptPage('AjaxRC/code.js', 'dev'); // END of ajax auto-refresh // Added SiteNotice Functionality importScript('MediaWiki:Common.js/sitenotice.js'); // END of added SiteNotice functionality // Fix Edit Summary Prompt for UNDO importScript('MediaWiki:Common.js/undoSummary.js'); // END Fix Edit Summary Prompt for UNDO // Skin Redirect Code importScript('MediaWiki:Common.js/skinRedirect.js'); // END of Skin Redirect Code // Extra Rollback Buttons importScript('MediaWiki:Common.js/extraRollbacks.js'); // END Extra Rollback Buttons // AjaxRollback - works with Extra Rollback Buttons importScript('MediaWiki:Common.js/ajaxRollback.js'); // END AjaxRollback // FastDelete Buttons for Administrators importScript('MediaWiki:Common.js/fastDelete.js'); // END FastDelete Buttons for Administrators // JS for Template:CSS importScript('MediaWiki:Common.js/userCSS.js'); // END JS for Template:CSS // Adds PURGE button for both skins var PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev'); // END Adds PURGE button for both skins // For UserGroup-only messages importScript('MediaWiki:Common.js/UserGroupMessages.js'); // END For UserGroup-only messages // Add "Edit Intro" Button/Tab importScriptPage('EditIntroButton/code.js', 'dev'); // END Add "Edit Intro" Button/Tab // Adds PopupsNavigation importScript('MediaWiki:Common.js/popupsNav.js'); // END Adds PopupsNavigation // Add Enhanced DIFF View importScript('MediaWiki:Common.js/wikEdDiff.js'); // END Add Enhanced DIFF View // Add Template:Information to Special:Upload importScript('MediaWiki:Common.js/uploadTemp.js'); // END Add Template:Information to Special:Upload // Backwards compatibility CSS importScript('MediaWiki:Common.js/backupCSS.js'); // END Backwards compatibility CSS // Locate Main Page "Buttons" into Headers importScript('MediaWiki:Common.js/mainPageButtons.js'); // END Locate Main Page "Buttons" into Headers // IE-specific fixes importScript('MediaWiki:Common.js/IE.js'); // END IE-specific fixes // Display Comments w/ Local Times // importScript('MediaWiki:Common.js/localTimeComments.js'); // END Display Comments w/ Local Times // Temporarily disabling RfRs importScript('MediaWiki:Common.js/SpoilerAlertDemo.js'); // END Temporarily disabling RfRs // 06:49, November 1, 2011 (UTC) //

//