importScript('User:Tim Song/afchelper4.js');
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
importScript('User:Gary King/script installer.js'); // ]
importScript('User:Pufferfish101/vector.js'); // ]
importScript('Wikipedia:AutoEd/complete.js');
importScript('User:Lupin/recent2.js');
importScript('User:AndyZ/peerreviewer.js'); //]
importScript('User:Sross_(Public_Policy)/ambassadorwikilove.js');
importScript('User:Jorgenev/scripts/EnhancedUserContribs.js');
importScript('MediaWiki:Common.js'); // ]
importStylesheet('MediaWiki:Gadget-textareasansserif.css'); // ]
importScript('User:John Cline/twinkleoptions.js'); // ] 
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool
importScript('User:Dr_pda/prosesize.js'); //]
importScript("User:PleaseStand/segregate-refs.js");
importStylesheet('User:John Cline/huggle.css'); // ]

function AppendCategoryTreeToSidebar() {
    try {
        var node = document.getElementById( "p-tb" )
                           .getElementsByTagName('div')
                           .getElementsByTagName('ul');
 
        var aNode = document.createElement( 'a' );
        var liNode = document.createElement( 'li' );
 
        aNode.appendChild( document.createTextNode( 'CategoryTree' ) );
        aNode.setAttribute( 'href' , ']' );
        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 ]
// By ]

$(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>';
	});
});