NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name KissManga CapImg // @namespace https://openuserjs.org/scripts/shadofx // @description Saves images from Kissmanga's custom Captcha // @copyright 2018, shadofx (https://openuserjs.org/users/shadofx) // @license MIT // @match http://kissmanga.com/Special/AreYouHuman2* // @match https://kissmanga.com/Special/AreYouHuman2* // @updateURL https://openuserjs.org/meta/shadofx/KissManga_CapImg.meta.js // @grant GM_download // @version 1.00 // @run-at document-start // @require http://code.jquery.com/jquery-1.7.2.min.js // ==/UserScript== // ==OpenUserJS== // @author shadofx // ==/OpenUserJS== var $ = jQuery; setTimeout(()=>{ let spans = $('span[style="font-weight: bold; color: #d5f406"]'); let images = $('img[indexvalue]'); let clicked = 0; images.click((c)=>{ if(c.target.className) { let src = c.target.src; let target = 'capimg-'+spans[clicked].innerText+'.'+src.split('.').pop() fetch(src) .then(resp => resp.blob()).then(blob => { const url = window.URL.createObjectURL(blob); const a = document.createElement('a'); a.style.display = 'none';a.href = url;a.download = target; document.body.appendChild(a);a.click(); window.URL.revokeObjectURL(url); }).catch(() => alert('Error Downloading CapImg!')); clicked++; } else { clicked--; } }) },500)