Open links in current tab

Open links in current tab regardless of _target or site's preferences. Ctrl-click: background tab, Ctrl-Shift-click: foreground tab, Shift-click: new window

Versión del día 4/9/2021. Echa un vistazo a la versión más reciente.

A continuación se muestran las versiones de este script en las que se actualizó el código. Ver todas las versiones.

  • v2.3.0 4/11/2023

    override

  • v2.2.9 30/8/2023

    improve reliability, retain noopener/noreferrer from window.open() params

  • v2.2.8 4/9/2021
  • v2.2.8 17/5/2018 fix pierceShadow
  • v2.2.7 31/3/2017 Skip links inside shadow DOM such as twitter video play button link
  • v2.2.6 24/11/2016 fixup js links; simplify the if's
  • v2.2.5 22/11/2016 fixup
  • v2.2.4 19/11/2016 Fix middle-click to always open a new background tab
  • v2.2.3 1/11/2016 Use "A" element instead of assigning location.href
  • v2.2.2 31/10/2016 Handle links in iframes
  • v2.2.1 25/10/2016 fixup
  • v2.2.0 22/10/2016 Pierce ShadowDOM
  • v2.1.3 24/9/2016 disregard target=_blank on samesite#differenthash links
  • v2.1.2 22/9/2016 mouseup element should match mousedown element
  • v2.1.1 22/9/2016 prevent dynamically added target=_blank
  • v2.1.0 21/9/2016
  • v2.0.9 21/9/2016
  • v2.0.8 21/9/2016
  • v2.0.7 21/9/2016
  • v2.0.6 20/9/2016 use mouseup event
  • v2.0.5 20/9/2016
  • v2.0.4 20/9/2016
  • v2.0.3 20/9/2016
  • v2.0.2 20/9/2016
  • v2.0.1 20/9/2016
  • v2.0 20/9/2016
  • v1.0 22/8/2014