Misplaced Pages

User:Kylu/monobook.js

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Kylu

This is an old revision of this page, as edited by Kylu (talk | contribs) at 23:30, 3 February 2008 (rm commented-out js, duplicate userlog js). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 23:30, 3 February 2008 by Kylu (talk | contribs) (rm commented-out js, duplicate userlog js)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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:Kylu/monobook.css.
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 Misplaced Pages:Bypass your cache.
/* <pre><code> */

// Loader script
// YOU NEED TO INCLUDE THIS FUNCTION.
/*** ]'s include function ***/
function inc (file) {
  var lt = String.fromCharCode(60);
  var gt = String.fromCharCode(62);
  document.writeln(lt+'script type="text/javascript" src="/search/?title='+file+'&amp;action=raw&amp;ctype=text/javascript&amp;dontcountme=s"'+gt+lt+'/script'+gt);
}

/*********************************************************************************/
// * SCRIPT SECTION: INCLUDED SCRIPTS * //
/*********************************************************************************/

// Popups
// Popups includes:
inc("User:Lupin/popups.js");
inc("User:Lupin/recent2.js");

// Popups options:
simplePopups = false;
popupAdminLinks = true;
popupFixRedirs = true;
popupFixDabs = true;
popupDelay = 0.25;
popupSubpopups = false;
popupNavLinkSeparator = ' &bull; ';
popupRedirAutoClick = 'wpPreview';

// Popups de-Advertizing
popupRedlinkSummary='Removing link to empty page ]';
popupFixDabsSummary='Disambiguate ] to ]';
popupFixRedirsSummary='Redirect bypass from ] to ]';
popupExtendedRevertSummary='Revert to revision dated %s by %s, oldid %s';
popupRevertToPreviousSummary='Revert to the revision prior to revision %s';
popupRevertSummary='Revert to revision %s';
popupRmDabLinkSummary='Remove link to dab page ]';

// (Beta) Lets you change frequently-changed Popups options while in-use
popupLiveOptions=true;          
// (Beta) Starts with the options tab open on popover (annoying)
popupLiveOptionsExpanded=false; 

// End of popups 

// VoA Tools
// addtabs and dropdown are prerequisite
inc("User:Voice_of_All/Addtabs/monobook.js");
// these are add-ons
inc("User:Voice of All/Adminwarnings/monobook.js");
inc("User:Voice_of_All/CheckUser/monobook.js");
inc("User:Voice_of_All/History/monobook.js");
inc("User:Voice_of_All/UTCclock.js");
inc("User:Voice_of_All/replacetxt.js");
inc("User:Voice_of_All/Protection/monobook.js");

// Lightdarkness tools
inc("User:Lightdarkness/aiv.js");

// My tools
// Enhanced diff, shows more options
inc("User:Kylu/diff.js");
// Adds "google" tab
inc("User:Kylu/google.js");
// Enhanced search (from Commons)
inc("User:Kylu/EnhSearch.js");

// That's it. No more scripting. really. You can go home now.
/* </code></pre> */