您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
还原PDD商家后台的被加密的数字
当前为
// ==UserScript== // @name 还原PDD商家后台的加密字体 // @namespace undefined // @version 0.6 // @description 还原PDD商家后台的被加密的数字 // @author You // @match https://mms.pinduoduo.com/sycm/goods_effect // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant GM_xmlhttpRequest // ==/UserScript== (function() { 'use strict'; var handler = setInterval(function() { var reg = /src:\s*url\('(?<data>[^']+)'\)\s*format\('truetype'\)/; var match = reg.exec(document.head.outerHTML); if (match == undefined) return; console.log('match success:' + match.groups['data']); GM_xmlhttpRequest({ headers: { 'content-type': 'application/json', 'Authorization': 'Basic ZGVtbzpzYWRhajA5YQ==' }, responseType: 'json', url: 'http://itspiura.cn:8025/Decode', data: '"' + match.groups['data'] + '"', method: 'POST', onreadystatechange: function(res) { if (res.status === 200 && res.readyState === 4) { [...document.querySelectorAll('.__spider_font')].filter(s=>s.childElementCount == 0).forEach(s=>{ var text = s.innerHTML.split('').reduce((a,b)=>a + (res.response.result[b.charCodeAt()] ?? b), ''); s.innerHTML = text; } ) clearInterval(handler); } } }) }, 1000); } )();