Note: After saving, you have to bypass your browser's cache to see the changes.
- Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
- Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
- Chrome: press Ctrl+F5 or Shift+F5
- Opera users have to clear their caches through Tools→Preferences
- Konqueror and Safari users can just click the Reload button.
/* ----------------------- CASUALTY WIKI OASIS JS ------------------------ */
/* ----------------------------- JS IMPORTS ------------------------------ */
/* Edit Summaries */
importScriptPage('MediaWiki:Summaries.js', 'casualty');
/* ------------------------- REMOVABLE FEATURES -------------------------- */
/* Disable Image Upload Pop-Ups */
$(document).ready(function()
{
$('a.wikia-button.upphotos').unbind('click',UploadPhotos.showDialog);
});
function PlaceholderLink() {
$('.wikiaPlaceholder a').attr('href', '/wiki/Special:Upload').unbind('click');
}
$(PlaceholderLink);
/* --------------------------- ADMIN CONTROLS ---------------------------- */
/* Enable Admin Controls */
function AdminControl() {
if(window.wgUserGroups && (wgUserGroups.indexOf("sysop")) != -1) {
$('.admin').css({"display": 'inline'});
}
}
$(AdminControl);
/* -------------------------------- LINKS -------------------------------- */
/* Popup Chat Window Links */
$(".openchat a").click(function() {
window.open('/wiki/Special:Chat', 'wikiachat', 'width=600,height=600,menubar=no,status=no,location=no,toolbar=no,scrollbars=no,resizable=yes');
return false;
});
/* ------------------------------ AD TITLES ------------------------------ */
function ADTitle() {
$('.AdminDashboardHeader h1 a').replaceWith('<a data-tracking="header/wordmark" href="Casualty Wiki"><img height="48" alt="CASUAL+Y WIKI" src="http://images4.wikia.nocookie.net/__cb38/casualty/images/8/89/Wiki-wordmark.png"></a><span class="adtitle">' + wgCanonicalSpecialPageName + '</span>');
}
$(ADTitle);