Remove border from quiz input elements

Removes the blue border from input elements with the 'quiz-input__input' class when they are clicked on or focused, including on page load

Versão de: 28/03/2023. Veja: a última versão.

// ==UserScript==
// @name         Remove border from quiz input elements
// @namespace    https://www.wanikani.com
// @version      1.0
// @description  Removes the blue border from input elements with the 'quiz-input__input' class when they are clicked on or focused, including on page load
// @author       Jesse
// @match        https://www.wanikani.com/subjects/review
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Define a function to remove the blue border from an input element
    const removeOutline = inputElement => {
        inputElement.style.outline = 'none';
    };

    // Select all input elements with the 'quiz-input__input' class on the page
    const inputElements = document.querySelectorAll('input.quiz-input__input');

    // Loop through each input element and remove the blue border
    inputElements.forEach(removeOutline);


})();