Jump to content

User:Naraht/common.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.
//if (mw.config.get('wgCanonicalSpecialPageName') == 'Watchlist') importScript('user:js/watchlist.js');
//importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
//importScript('User:Frietjes/findargdups.js'); // [[User:Frietjes/findargdups]]
//importScript('User:Splarka/ajaxfilemove.js');
importScript('User:Cobaltcigs/NavboxStuff.js');
importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]]
importScript('User:PrimeHunter/Sortkeys.js'); // Linkback: [[User:PrimeHunter/Sortkeys.js]]
importScript( 'User:DannyS712/Draft no cat.js' );// [[User:DannyS712/Draft no cat.js]]
importScript( 'User:Qwertyytrewqqwerty/DisamAssist.js' ); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript( 'User:Elli/OneClickArchiver.js' ); // Backlink: [[User:Elli/OneClickArchiver.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ACobaltcigs%2FIllWill.js&action=raw&ctype=text/javascript'); // User:Cobaltcigs/IllWill.js
window.hotcat_use_category_links = true;
$('#mw-content-text a.mw-redirect').each(function(){
    var oldhref = $(this).attr('href');
    var newhref = ( /\?/.test(oldhref) ) ? oldhref + '&redirect=no' : oldhref + '?redirect=no';
    $(this).attr('href', newhref);
});