- 在 GitHub 上浏览时,所有链接默认在新标签页中打开
- 在页面右上角提供一个现代化的下拉菜单,可随时切换链接打开方式
- 美观的 UI,完美融入 GitHub 原生界面
- 设置自动保存,浏览器重启后仍然保持
- 首先安装浏览器扩展 Tampermonkey
- 点击下面的安装链接:
安装后无需配置,脚本将自动在 GitHub 页面上生效。通过页面右上角的下拉菜单可以随时切换链接的打开方式:
- 🌐 新页面打开:所有链接将在新标签页中打开
- 📌 当前页打开:恢复默认行为,在当前页面打开链接
- 使用 Tampermonkey API 存储用户设置
- 针对 GitHub 深色/浅色主题自适应
- 使用 MutationObserver 处理动态加载的内容
欢迎提交 Issue 或 Pull Request 来改进这个脚本!
MIT License © Buggo404
An elegant browser script that makes GitHub links open in new tabs by default, enhancing your browsing experience.
- All links on GitHub open in a new tab by default
- Modern dropdown menu at the top right for switching link opening behavior anytime
- Beautiful UI, seamlessly integrated with GitHub's native interface
- Settings are auto-saved and persist after browser restart
- First, install the Tampermonkey browser extension
- Click the link below to install the script:
No configuration needed after installation. The script will automatically take effect on GitHub pages. You can switch the link opening mode anytime via the dropdown menu at the top right:
- 🌐 Open in New Tab: All links will open in a new tab
- 📌 Open in Current Tab: Restore default behavior, open links in the current page
- Uses Tampermonkey API to store user settings
- Adapts to GitHub's dark/light themes
- Handles dynamically loaded content with MutationObserver
Feel free to submit Issues or Pull Requests to improve this script!
MIT License © Buggo404
