🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

No New Tab for Chinese Top Websites

Force all Bilibili, Weibo, Zhihu, and RedNote links to open in the current tab

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Author
Jingyuan-Zheng
Daily installs
1
Total installs
84
Ratings
1 0 0
Version
5.0
Created
2025-02-15
Updated
2025-12-05
Size
17.1 KB
License
MIT
Applies to

No New Tab for Chinese Top Websites

🎯 Completely disable all new tab opening behavior on Bilibili, Weibo,Zhihu and RedNote! Say no to redirects and enjoy a seamless browsing experience like a native app!

🚀 Core Features

  • Prevents new tab opening on Bilibili, Weibo, Zhihu, and RedNote (Xiaohongshu)
  • Covers special links in comment sections, such as:
    • User avatars
    • Usernames / IDs
    • Product cards
    • Hashtags
    • Search links
  • Even if the website tries to force a new tab, the script will intercept it and open the page in the same tab
  • Keeps your browser clean and organized by minimizing unnecessary tabs
  • Specially optimized for Bilibili search — pressing Enter or clicking the search button will stay in the current tab

📌 Installation

  1. Install a script manager 🔧

  2. Install the script with one click 📦
    Install Link

  3. Visit any Bilibili, Weibo, or Zhihu page to test the effect ✅
    Examples: Bilibili Main Site | Bilibili Live | Zhihu

📖 Changelog

v5.0 (2025-12-05)

  • Enhanced compatibility with complex page structures and dynamically injected content
  • Completely fixed the issue of links in Bilibili comment sections being forced to open in new tabs
  • Improved monitoring and handling of asynchronously loaded elements to ensure long-term stability

Previously Known Issue:

  • Links in Bilibili comment sections do not work properly ✅ Fixed

v.4.1 (2025-04-28)

  • Added support for RedNote

v4.0 (2025-02-16)

  • Added support for Zhihu and Weibo web versions
  • Fixed issues on certain pages

v3.0 (2025-02-16)

  • Completely rewrote the event interception logic
  • Fixed the new tab issue with the home button on Bilibili's match pages
  • Enhanced SPA routing whitelist

v2.0 (2025-02-16)

  • Partially rewritten to optimize behavior on certain pages
  • Added support for non-Safari browsers

v1.0 (2025-02-15)

  • Initial release: Basic link interception, Safari-only support

🤝 Contributing

Welcome to contribute in the following ways:

  1. Submit bug reports: Issue Tracker
  2. Request new features: Feature Suggestions
  3. Contribute code directly: 🚀 Fork Repository

📜 License

MIT License © 2025 ChingyuanCheng