User:Rich Wales sans superpowers/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Rich Wales sans superpowers/common.css. |
if (false) {
// different background colours if using HTTP vs. HTTPS
document.body.style.background = "none";
if (document.URL.match(/^https:/))
document.body.style.backgroundColor = "#eeffff";
else document.body.style.backgroundColor = "#ffffee";
// importScript('User:Richwales/dropdown-menus.js');
// /* block display of "bad" images */
// importScript('User:Mr.Z-man/badimages.js');
/* disable Wikipedia access keys/keyboard shortcuts */
ta = false;
// [[user:js/watchlist]]
if (wgCanonicalSpecialPageName == 'Watchlist')
importScript('user:js/watchlist.js');
// [[User:Lupin/popups.js]]
// document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/* options for "Comments in Local Time" */
LocalComments = {
dateDifference: false,
dateFormat: 'dmy',
timeFirst: true,
twentyFourHours: true,
dayOfWeek: false,
dropDays: 93,
dropMonths: 24
};
// /* from User:Lupin */
// importScript('User:Lupin/recent2.js');
/* from User:NuclearWarfare */
//importScript('Wikipedia:WikiProject User scripts/Scripts/Six tabs');
importScript('User:Smith609/toolbox.js');
// importScript('User:Ais523/watchlistnotifier.js');
// importScript('User:NuclearWarfare/Mark-blocked script.js');
// importScript('User:Tra/sidebartranslate.js');
// importScript('User:ais523/adminrights.js');
// importScript('User:Misza13/viewSource.js');
// importScript('Wikipedia:WikiProject User scripts/Scripts/Changes since I last edited');
importScript('User:Richwales/live-edit-counter.js');
importScript('User:Richwales/markusers.js');
importScript('User:Dr_pda/prosesize.js');
/* Force preview */
/* by Marc Mongenet, 2006, fr.wikipedia. Modified to work for non-anons by Soxred93 */
/* [[User:Soxred93/forcepreview.js]] */
function forcePreview() {
if (wgAction == "edit")
{
document.getElementById("wpSave").disabled=true;
document.getElementById("wpSave").value = "Save (preview first)";
document.getElementById("wpSave").style.fontWeight = "normal";
document.getElementById("wpPreview").style.fontWeight = "bold";
}
}
$(forcePreview);
// importScript('User:Richwales/flagadmins.js');
// importScript('User:Dl2000/DateFix.js');
importScript("User:GregU/dashes.js");
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool
fixedSidebar = "never";
}