Remove border from quiz input elements

Removes the border from input elements

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Remove border from quiz input elements
// @namespace    https://www.wanikani.com
// @version      1.1
// @description  Removes the border from input elements
// @author       Jesse
// @match        https://www.wanikani.com/subjects/review
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

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

    // Select all input elements on the page
    const inputElements = document.querySelectorAll('input');

    // Loop through each input element and remove the border
    for(let i = 0; i < inputElements.length; i++) {
        removeOutline(inputElements[i]);
    }


})();