diff --git a/README.md b/README.md index af857e5..a8de330 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/types/Answer.d.js b/types/Answer.d.js index d6d11c0..ac3db36 100644 --- a/types/Answer.d.js +++ b/types/Answer.d.js @@ -1,6 +1,5 @@ /** - * Object representing a question with answers. * @typedef {Object} Answer - * @property {string} question - The question. - * @property {Array} answers - An array of answers. + * @property {string} question + * @property {Array} answers */ diff --git a/types/GM_xmlhttpRequest.d.js b/types/GM_xmlhttpRequest.d.js index b2382da..9d09b8f 100644 --- a/types/GM_xmlhttpRequest.d.js +++ b/types/GM_xmlhttpRequest.d.js @@ -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} [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} [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.