Last active
April 29, 2018 14:59
-
-
Save Anan5a/0c0a718beef832f028f90619c6d83bb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Make sure to put this after jquery.js | |
$(document).ready(function(){ | |
$('a').click(function(e){ | |
var regex = /(suprafiles|indishare|bdupload|clicknupload|9xupload)/i; | |
var s= $(this).attr('href'); | |
if(regex.test(s)) | |
{ | |
e.preventDefault(); | |
$('#dl_link').val(s); | |
$('#dl_form').submit(); | |
} | |
}); | |
}); | |
//end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment