您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Solve PixelPlanet clones captchas automatically (Supported: pixmap, globalpixel, pixelya, chillpixel, pixworld)
当前为
// ==UserScript== // @name PixelPlanet Clones Captcha Solver // @namespace vermei_and_nof // @version 1.4 // @description Solve PixelPlanet clones captchas automatically (Supported: pixmap, globalpixel, pixelya, chillpixel, pixworld) // @match https://pixmap.fun/* // @match https://globepixel.fun/* // @match https://pixelya.fun/* // @match https://chillpixel.xyz/* // @match https://pixworld.net/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const site = window.location.host; const path = site == 'pixelya.fun' ? 'div.CaptchaAlert.show' : 'div.Alert.show'; const ispixworld = site == 'pixworld.net'; 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 > ${path} > form > div > img`); const url = captchaElement.src; const svgelement = do_url_to_svg(url); svgelement.then(function(svgData) { const postData = { data:[svgData.replace(/stroke="#{0,1}\S+"/, 'stroke="black"').replace(/stroke-width: \d+;/, 'stroke-width: 4;')] }; 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 > ${path} > form input[name='captcha']`); captchafield.value = answer; console.log(answer); const sendcaptcha = document.querySelector(`#app > ${path} > form button[type="submit"]`); sendcaptcha.click(); }); }) .catch(function(err) { console.log('Fetch Error :-S', err); }); }); }) .catch(function(err) { console.log('Fetch Error :-S', err); }); }); } function getNewPWCaptcha() { return fetch('https://api.henrixounez.com/pixworld/captcha.png') .then(response => response.blob()) .then(blob => { return new Promise((resolve, reject) => { const reader = new FileReader(); reader.onload = () => resolve(reader.result.split(',')[1]); reader.onerror = error => reject(error); return reader.readAsDataURL(blob); }); }) } async function PWSolveCaptcha() { await sleep(100); const base64Element = getNewPWCaptcha(); base64Element.then(function(base64str) { const postData = { data:[base64str] }; fetch('https://fuururuny-pixworld-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-pixworld-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(async function(data) { const answer = data.match(/"([^"]+)"/)[1]; console.log(answer); fetch(`https://api.henrixounez.com/pixworld/captcha/verify`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({text: answer}) }) document.querySelector(`#__next > div:nth-child(1) > div > div > div:nth-child(1) > div:nth-child(2)`).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[alt="CAPTCHA"]')) { ispixworld ? PWSolveCaptcha() : solveCaptcha(); observer.disconnect(); observer.observe(document.documentElement, { childList: true, subtree: true }); break; } } }); observer.observe(document.documentElement, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址