Open in Current

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

ผู้เขียน
PRO-2684
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
2
คะแนน
0 0 0
เวอร์ชัน
0.1.0
สร้างเมื่อ
16-10-2025
อัปเดตเมื่อ
16-10-2025
Size
1.68 กิโลไบต์
สัญญาอนุญาต
GPL-3.0
ปรับใช้กับ

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