User:Jonesey95/vector-2022.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:Jonesey95/vector-2022.css. |
//Migration instructions are here:
// https://www.mediawiki.org/wiki/ResourceLoader/Legacy_JavaScript
// Page Size tool for Toolbox
importScript('User:Dr pda/prosesize.js'); //[[User:Dr pda/prosesize.js]]
// End Page Size tool
// Add [[WP:Reflinks]] launcher in the toolbox on left
/* User:Zhaofeng Li/Reflinks.js */
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
// End Reflinks code
//Comment Highlighter - highlights my own comments on talk pages
importScript('User:PleaseStand/highlight-comments.js'); //Linkback: [[User:PleaseStand/highlight-comments.js]] Added by Script installer
//Edit Refs in a dedicated box
//importScript('User:Dr pda/editrefs.js'); //Linkback: [[User:Dr pda/editrefs.js]] Added by Script installer
// Add [[Wikipedia:AutoEd]] custom scripts to Move menu
importScript('User:Jonesey95/AutoEd/twoisbnparams.js'); //core.js (ISBN errors)
importScript('User:Jonesey95/AutoEd/month.js'); //core1.js (self-closed tags)
importScript('User:Jonesey95/AutoEd/coauthors.js'); //core2.js (Linter center tags)
importScript('User:Jonesey95/AutoEd/pmc.js'); //core3.js, use for one-offs
importScript('User:Jonesey95/AutoEd/unnamed.js'); //core4.js (CS1 errors of various kinds)
//importScript('User:Jonesey95/AutoEd/issn.js'); //core5.js, ISSN fixes incorporated into unnamed.js
importScript('User:Jonesey95/AutoEd/pages.js'); //core6.js, one-off, currently short description fixes
//importScript('User:Jonesey95/AutoEd/authorlink.js'); //core7.js (param-link)
importScript('User:Jonesey95/AutoEd/doi.js'); //core8.js (Linter fixes)
//importScript('Wikipedia:AutoEd/complete.js');
//importScript('Wikipedia:AutoEd/basic.js');
// Show sfn and harv reference errors
importScript('User:Ucucha/HarvErrors.js');
//Find duplicate template parameters
importScript('User:Frietjes/findargdups.js'); // [[User:Frietjes/findargdups.js]]
//Do mass purge of pages transcluding a template
importScript('User:Frietjes/masspurge.js');
//Add edit links to search results
$( function() {
'use strict';
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ) {
$( '.mw-search-result-heading a' ).each( function() {
$( this ).after( '<span class="searchedit"> [<a href="' + $( this ).attr( 'href' ) + '?action=edit">edit</a>]</span>' );
} );
}
} );
//Citoid in edit source mode
//importScript('User:Salix alba/Citoid.js'); // Linkback: [[User:Salix alba/Citoid.js]]
//Add unknown parameter check to infobox or other template
importScript('User:Frietjes/addcheckforunknownparameters.js'); // [[User:Frietjes/addcheckforunknownparameters.js]]
//Comment to check to see if transclusion is listed
//<pre>{{accessdate}}</pre>
//Live linting:
// create a user defined object
var myLintHints = { };
// specify some object component
myLintHints.launch = "true";
myLintHints.rooms = "*";
myLintHints.oldid = true;
// communicate user defined object
mw.hook( "lintHint.config" ).fire( myLintHints );
mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/d.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript" );
// Wait for the DOM/page to finish loading
$( function() {
// Add links at top for Tools page (second one is for the Vector 2022 pinned header)
mw.loader.using( ['mediawiki.util'] ).done( function() {
mw.util.addPortletLink('p-personal', mw.util.getUrl('User:Jonesey95/Tools'), 'Tools', 'pt-mytools', 'Go to User:Jonesey95/Tools', null, '#pt-preferences');
mw.util.addPortletLink('p-personal-sticky-header', mw.util.getUrl('User:Jonesey95/Tools'), 'Tools', 'pt-mytools', 'Go to User:Jonesey95/Tools', null, '#pt-preferences');
});
/* Override annoying purge dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
$('form.mw-htmlform').submit();
}
} );
//Script for processing edit-protected requests:
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
// Sort search results. Linkback: [[User:PrimeHunter/Search sort.js]]
importScript('User:PrimeHunter/Search_sort.js');
//Show links that are in the source (a better version of What links here)
importScript('User:PrimeHunter/Source links.js'); // Linkback: [[User:PrimeHunter/Source links.js]]
//Button to show short descriptions for all articles in a category
importScript('User:SD0001/cat-all-shortdescs.js');
//Detect errors in Module:Political party
importScript('User:Frietjes/politicalparty.js');
//Add "purge all" and "null edit all" options on category pages, template pages, and on Special:WhatLinksHere.
//Linkback: [[User:Ahecht/Scripts/refresh.js]]
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/refresh.js&action=raw&ctype=text/javascript' );
//importScript('User:Jonesey95/AQFetcher.js'); // Linkback: [[User:N8wilson/AQFetcher.js]]
//importStylesheet('User:N8wilson/AQFetcher.css'); // Linkback: [[User:N8wilson/AQFetcher.css]]
//Tell the Remember the dot syntax highlighter gadget to ignore unclosed br and hr tags
//increase syntax highlighter timeout tolerance
syntaxHighlighterConfig = {
voidTags: ["br", "hr", "BR", "HR", "Br", "wbr", "WBR"],
timeout: 40,
}
//Show more information in "Templates used in this page", including sorting by last modification (commented; too hard to find what I am looking for)
//importScript('User:Anomie/previewtemplatelastmod.js'); // Linkback: [[User:Anomie/previewtemplatelastmod.js]]
//temp below here