Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

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