Open in Current

Always open pages in the current window, instead of creating a popup.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
PRO-2684
Denně instalací
0
Celkem instalací
2
Hodnocení
0 0 0
Verze
0.1.0
Vytvořeno
16. 10. 2025
Aktualizováno
16. 10. 2025
Size
1,7 KB
Licence
GPL-3.0
Spustit na

Open in Current

🪄 Function

Always open pages in the current window, instead of creating a popup.

📖 Usage

By default, it doesn't apply to any websites. In order for this script to take effect on a site, you need to add the website to this script's User matches list. (You can find it at Dashboard - Installed Userscripts - CORS Helper - Settings - Includes/Excludes - User matches - Add...)

🤔 How it works

Intercept window.open, and only keep noopener, noreferrer, and attributionsrc in the windowFeatures argument.

🔗 Comparison

Open links in current tab allows you to open links in the current tab, instead of a new tab. It might seem similar to this script, but is fundamentally different.

Open in Current Open links in current tab
Focus Disable popups Disable new tabs
Method Intercept window.open Intercept clicks and window.open
Default scope No website All websites