您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Autofills Educake answers for you!
// ==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]; } }); }); })();