注册 登录
n/program · 2025-02-07 · 438 次浏览
u/chendaye白银
n/programu/chendaye · 2025-02-07

【油猴脚本】移除NL论坛的跳转链接

移除超链接的重定向,直接访问原始地址

</i>(function () {
document.querySelectorAll('a[href]').forEach(link =&gt; {
let href = link.getAttribute('href');
if (href &amp;&amp; href.includes('/goto/')) {
href = href.replace('/goto/', '').replace("%3A%2F%2F","://").replace("%2F","/")
link.setAttribute('href', href);
}
});
})();<i>
</i><e>```</e></r>
0
2
登录后参与讨论。
海外原生IP VPS,稳定访问全球网络

还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。

lisahost.com 了解更多

2 条回复

排序
  1. alay 铂金 3 YEARS 2025-02-07

    这个不错。不是很早就有油猴脚本了吗?我用的是有这个功能啊!

    0
  2. chendaye 白银 楼主 2025-02-07

    @"alay"#p232163 没注意,很久没逛论坛了,很多帖子都还没刷到

    0