1
1
Fork 0

Cleanup
All checks were successful
Linting / Javadoc (push) Successful in 4s

This commit is contained in:
Dominik Säume 2024-05-23 19:48:43 +02:00
parent 9c0c80902e
commit adb197a0e5
Signed by: SZUT-Dominik
GPG key ID: 67D15BB250B41E7C
4 changed files with 13 additions and 17 deletions

View file

@ -4,9 +4,9 @@ A Userscript for autofilling the Answers on the **CCNA**.
inspired by [Merlinfuchs/ccna-extension](https://github.com/merlinfuchs/ccna-extension).
## 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

View file

@ -1,10 +1,8 @@
// ==UserScript==
// @name CCNA Autofill
// @namespace Violentmonkey Scripts
// @namespace https://git.euph.dev/Snoweuph
// @match *://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/answer.js
// @grant GM_setValue

View file

@ -1,6 +1,5 @@
/**
* Object representing a question with answers.
* @typedef {Object} Answer
* @property {string} question - The question.
* @property {Array<string>} answers - An array of answers.
* @property {string} question
* @property {Array<string>} answers
*/

View file

@ -1,14 +1,13 @@
/**
* Makes an HTTP request using GM.xmlHttpRequest.
* @param {Object} details - Details of the HTTP request.
* @param {string} details.method - The HTTP request method (e.g., 'GET', 'POST').
* @param {string} details.url - The URL to send the request to.
* @param {Object<string, string>} [details.headers] - Additional headers to include in the request.
* @param {function(GMXMLHttpRequestResponse):void} [details.onload] - Optional. Will be called when the request has completed successfully. Passed one argument, the Response Object.
* @param {Function} [details.onerror] - Optional. Will be called if an error occurs while processing the request. Passed one argument, the Response Object.
* @returns {undefined}
* @param {Object} request
* @param {string} request.method
* @param {string} request.url
* @param {Object<string, string>} [request.headers]
* @param {function(GMXMLHttpRequestResponse):void} [request.onload]
* @param {Function} [request.onerror]
* @returns {void}
*/
function GM_xmlhttpRequest(details) {}
function GM_xmlhttpRequest(request) {}
/**
* Response object for the HTTP request.