User:Xover/common.js
Jump to navigation
Jump to search
Note: After saving, changes may not occur immediately. Click here to learn how to bypass your browser's cache.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Cmd-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (Cmd-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
For details and instructions about other browsers, see Wikipedia:Bypass your cache.
Code that you insert on this page could contain malicious content capable of compromising your account. If you are unsure whether code you are adding to this page is safe, you can ask at the central discussion page, Scriptorium. The code will be executed when previewing this page under some skins, including Monobook. You can in the interim if you wish to refresh the content sooner under another skin. |
The accompanying .css page for this skin is at User:Xover/common.css. |
window.charinsertCustom = {
"User": '{{em}} {{gap}} {{sc|+}} {{sp|+}} {{xl|+}} {{c|+}} {{c|{{xl|+}}}} {{c|{{xl|{{sp|+}}}}}} {{dhr|2}}'
};
mw.loader.load('//en.wikisource.org/w/index.php?title=User:Inductiveload/jump to file/load.js&action=raw&ctype=text/javascript');
// mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');
// Test cross-wiki loading of user script.
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Xover/EasyLinks.js&action=raw&ctype=text/javascript');
// Let's try the enwp version…
// mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&bcache=1&maxage=259200&action=raw&ctype=text/javascript');
// Testing Danny's Quick closer.
//importScript('User:DannyS712/Quick closer.js'); //Linkback: [[User:DannyS712/Quick closer.js]]
mw.loader.load( '/w/index.php?title=User:Xover/Quick closer.js&action=raw&ctype=text/javascript' );
// Add Source link tab in Translation: namespace.
// importScript('User:Xover/sourcelinktranslations.js'); //Linkback: [[User:Xover/sourcelinktranslations.js]]
// Try out [[User:Rillke]'s bigChunkedUpload script
mw.loader.load('//commons.wikimedia.org/w/index.php?title=User:Rillke/bigChunkedUpload.js&action=raw&ctype=text/javascript');
// My little toy focus script.
// importScript( 'User:Xover/focus.js' ); // Backlink: [[User:Xover/focus.js]]
// Local copy of the {{nop}}-inserter
mw.config.set('userjs-nopinserter', {
dontConfirmNopAddition: true,
notificationStyle: "message",
notificationTimeout: 1000
});
// Let's try out Sam's curls…
importScript('User:Samwilson/CurlyQuotes.js');
// quick status changer
mw.loader.load('/w/index.php?title=User:Xover/change-status.js&action=raw&ctype=text/javascript');
// Test ocrtoy
mw.loader.load('/w/index.php?title=User:Xover/ocrtoy.js&action=raw&ctype=text/javascript');
// Test headertools
mw.loader.load('/w/index.php?title=User:Xover/Headertools.js&action=raw&ctype=text/javascript');
// Test ocrtoy preferences mockup
mw.loader.load('/w/index.php?title=User:Xover/ocrtoy-prefs.js&action=raw&ctype=text/javascript');
// Unwrap hard wrapped OCR text, or just clean up whitespace
importScript('User:Xover/unwrap.js'); // Backlink: [[User:Xover/unwrap.js]]
mw.loader.load("//en.wikisource.org/w/index.php?title=User:Xover/cleanup.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Xover/cleanup.js]]
// Debug Phe's OCR gadget
//importScript('User:Xover/Gadget-ocr.js'); // Backlink: [[User:Xover/Gadget-ocr.js]]
// Inductiveload's index previewer
mw.loader.load("//en.wikisource.org/w/index.php?title=User:Inductiveload/index preview.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Inductiveload/index preview.js]]
// JS sandbox
//mw.loader.load("//en.wikisource.org/w/index.php?title=User:Xover/sandbox.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Xover/sandbox.js]]
// Loupe
//mw.loader.load("//en.wikisource.org/w/index.php?title=User:Xover/loupe.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Xover/loupe.js]]
// copySource
mw.loader.load("//en.wikisource.org/w/index.php?title=User:Xover/copySource.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Xover/copySource.js]]
// Straighten quotes
mw.loader.load("//en.wikisource.org/w/index.php?title=User:Xover/straighten.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Xover/copySource.js]]
// maintain script has no purpose in special
if (mw.config.get("wgCanonicalNamespace") !== "Special") {
mw.loader.using(['ext.gadget.utils-difference', 'mediawiki.util', 'mediawiki.api',
'oojs-ui-core', 'oojs-ui-windows', 'oojs-ui-widgets']).done(function() {
mw.loader.load("/w/index.php?title=User:Inductiveload/maintain.js&action=raw&ctype=text/javascript");
mw.loader.load("/w/index.php?title=User:Inductiveload/maintain-ws-tools.js&action=raw&ctype=text/javascript");
});
}
// Protect againt unintentionally enabled flood flags
mw.loader.load("//en.wikisource.org/w/index.php?title=User:Xover/seawall.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Xover/seawall.js]]
// OCR controls
mw.config.set('userjs-ocr', {
showInSidebar: true
});
// Automatically add smallrefs when needed
mw.loader.load('//en.wikisource.org/w/index.php?title=User:Xover/autorefs.js&action=raw&ctype=text/javascript');