This commit is contained in:
parent
9c0c80902e
commit
e5424702a6
3 changed files with 11 additions and 13 deletions
|
@ -4,7 +4,7 @@ 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)
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue