去你大爷的闲鱼口令

它将 V2EX 帖子中的闲鱼口令/淘口令转换为可直接访问的链接,使您可一键直达闲鱼/淘宝。

目前为 2020-06-22 提交的版本。查看 最新版本

// ==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>`)
            })})
        }
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址