Educake Autofill

Autofills Educake answers for you!

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Educake Autofill
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Autofills Educake answers for you!
// @author       Your Name
// @match        https://app.educake.co.uk/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // Add your answers here
    const answers = {
        'Question 1': 'Answer 1',
        'Question 2': 'Answer 2',
        'Question 3': 'Answer 3'
    };

    // Wait for the page to fully load
    window.addEventListener('load', () => {
        // Get all the answer fields
        const answerFields = document.querySelectorAll('input[type=text]');

        // Loop through the answer fields
        answerFields.forEach((field) => {
            // Get the question for the answer field
            const question = field.previousElementSibling.textContent.trim();

            // Check if we have an answer for this question
            if (question in answers) {
                // Fill in the answer
                field.value = answers[question];
            }
        });
    });
})();