aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@noreply.example.org>2020-07-01 00:09:24 +0000
committerGuilmour Rossi <me@guilmour.org>2020-07-01 00:09:24 +0000
commit4af36c002ac716750a67666d8c028d974972f344 (patch)
treec3f74411c403549bd62ebb26f39d9dc7869db7c9
parent2e7edc66d6c91ea2661082d3c96921c9baeb4709 (diff)
parent70c5c75410e10d74b5293557edad812777c18ec3 (diff)
downloadbook-4af36c002ac716750a67666d8c028d974972f344.tar.lz
book-4af36c002ac716750a67666d8c028d974972f344.tar.xz
book-4af36c002ac716750a67666d8c028d974972f344.zip
Merge branch 'master' of saravia/book into master
- Add dark theme experimental browser support
-rw-r--r--scripts-greasemonkey/README.md6
-rw-r--r--scripts-greasemonkey/fix_input_dark_theme.user.js30
2 files changed, 36 insertions, 0 deletions
diff --git a/scripts-greasemonkey/README.md b/scripts-greasemonkey/README.md
index a197eaa..49a7a52 100644
--- a/scripts-greasemonkey/README.md
+++ b/scripts-greasemonkey/README.md
@@ -29,3 +29,9 @@
- 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)
+
+## Fix all web forms Input for your Dark Theme (Experimental)
+
+- See [DarkThemeInputFix Redirect](fix_input_dark_theme.user.js)
+
+ [Install](https://libregit.spks.xyz/heckyel/book/raw/branch/master/scripts-greasemonkey/fix_input_dark_theme.user.js)
diff --git a/scripts-greasemonkey/fix_input_dark_theme.user.js b/scripts-greasemonkey/fix_input_dark_theme.user.js
new file mode 100644
index 0000000..a8f63c4
--- /dev/null
+++ b/scripts-greasemonkey/fix_input_dark_theme.user.js
@@ -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