Jump to content

User:Elvey/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Elvey (talk | contribs) at 02:56, 7 May 2014 (Undid revision 598760095 by Elvey (talk)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
//Prev. code was works; I just needed to know to use/find/see the button.

userHideAllSubsequent=true;

importScript('User:Markhurd/hidetopcontrib.js');

$( 'a[href*="File_Upload_Wizard?wpDestFile="]' ).each(function(){

$( this ).attr( 'href', '/w/index.php?title=' + $( this ).html() + "&action=edit&redlink=1" )
});