Jump to content

User:Begoon/vector.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.
//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//