您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
它将 V2EX 帖子中的闲鱼口令/淘口令转换为可直接访问的链接,使您可一键直达闲鱼/淘宝。
当前为
// ==UserScript== // @name 去你大爷的闲鱼口令 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 它将 V2EX 帖子中的闲鱼口令/淘口令转换为可直接访问的链接,使您可一键直达闲鱼/淘宝。 // @author Wood // @match https://*.v2ex.com/* // @grant none // ==/UserScript== (function() { 'use strict'; const text = document.body.innerText; const tkl = text.match(/[€|¥][A-Za-z0-9]+[€|¥]/g); tkl.forEach(x=>{ if(fetch){ fetch(`https://jckhj8su.demo.wood-is.top/tkl/tkljm?apikey=ZwuJXDIBef&tkl=${x}`).then(res => {res.json().then(data => { const {content, url} = data; document.body.innerHTML = document.body.innerHTML.replace(x, `<a title="${content}" onclick="window.open('${url}')" style="color: yellow; padding: 0 .5em; font-weight: 500; cursor: pointer;">${x}</a>`) })}) } }); })();