Jump to content

User:Rich Wales sans superpowers/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
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";
}