ClicknUpload-captcha

Solve ClicknUpload/ClickNDownload Captchas

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

"use strict";
// ==UserScript==
// @name         ClicknUpload-captcha
// @namespace    http://tampermonkey.net/
// @version      0.1.3
// @description  Solve ClicknUpload/ClickNDownload Captchas
// @author       You
// @match        https://clickndownload.space/*
// @match        https://clickndownload.site/*
// @match        https://clickndownload.link/*
// @match        https://clickndownload.name/*
// @match        https://clickndownload*/*
// @match        https://clickndownload.*/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=clickndownload.space
// @license      MIT
// @grant        none
// ==/UserScript==

const captcha = document.querySelector("#commonId > div > table > tbody > tr > td > center > table > tbody > tr:nth-child(2) > td:nth-child(1) > div");
if (captcha !== null) {
    const children = Array.from(captcha.children);
    // sort chilren based on their left padding
    const childrenSorted = children.sort((a, b) => {
        const aPadding = parseInt(a.style.paddingLeft);
        const bPadding = parseInt(b.style.paddingLeft);
        return aPadding - bPadding;
    });
    // get the text of the children
    const result = childrenSorted.map(c => c.textContent).join("");
    const input = document.querySelector("#commonId > div > table > tbody > tr > td > center > table > tbody > tr:nth-child(2) > td:nth-child(2) > input");
    if (input !== null) {
        input.value = result;
    }
}