您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove viglink redirects from reddit
当前为
// ==UserScript== // @name reddit viglink redirect remover // @author jmesmon // @description Remove viglink redirects from reddit // @include http://www.reddit.com/* // @include https://www.reddit.com/* // @include http://reddit.com/* // @include https://reddit.com/* // @grant GM_log // @version 0.0.1.20160619212934 // @namespace https://gf.qytechs.cn/users/49902 // ==/UserScript== (function() { 'use strict'; var a = document.getElementsByClassName("affiliate"); GM_log("Found " + a.length + " affiliate links"); for (var i=0; i<a.length; i++) { if (a[i].tagName != 'A') { GM_log("Affiliate class on item with tag " + a[i].tagName + " : " + a[i]); continue; } var url=a[i].getAttribute('data-href-url'); if (url) { a[i].setAttribute('data-affiliate-url',url); } else { GM_log("Affiliate link has no data-href-url: " + a[i]); } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址