User:Begoon/vector.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:Begoon/vector.css. |
//Wrapper for future deprecation of importScript
window.importScript = function (pageName) {
mw.loader.using('mediawiki.util').then(function () {
var conf = mw.config.get(['wgServer', 'wgScript']),
url = conf.wgServer + conf.wgScript + '?title=' + mw.util.wikiUrlencode(pageName) +
'&action=raw&ctype=text/javascript';
mw.loader.load(url); }); };
//Add some extra links to Vector interface
importScript('User:Begoon/addVectorLinks.js');
//Orange Bar
importScript('User:Writ Keeper/Scripts/orangeBar.js'); // Linkback: [[User:Writ Keeper/Scripts/orangeBar.js]]
//Delsort
importScript('User:Fox Wilson/delsort.js'); // Deletion sorting script [[WP:FWDS]] // Linkback: [[User:Fox Wilson/delsort.js]]
//Readable prose
importScript('User:Dr_pda/prosesize.js'); // adds a Page size link to the toolbox // Linkback: [[User:Dr_pda/prosesize.js]]
//Thanks button
//importScript('User:Writ Keeper/Scripts/oldSchoolThanks.js'); // Linkback: [[User:Writ Keeper/Scripts/oldSchoolThanks.js]]
// Add custom Character Inserter entries, to the end of the first 2 groupings
window.charinsertCustom = {
"Insert": ' Wl: [[+]] Strike: <s>+</s> Ping: {\{u|+}} Tq: {\{tq|1="+"}} Cd: <code>+</code> Wl(:): [[:+]] Ret: {\{retouched|+}} Gl: {\{GL_workshop}} Sh: \<syntaxhighlight.lang="javascript"\>+\</syntaxhighlight\> Us:',
"Wiki markup": ' Wl: [[+]] Strike: <s>+</s> Ping: {\{u|+}} Tq: {\{tq|1="+"}} Cd: <code>+</code> Wl(:): [[:+]] Ret: {\{retouched|+}} Gl: {\{GL_workshop}} Sh: \<syntaxhighlight.lang="javascript"\>+\</syntaxhighlight\> Us:'
};
//Signature reminder
//Author:[[User:Dispenser]]
//permalink: [https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)/Archive_136&oldid=695363568#Auto_sig_ability]
$(document).ready(function() {
$("#wpSave").one("click", function() { /* change to wpPreview for testing */
$("#editform").on("submit", function() {
return !(this.wpTextbox1.value.indexOf("~~"+"~~")===-1 && (
mw.config.get('wgNamespaceNumber')%2===1 ||
$.inArray("Non-talk pages that are automatically signed", mw.config.get('wgCategory'))!==-1)
&& !confirm("No signature, save anyway?")); }); }); });
//Thumbnail purge link
importScript('User:Begoon/purgeThumbnail.js'); // Linkback: [[User:Begoon/purgeThumbnail.js]]
//Archiver
importScript('User:Σ/Testing facility/Archiver.js'); // Linkback: [[User:Σ/Testing facility/Archiver.js]]
//Text diff
importScript('User:Evad37/TextDiff.js'); // Linkback: [[User:Evad37/TextDiff]]
//editProtectedHelper
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
//copyvio check
importScript('User:The Earwig/copyvios.js'); // Linkback: [[User:The Earwig/copyvios.js]]
//copyvio-revdel
importScript('User:Enterprisey/cv-revdel.js'); // Linkback: [[User:Enterprisey/cv-revdel.js]]
//EOF//