add dark theme experimental browser support

This commit is contained in:
saravia 2020-06-30 17:55:05 -05:00
parent 2e7edc66d6
commit ce3ff49273
2 changed files with 36 additions and 0 deletions

View File

@ -29,3 +29,9 @@
- See [Bibliogram Redirect](instagram_to_bibliogram.user.js) - See [Bibliogram Redirect](instagram_to_bibliogram.user.js)
[Install](https://libregit.spks.xyz/heckyel/book/raw/branch/master/scripts-greasemonkey/instagram_to_bibliogram.user.js) [Install](https://libregit.spks.xyz/heckyel/book/raw/branch/master/scripts-greasemonkey/instagram_to_bibliogram.user.js)
## Fix all web forms Input for your Dark Theme (Experimental)
- See [DarkThemeInputFix Redirect](fix_input_dark_theme.user.js)
[Install](/home/gnu/Documentos/book/scripts-greasemonkey/fix_input_dark_theme.user.js)

View File

@ -0,0 +1,30 @@
// ==UserScript==
// @name Fix Input Dark Theme
// @author Jesús E. & Enmanuel E.
// @namespace fixForMyDarkTheme
// @description Scan all inputs and add a inherit color option for not blind inputs in your dark theme
// @homepageURL https://libregit.spks.xyz/heckyel/book/src/branch/master/scripts-greasemonkey
// @include *
// @grant none
// @version 0.0.1
// @license GPL version 3 or any later version::: https://www.gnu.org/licenses/gpl-3.0.html
// ==/UserScript==
/* jshint esversion: 6 */
function fixForMyDarkTheme(){
let i, inputs;
inputs = document.getElementsByTagName('input');
for (i = 0; i < inputs.length; i++) {
inputs[i].style.color='inherit';
}
}
fixForMyDarkTheme();
// ohm ... m(-_-)m ... thanks