您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Solve PixMap Captcha automatically
当前为
// ==UserScript== // @name PixMap Captcha Solver // @namespace vermei_and_nof // @version 1.1 // @description Solve PixMap Captcha automatically // @match https://pixmap.fun/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } function do_url_to_svg(url) { return fetch(url) .then(function(response) { if (response.status !== 200) { console.log('Looks like there was a problem. Status Code: ' + response.status); return; } return response.text(); }) .catch(function(err) { console.log('Fetch Error :-S', err); }); } function solveCaptcha() { const captchaElement = document.querySelector("#app > div.Alert.show > form > div > img"); const url = captchaElement.src; const svgelement = do_url_to_svg(url); svgelement.then(function(svgData) { const postData = { data:[svgData.replace('stroke="white"', 'stroke="black"')] }; fetch('https://fuururuny-pixmap-captcha.hf.space/gradio_api/call/predict', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(postData) }) .then(function(response) { if (response.status !== 200) { console.log('Looks like there was a problem. Status Code: ' + response.status); return; } response.json().then(function(data) { const eventID = data.event_id; fetch(`https://fuururuny-pixmap-captcha.hf.space/gradio_api/call/predict/${eventID}`, { method: 'GET' }) .then(function(response) { if (response.status !== 200) { console.log('Looks like there was a problem. Status Code: ' + response.status); return; } response.text().then(function(data) { const answer = data.match(/"([^"]+)"/)[1]; const captchafield = document.querySelector("#app > div.Alert.show > form input[name='captcha']"); captchafield.value = answer; console.log(answer); const sendcaptcha = document.querySelector('#app > div.Alert.show > form button[type="submit"]'); sendcaptcha.click(); }); }) .catch(function(err) { console.log('Fetch Error :-S', err); }); }); }) .catch(function(err) { console.log('Fetch Error :-S', err); }); }); } const observer = new MutationObserver(function(mutationsList, observer) { for (let mutation of mutationsList) { if (mutation.target.querySelector('img')) { solveCaptcha(); observer.disconnect(); observer.observe(document.documentElement, { childList: true, subtree: true }); break; } } }); observer.observe(document.documentElement, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址