// ==UserScript== // @name 闲鱼链接&口令转换(cover:去你大爷的闲鱼口令) // @namespace http://tampermonkey.net/ // @version 0.2.1 // @description 在 https://www.v2ex.com/t/686313 的基础上做了细微的修改,将 V2EX 帖子中的闲鱼口令/淘口令/链接转换为可直接访问的链接,使您可一键直达闲鱼/淘宝。 // @author Wood, Liby // @match https://*.v2ex.com/* // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; const text = document.body.innerText; const aTagCollection = document.body.getElementsByTagName('a'); const tkl = text.match(/[€|¥][A-Za-z0-9]+[€|¥]/g); const marketUrlCollection = text.match(/https:\/\/market.m.taobao.com\/.*/gm); function createNode(url) { const template = `点击查看`; let tempNode = document.createElement('div'); tempNode.innerHTML = template; return tempNode.firstChild; } window.addIframe = (url) => { const viewDom = document.getElementById("viewGoods"); viewDom && viewDom.remove(); let div = document.createElement("div"); div.setAttribute("id", "viewGoods"); div.innerHTML = `
关闭