New Greasemonkey script: Disable Targets for Downloads. “But wait,” you say, “isn’t there already a firefox extension to do that?” Well, yes there is, but why use an extension to do what a user script can do? Plus, my script also disables onClick for download links. Enjoy!

what does this do exactly
Look at the script. It sets the target and onclick attributes to null for any link which contains .exe, .pdf, .zip, &c.