The README of this project has documentation in both English and Chinese.
中文说明可点击下方:
🎯 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!
- 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
-
Install a script manager 🔧
- Tampermonkey (Recommended for Chrome/Edge/Safari)
- Greasemonkey (Recommended for Firefox)
-
Visit any Bilibili, Weibo, or Zhihu page to test the effect ✅
Examples: Bilibili Main Site | Bilibili Live | Zhihu
- 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
- Added support for RedNote
- Added support for Zhihu and Weibo web versions
- Fixed issues on certain pages
- Completely rewrote the event interception logic
- Fixed the new tab issue with the home button on Bilibili's match pages
- Enhanced SPA routing whitelist
- Partially rewritten to optimize behavior on certain pages
- Added support for non-Safari browsers
- Initial release: Basic link interception, Safari-only support
Welcome to contribute in the following ways:
- Submit bug reports: Issue Tracker
- Request new features: Feature Suggestions
- Contribute code directly: 🚀 Fork Repository
MIT License © 2025 ChingyuanCheng