// ==UserScript== // @name Use native HTML color input // @namespace https://sofiaritz.com/ // @version 0.1 // @source https://git.sofiaritz.com/sofia/forgejo-native-color-input/src/branch/main/userscript.js // @description Replaces minicolors with the native HTML color input // @author SofĂ­a Aritz // @icon https://www.google.com/s2/favicons?sz=64&domain= // @grant none // @match https:///* // @match https://codeberg.org/* // @match https://next.forgejo.org/* // ==/UserScript== (function() { 'use strict'; Array.from(document.getElementsByClassName("minicolors-input")).forEach(v => { v.type = "color" v.classList = [] }) Array.from(document.getElementsByClassName("minicolors-swatch")).forEach(v => v.remove()) Array.from(document.getElementsByClassName("precolors")).forEach(v => v.remove()) })();