应用截图

Death To _blank截图1
Death To _blank截图2

详细介绍

Keeps links from opening new tabs by removing the _blank attribute

Many web page links use the "_blank" target to open in a new tab. This is usually annoying (if I wanted to open a new tab, I would have done so myself!).

Death To _blank removes the "_blank" target from links, causing them to open in the current tab. This script also catches a few other targets (such as "blank" and "_new") that developers use. If you find any targets I've missed, let me know and I'll add them to the list!

You can add pages to a whitelist in the options page, which causes Death To _blank to ignore those pages. I find this useful for sites like GMail that I would rather keep open all the time. You can also specify this as a blacklist, if that suits your fancy.

This script now works on pages that dynamically load additional content using AJAX, such as Facebook and Twitter.

NOTE! This extension does not stop javascript popups (or flash popups, or anything of the like). If you still find links that open up new pages after installing this plugin, they're probably either javascript popups (which I can't do anything about), or other, invalid _blank-like targets (in which case forward me the link and I'll update the extension).

If you have comments/suggestions, please use the Feedback link (or better yet, email me!). Don't post a complaint in your review! I don't get notifications about those. :-(

CHANGELOG

Version 2.0.1 (2024/10/18)
- Fixed a bug where some features are disabled after updating (sorry!).

Version 2.0 (2024/10/15)
- Updates to manifest V3
- Big rewrite under the hood. Settings are not persisted from previous version, sorry. I do this in my spare time and I didn't have the gumption to spend more time on this than it already took to just get the basic functionality working again...

Version 1.9 (2020/10/15)
- Bugfix: previous version of the script did not work when the "Filter HTML forms" option was deselected.

Version 1.8 (2017/12/16)
Big change
- Should be noticeably