This commit is contained in:
parent
9c0c80902e
commit
adb197a0e5
4 changed files with 13 additions and 17 deletions
|
@ -4,9 +4,9 @@ A Userscript for autofilling the Answers on the **CCNA**.
|
||||||
inspired by [Merlinfuchs/ccna-extension](https://github.com/merlinfuchs/ccna-extension).
|
inspired by [Merlinfuchs/ccna-extension](https://github.com/merlinfuchs/ccna-extension).
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
Use a userscript client like [ViolentMonkey](https://violentmonkey.github.io/), [Tampermonkey](https://www.tampermonkey.net/).
|
Use a userscript client like [Violentmonkey](https://violentmonkey.github.io/), [Tampermonkey](https://www.tampermonkey.net/).
|
||||||
|
|
||||||
[![Install USerscript](https://img.shields.io/badge/Install_Userscript-Install_Userscript?style=for-the-badge&logo=tampermonkey&logoColor=brown&color=lightgray)](https://git.euph.dev/SZUT-Dominik/CCNA_Autofill_Userscript/raw/branch/main/src/main.user.js)
|
[![Install USerscript](https://img.shields.io/badge/Install_Userscript-Install_Userscript?style=for-the-badge&logo=greasyfork&logoColor=black&color=brown)](https://git.euph.dev/SZUT-Dominik/CCNA_Autofill_Userscript/raw/branch/main/src/main.user.js)
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name CCNA Autofill
|
// @name CCNA Autofill
|
||||||
// @namespace Violentmonkey Scripts
|
// @namespace https://git.euph.dev/Snoweuph
|
||||||
// @match *://assessment.netacad.net/*
|
// @match *://assessment.netacad.net/*
|
||||||
// @match *://www.assessment.netacad.net/*
|
// @match *://www.assessment.netacad.net/*
|
||||||
// @match *://www.google.com/*
|
|
||||||
// @match *://www.google.de/*
|
|
||||||
// @require https://git.euph.dev/SZUT-Dominik/CCNA_Autofill_Userscript/raw/branch/main/src/fetch.js
|
// @require https://git.euph.dev/SZUT-Dominik/CCNA_Autofill_Userscript/raw/branch/main/src/fetch.js
|
||||||
// @require https://git.euph.dev/SZUT-Dominik/CCNA_Autofill_Userscript/raw/branch/main/src/answer.js
|
// @require https://git.euph.dev/SZUT-Dominik/CCNA_Autofill_Userscript/raw/branch/main/src/answer.js
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Object representing a question with answers.
|
|
||||||
* @typedef {Object} Answer
|
* @typedef {Object} Answer
|
||||||
* @property {string} question - The question.
|
* @property {string} question
|
||||||
* @property {Array<string>} answers - An array of answers.
|
* @property {Array<string>} answers
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
/**
|
/**
|
||||||
* Makes an HTTP request using GM.xmlHttpRequest.
|
* @param {Object} request
|
||||||
* @param {Object} details - Details of the HTTP request.
|
* @param {string} request.method
|
||||||
* @param {string} details.method - The HTTP request method (e.g., 'GET', 'POST').
|
* @param {string} request.url
|
||||||
* @param {string} details.url - The URL to send the request to.
|
* @param {Object<string, string>} [request.headers]
|
||||||
* @param {Object<string, string>} [details.headers] - Additional headers to include in the request.
|
* @param {function(GMXMLHttpRequestResponse):void} [request.onload]
|
||||||
* @param {function(GMXMLHttpRequestResponse):void} [details.onload] - Optional. Will be called when the request has completed successfully. Passed one argument, the Response Object.
|
* @param {Function} [request.onerror]
|
||||||
* @param {Function} [details.onerror] - Optional. Will be called if an error occurs while processing the request. Passed one argument, the Response Object.
|
* @returns {void}
|
||||||
* @returns {undefined}
|
|
||||||
*/
|
*/
|
||||||
function GM_xmlhttpRequest(details) {}
|
function GM_xmlhttpRequest(request) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Response object for the HTTP request.
|
* Response object for the HTTP request.
|
||||||
|
|
Loading…
Reference in a new issue