User:John Cline/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:John Cline/vector.css. |
importScript('User:Tim Song/afchelper4.js');
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
importScript('User:Gary King/script installer.js'); // [[User:Gary King/script installer.js]]
importScript('User:Pufferfish101/vector.js'); // [[User:Pufferfish101/vector.js]]
importScript('Wikipedia:AutoEd/complete.js');
importScript('User:Lupin/recent2.js');
importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]
importScript('User:Sross_(Public_Policy)/ambassadorwikilove.js');
importScript('User:Jorgenev/scripts/EnhancedUserContribs.js');
importScript('MediaWiki:Common.js'); // [[MediaWiki:Common.js]]
importStylesheet('MediaWiki:Gadget-textareasansserif.css'); // [[MediaWiki:Gadget-textareasansserif.css]]
importScript('User:John Cline/twinkleoptions.js'); // [[User:John Cline/twinkleoptions.js]]
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
importScript("User:PleaseStand/segregate-refs.js");
importStylesheet('User:John Cline/huggle.css'); // [[User:John Cline/huggle.css]]
function AppendCategoryTreeToSidebar() {
try {
var node = document.getElementById( "p-tb" )
.getElementsByTagName('div')[0]
.getElementsByTagName('ul')[0];
var aNode = document.createElement( 'a' );
var liNode = document.createElement( 'li' );
aNode.appendChild( document.createTextNode( 'CategoryTree' ) );
aNode.setAttribute( 'href' , '[[w:en:Special:CategoryTree]]' );
liNode.appendChild( aNode );
liNode.className = 'plainlinks';
node.appendChild( liNode );
} catch(e) {
// lets just ignore what's happened
return;
}
}
$( AppendCategoryTreeToSidebar );
/*** No Redirect Link ***/
// Adds a link beside links to redirects that doesn't get redirected
// Documentation at [[User:BrandonXLF/NoRedirect]]
// By [[User:BrandonXLF]]
$(function() {
$('#mw-content-text .mw-redirect').after(function() {
return this.href.indexOf('redirect=no') !== -1 || this.href.indexOf('action=') !== -1 || this.href.indexOf('diff=') !== -1 ? ''
: '<a href="' +
this.href +
(this.href.includes('?') ? '&' : '?') +
'redirect=no" title="' +
(this.title || this.href) +
' (no redirect)"><sup>(⇨)</sup></a>';
});
});