你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/464674-reddit-links-open-in-same-tab,源站連結 點此以跳轉

Reddit Links Open in Same Tab

Enforce `target="_self"` on links within Reddit posts and messages on desktop, delevoped for next chapter links on r/HFY.

当前为 2024-02-01 提交的版本,查看 最新版本



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/464674/1321208/Reddit%20Links%20Open%20in%20Same%20Tab.user.js

安装此脚本?
作者
Ultrabenosaurus
评分
0 0 0
版本
1.7
创建于
2023-04-23
更新于
2024-02-01
大小
3.1 KB
许可证
GNU AGPLv3
适用于

Enforce target="_self" on links within Reddit posts and messages so they open in the current tab, developed for next chapter links on r/HFY but generic enough that it should work on pretty much any Reddit text post.

Note: now redirects to old.reddit.com if on www.reddit.com from a /s/ share link redirect as the redirect to the real page only works on www.reddit.com due to soulless corpo nonsense, and AJAX / XHR won't let me preempt the redirect from old.reddit.com due to CORS. I prefer old.reddit.com so this script now assumes that's where you want to be if you land on a /s/ redirected URL.

Developed in Tampermonkey v5.0.1 using Firefox 122.0 (64-bit) on Manjaro Linux.

I sometimes make dark CSS themes and JS userscripts. Some of them aren't terrible.