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

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


js</s><i> </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>

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

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