Transum

transum fa

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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 सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

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

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

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

// ==UserScript==
// @name         Transum
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  transum fa
// @author       You
// @match        *://*.transum.org/*
// @grant        none
// @license MIT
// ==/UserScript==

(function () {
    'use strict';

    const correctAnswers = 999;
    const trophyText = 'Completed';

    function fakeCorrectAnswers(count, trophyMessage) {
        window.score = count;

        for (let i = 1; i <= count; i++) {
            const tick = document.getElementById(`tick${i}`);
            const cross = document.getElementById(`cross${i}`);
            if (tick && cross) {
                tick.style.display = 'inline';
                cross.style.display = 'none';
            }

            const guessInput = document.querySelector(`input[name="Guess${i}"]`);
            if (guessInput) {
                guessInput.value = `1F1`;
            }
        }

        const checkButton = document.getElementById('Checkbutton');
        if (checkButton) {
            checkButton.innerText = trophyMessage.includes('again') ? 'Check again' : 'Check';
            checkButton.style.width = '150px';
        }

        const trophyButton = document.getElementById('Trophybutton');
        if (trophyButton) {
            trophyButton.style.display = 'inline-block';
            trophyButton.value = trophyMessage;
        }
    }

    function submitForm(trophyMessage) {
        const form = document.forms['TrophyForm'];
        if (form) {
            form.Other_Text.value = trophyMessage;
            form.submit();
        }
    }

    fakeCorrectAnswers(correctAnswers, trophyText);

    if (typeof PreCheck === 'function') {
        PreCheck(document.MainForm);
    }

    submitForm(trophyText);
})();