No new tabs/windows
Removes target from <a> tag.
Please read this comment before deciding whether to download. (Zotlan)
This just checks all a elements (links) and removes target attribute, so they will not open in new tab. target=_blank is extensively used on the Web, but it is very annoying. If user (especially advanced one) want to open something in new tab he/she will do so manually (i.e. using middle click of moue), so this script make life easier and removes all automatic opening in new tabs.
This is especially important because some webdevelopers and marketing guys thinks this helps in making more advertisements or help user keep on current page. Most people doesn't think so and this script removes this unwanted and very irritating behavior.
Tested with Opera version(s):
10.50



Comments
Review
Dear users, please do not download this because it'll break frames and navigation in general, while slowing down page loading.
Dear author: only remove target with a value of _blank and do it only during mousedown if a link (a, area) is beneath the mouse
http://my.opera.com/xErath/blog
yes.
Now it only remove target=_blank. More advanced behaviour will be done later. I wanted script to be simple. But yes, original one breaks frames, and discovered it already :)
I uploaded new version (no-new-tab.user.js) but extedopera.org system of uploading files is very unintuitive, and i don't see the file yet.
You could not see it yet
You could not see it yet because it had not yet been approved by a moderator.
Suggestion
@author
You should do as João told you, or at least wait for DOM to be created.
@users
Opera already have option that does this (opera:config#Ignore Target).
thanks!
opera:config#Ignore Target
That was just very helpful. thanks.
Post new comment