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

当前为 2023-03-28 提交的版本,查看 最新版本

// ==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);


})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址