axetroy / Anti Redirect
Licence: other
🚀去除各搜索引擎/常用网站的重定向
Stars: ✭ 198
Programming Languages
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
script
160 projects
GM 脚本,反重定向
去除各搜索引擎/常用网站的重定向
注意事项:
重定向一般有两种目的
- 追踪用户打开了哪些 URL
- 在用户跳转到站外之前进行确认地址,防止打开不明的页面
反馈地址
反馈最好能带上出问题的网页地址
- https://github.com/axetroy/anti-redirect/issues/new/choose
- https://github.com/axetroy/anti-redirect/issues/new/choose
- https://github.com/axetroy/anti-redirect/issues/new/choose
如果这能够帮助到你, 不妨点个 star, 你的支持就是我更新的动力
工作原理
- 根据 URL 上暴露出来的跳转链接,正则匹配提取真实的地址,例如知乎,Google
- 如果 A 标签的内容为真实的地址,则替换,例如百度贴吧
- 逐一发送请求,获取真实的地址,例如百度搜索
- 根据请求特殊页面,这个特殊页面没有重定向地址,然后覆盖当前页,例如百度搜索,搜狗搜索
- 覆盖原本的链接点击事件,比如 qq 邮箱
更新日志
https://github.com/axetroy/anti-redirect/blob/master/CHANGELOG.md
支持的站点
- [x] 知乎
- [x] 知乎专栏
- [x] 知乎日报
- [x] Google 搜索
- [x] Google 文档
- [x] Google Play
- [x] Google Gmail
- [x] Google Youtube
- [x] Steam
- [x] 360 搜索
- [x] 新浪微博
- [x] Twitter
- [x] 搜狗搜索
- [x] 百度搜索
- [x] 百度视频
- [x] 百度学术
- [x] 百度贴吧
- [x] 掘金
- [x] QQ 邮箱
- [x] Mozilla
- [x] 简书
- [x] 豆瓣
- [x] Pocket
- [x] DogeDoge
- [x] 秘迹
- [x] CSDN
- [x] 印象笔记
更多
- [x] 51.ruyo.net
我想支持更多的站点
点击这个链接,提交 issues,说出你想要支持的站点
贡献代码
需要通过 NodeJs 把 TypeScript 编译成 javascript
git clone https://github.com/axetroy/anti-redirect.git
cd ./anti-redirect
npm install
npm run watch
开源许可
The Anti 996 License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].