extension ExtPose

Death To _blank

CRX id

gneobebnilffgkejpfhlgkmpkipgbcno-

Description from extension meta

Keeps links from opening new tabs by removing the _blank attribute

Image from store Death To _blank
Description from store 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 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 faster (only monitors updated/added elements on page, rather than rescanning the whole page on modification). - Added ability to enable/disable by clicking on extension button (also added a toggle in the options page). - Added the __blank (two underscores) target. - Requires fewer permissions, should be fewer corner cases that it misses. Version 1.7 (2015/11/25) - Allows the user to specify what the "_blank" target should be rewritten to (don't do this if you don't know what it means!). Version 1.6 (2015/10/25) - Now disables _blank (etc.) on the <base> tag as well. Version 1.5 (2014/03/07) - Now works on HTML forms as well. Can be disabled in the options menu if you prefer (although please tell me why, if you do!) Version 1.4.3 (2013/11/8) - Fixed one more migration bug. Sorry 'bout that. Versions 1.4.1, 1.4.2 (2013/11/6) - Fix bugs that wouldn't allow upgraders to use this script (sorry!) Version 1.4 (2013/11/6) - Exceptions can now be specified as a blacklist instead of the default whitelist Version 1.3 (2013/9/15) - Fixes a javascript development error (probably invisible to most people) - Upgrades to jQuery 2.0 internally, which may make things a bit faster (but is actually probably completely unnoticeable) Version 1.2 (2013/7/7) - Now works with pre-rendered pages (frequently generated from Google searches). As a side-effect, now requires the webNavigation permission to know when new pages are loaded or swapped in. Version 1.1 (2013/6/1) - Added _hplink to bad targets, which is used by Huffington Post (don't judge me). Version 1.0.1 (2013/3/10) - No changes; reuploading due to bug in Webstore. Version 1.0 (2013/3/9): - Now works on dynamically-loaded AJAX content. Useful for sites like Twitter and Facebook. - Added a whitelist option. - Now requires permission to view your tabs, so that I can know which page you're browsing (needed for the whitelist). Version 0.9 (2013/3/3): - Now catch rel=ext and rel=e, which are sometimes used to open new windows in javascript-based techniques. Version 0.8 (2012/7/3): - A change in the previous version meant that my script didn't operate while the page was still loading. Fixed now. Version 0.7 (2012/7/3): - Various changes due to Chrome updates. No user-visible changes. Version 0.6 (2011/6/24): - Added the _newtab target Version 0.5 (2011/04/29): - Now works for file:// URLs as well. Version 0.4 (2010/10/28): - No longer needs permission to view your tabs or history (mind you, it wasn't making use of this permission before). It still needs permission to access "Your data on all websites", but there's no getting around that -- it rewrites the links on every page you browse! Version 0.3 (2010/10/28): - Removes rel=external (which doesn't necessarily open a new window, but some pages use javascript to open such links in new windows). Version 0.2 (2010/07/21): - Now blocks the _new target as well.

Latest reviews

  • (2023-11-18) Timur Bk: РАБОТАЕТ! наконец-то ссылки в яндекс поиске, яндекс картинках не открываются в новой вкладке!
  • (2023-07-15) Yazan Zaid: 2023 july, and the extension still working correctly. Thanks.
  • (2023-06-13) Mehabr de Gulart: То о чем я так долго мечтал! Спасибо!
  • (2022-08-15) DeN [ OXIGEN]: на конец то)
  • (2022-07-30) シュウヘイ: Amazonで商品詳細が新規タブで開いてしまうのを防ぐために導入しました。大変便利です。
  • (2022-07-13) Данил Цветков: Круть, все везде работает. Было бы еще лучше иметь отделанный черный список для конкретных Div по классам. Если у кого есть такое расширение на примете киньте мне.
  • (2022-02-20) Hsin-tien Wu (Stan Wu): Thanks for your great help let me more comfortable to surffing China's website.. XD
  • (2021-11-16) Paul Nesmiyanov: В яндексе не работает.
  • (2021-01-31) Okeey Cai: Nice job! Fxxk those sites abusing _blank attribute in `a` tag like ithome, those are piles of TIHS. Another Must-Install extension, thank you!
  • (2020-11-25) world hello: good job! But I need a opposite function.I can only find this exension.
  • (2020-01-15) А. М.: Спасибо! Работает! Избавили от открывающейся кучи вкладок
  • (2019-12-03) Hagen Fritsch: Doesn’t work for me. Links still open in new tabs.
  • (2019-09-26) 遠藤薫: コレ、やっと見つけました。
  • (2019-06-18) Sean Lang: Can't live without this extension. It works for about 95% of sites and only fails when there's complex JS-based link handlers, like on Quora.
  • (2019-04-01) Станислав Садыков: Спасибо пока всё отлично
  • (2019-03-22) kitho ling: It's does work and convenient to use! Perfect solution to void open page in new tab.
  • (2019-03-18) Jonathan Morley: Didn't do what I was hoping. There's a website I frequent that has hidden links in places users would click which cause an unintended occurrence of a new tab opening with a different website. Upon using Death to _blank on that site all it does is prevent the new website from being open in a new tab. It does not however prevent that other website from being loaded. Instead, now that website loads in the same tab as the original site. So, essentially this just makes the problem worse.
  • (2018-12-13) Dion DiFelice: Thank you ... works perfectly as stated. Kills all links with "_blank" target (which creates new tabs) from appearing, unless they're javascript powered (in gmail and some other sites), which is fine. Keeps it much cleaner for me!! Thank you!
  • (2018-04-20) Joo Foxx: As of 04-20-2018 I've been using "Death To _blank" now about 30 days GREAT EXTENSION!! You saved me from writing my own script, THANK YOU. I'd highly recommend this to anyone that goes to sites that open additional pages that start out as; "about:blank" in a new tab & then goes to a new website you don't want! Works we'll with Ad Blocker Plus and VPN service, even using on old Chrome Version 49.0.2623.112m running under Win XP SP3.. One other thing I've noticed if anyone is having it not working on a site try unchecking the "Allow access to file URLs" setting under the; "Manage extensions" area. I think some people have just not figured out how to set it up to use it before they give up on it, even though it is SO VERY EASY TO USE.. THANK YOU AGAIN FOR MAKING THIS AVAILABLE!
  • (2017-12-02) Xavier: Pas de possibilité de mettre à la fois des sites bloqués et des sites autorisés. C'est soit l'un soit l'autre.
  • (2017-09-27) tooru: Doesn't work on chan.sankakucomplex.com Great extension though.
  • (2017-08-23) Eirik Corneliussen: That was simple! It really fixed my issue I had with a website opening new tabs all over the place. I used the blacklist so no other websites are affected.
  • (2017-01-20) Jon Moi: Awesome! This app is a must-have on Chinese websites (they seem to love opening new tabs)
  • (2016-09-07) Great app!
  • (2016-08-25) Steve Rand: Works on google images.
  • (2016-08-17) leo cohen: doesnt work on eztv.ag
  • (2015-11-15) Ksendz: Отлично работает!
  • (2012-06-19) Works.
  • (2012-04-13) Алексей Пастухов: Строго говоря, работает не везде. Gmail как открывался в новой вкладке, так и открывается.

Latest issues

  • (2024-03-01, v:1.9.0) Aleksandar Milanovic: Works partially on bilibili homepage
    For some strange reason extension does not replace targets on all links at https://www.bilibili.com/ homepage. Affected video links are next to main slider and all of videos at the first line of videos below the slider. Slider and all videos below the first line has properly replaced target. I am not sure if there is any depth limit set, but that might be a problem if exists, since those problematic elements has one div more than the other elements on page.
  • (2022-04-24, v:1.9.0) blue sky: Problem on weibo.com
    Many pages can't be opened, like hot list.
  • (2020-05-12, v:1.8.0) Robidos Netherlands: podbean
    seems its not working my chrome 81, on podbean the episodes still open in new tabs, driving me crazy https://www.podbean.com/media/share/dir-ej2gb-83faac9
  • (2020-04-16, v:1.8.0) Parintele “-” Damaskin: Target:blank
    New trick to open new tab... i hate advertising "_","__", and now ":"...
  • (2018-12-28, v:1.8.0) Anthony Joh: Doesn't seem to be working on Trip Advisor
    Check out this link and click on any of the tours. They all open in a new tab for me. https://www.tripadvisor.ca/Attractions-g154945-Activities-Victoria_Victoria_Capital_Regional_District_Vancouver_Island_British_Columbia.html
  • (2018-03-22, v:1.8.0) Big Kahuna: Stopped Working
    All of a sudden stopped working, any ideas, is this still being maintained?
  • (2017-10-28, v:1.7.0) Maciej Parol: Blacklist for evernote:///view...
    Would be useful to have a way of configuring it to process only links with specific protocol eg. evernote:// (new tab doesn't make sense in such cases, but apps do that and it's annoying)
  • (2016-12-12, v:1.7.0) Benjamin Barenblat: Open-source release
    How would you feel about making this open-source?
  • (2016-12-10, v:1.7.0) blue sky: Doesn't work on some site
    Like this: http://tieba.baidu.com/f?kw=%C5%B7%BF%A82
  • (2015-10-21, v:1.5.0) Jarod Sholtz: New target options
    I know that this is a bit of an edge case, but I am creating a kiosk display and would love to be able to specify that new tabs open in the iframe instead of taking over the window. Custom targets would be great, but a toggle between _top and _self would be just as useful.
  • (2015-10-02, v:1.5.0) iamhell21: Found a tag that can bypass Death to _blank
    Its a html tag i haven't seen before today. <base target="_blank" /> Its located within the <head></head> tags. Basically it makes all the links on the site have that attribute. On the same page the author has links that have the target="top" specified within the <a> tag. It over-rides the base tag. So Some links can stay within the same tab while others are new tabs. It would be nice to find a way to break this functionality.
  • (2015-04-16, v:1.5.0) Shunichi Arai: blacklist instead of whitelist
    Hi, I've tried it yesterday, but I've found out that I don't turn off opening new tabs for the most of sites I visit. I just want to turn off opening new tabs at naugthy web sites, such as amazon.co.jp. So, it's very useful if you can add an option to make a "blacklist" instead of whitelist. Thanks for a great software! Shun
  • (2014-07-31, v:1.5.0) 阿光: 在這網域內無效
    http://www.7headlines.com/article/show/452187413 這網頁下方有些連結點擊之後是無法在同頁面開啟的,也就是說擴展在此網址內是無效的。
  • (2014-06-30, v:1.5.0) Zak Wilson: Target of _top still opens in new tab
    I noticed some links were opening new tabs despite Death To _blank. Upon inspection, I found they had target="_top".

Statistics

Installs
13,934 history
Category
Rating
4.5634 (71 votes)
Last update / version
2020-10-16 / 1.9.0
Listing languages
en

Links