您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Converts Taobao and Weidan links on r/FashionReps to Sugaroo links, but Pandabuy best agent, ok? I pull up at the afterparty
// ==UserScript== // @name Sugaroo Link Conversion // @namespace https://github.com/earthplusthree/userscripts // @license MIT // @match *://www.reddit.com/r/FashionReps/* // @grant none // @version 1.0 // @author earthplusthree // @description Converts Taobao and Weidan links on r/FashionReps to Sugaroo links, but Pandabuy best agent, ok? I pull up at the afterparty // ==/UserScript== window.onload = () => { Array.from(document.getElementsByTagName("a")) .filter((link) => link.href.includes("://item.taobao.com/item.htm") || link.href.includes("://weidian.com/item.html")) .forEach((link) => { link.href = "https://www.sugargoo.com/index/item/index.html?url=" + encodeURIComponent(link.href); link.innerText = link.innerText + " (SUGAROO)"; }); };