您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Prevents reddit from modifying outbound links when you click them.
当前为
// ==UserScript== // @name Reddit redirect link fix // @namespace https://reddit.com/ // @version 1 // @description Prevents reddit from modifying outbound links when you click them. // @match *://*.reddit.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var el = function(html) { var e = document.createElement('div'); e.innerHTML = html; return e.removeChild(e.firstChild); }; function main() { for(var a of document.getElementsByTagName('a')) { if (a.hasAttribute('data-href-url')) { var b = el('<a />'); b.href = a.getAttribute('data-href-url'); b.classList = a.classList; b.setAttribute('title', a.getAttribute('title')); b.setAttribute('tabindex', a.getAttribute('tabindex')); b.innerHTML = a.innerHTML; b.setAttribute('rel', 'noreferrer'); a.parentNode.insertBefore(b, a); a.remove(); } } } main(); window.addEventListener('neverEndingLoad', main); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址