From 9139a1b136fa2b5adfcac0ac09a4f61aa1ee1ff4 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Wed, 4 Feb 2026 14:24:16 -0800 Subject: full reorg --- config/vimb/_style.css | 55 +++++++++++++++++++++++++++++++++++++++++++++ config/vimb/config | 20 +++++++++++++++++ config/vimb/scripts.js | 8 +++++++ config/vimb/vimb/_style.css | 55 +++++++++++++++++++++++++++++++++++++++++++++ config/vimb/vimb/config | 20 +++++++++++++++++ 5 files changed, 158 insertions(+) create mode 100644 config/vimb/_style.css create mode 100644 config/vimb/config create mode 100644 config/vimb/scripts.js create mode 100644 config/vimb/vimb/_style.css create mode 100644 config/vimb/vimb/config (limited to 'config/vimb') diff --git a/config/vimb/_style.css b/config/vimb/_style.css new file mode 100644 index 0000000..a824e29 --- /dev/null +++ b/config/vimb/_style.css @@ -0,0 +1,55 @@ +*,div,pre,textarea,body,input,td,tr,p { + background-color: #303030 !important; + background-image: none !important; + color: #bbbbbb !important; +} +h1,h2,h3,h4 { + background-color: #303030 !important; + color: #b8ddea !important; +} +a { + color: #70e070 !important; +} +a:hover,a:focus { + color: #7070e0 !important; +} +a:visited { + color: #e07070 !important; +} +img { + opacity: .5; +} +img:hover { + opacity: 1; +} + +/* Hint mode color styling + * Color scheme: Base16 Eighties (https://github.com/chriskempson/base16) + * + * The precedence of the user style is lower than that of the website so you + * have to mark your style definition to have higher priority. + */ +span[vimbhint^='label'] { + background-color: #f2f0ec !important; + border: 1px solid #2d2d2d !important; + color: #2d2d2d !important; + font: bold 10pt monospace !important; + opacity: 1 !important; + padding: .1em .4em !important; + text-transform: uppercase !important; +} +span[vimbhint='label focus'] { + font: bold 13pt monospace !important; +} +*[vimbhint^='hint'] { + background-color: #ffcc66 !important; + color: #2d2d2d !important; +} +*[vimbhint='hint focus'] { + background-color: #6699cc !important; + color: #2d2d2d !important; +} + +body::-webkit-scrollbar { + display: none; +} diff --git a/config/vimb/config b/config/vimb/config new file mode 100644 index 0000000..4e23902 --- /dev/null +++ b/config/vimb/config @@ -0,0 +1,20 @@ +set editor-command=ALTERNATE_EDITOR=emacs emacsclient -n %s +set webgl=true +set hardware-acceleration-policy=never +set incsearch=true +set spell-checking=true +set scripts=false + +set font-size=14 +set monospace-font-size=14 +set input-autohide=true + +nmap + zI +nmap - zO +nmap = zz + +nnoremap :sh! mpv $VIMB_URI + +shortcut-add d=https://html.duckduckgo.com/html?q=$0 +shortcut-add g=https://google.com/search?q=$0 +shortcut-default d diff --git a/config/vimb/scripts.js b/config/vimb/scripts.js new file mode 100644 index 0000000..b0698dc --- /dev/null +++ b/config/vimb/scripts.js @@ -0,0 +1,8 @@ +(function() { + const pattern = /https?:\/\/www.reddit.com/; // Change this to match the URL pattern you want + const currentUrl = window.location.href; + const redirectTo = currentUrl.replace("www", "old"); // Set the URL to redirect to + if (pattern.test(currentUrl)) { + window.location.replace(redirectTo); + } +})(); diff --git a/config/vimb/vimb/_style.css b/config/vimb/vimb/_style.css new file mode 100644 index 0000000..a824e29 --- /dev/null +++ b/config/vimb/vimb/_style.css @@ -0,0 +1,55 @@ +*,div,pre,textarea,body,input,td,tr,p { + background-color: #303030 !important; + background-image: none !important; + color: #bbbbbb !important; +} +h1,h2,h3,h4 { + background-color: #303030 !important; + color: #b8ddea !important; +} +a { + color: #70e070 !important; +} +a:hover,a:focus { + color: #7070e0 !important; +} +a:visited { + color: #e07070 !important; +} +img { + opacity: .5; +} +img:hover { + opacity: 1; +} + +/* Hint mode color styling + * Color scheme: Base16 Eighties (https://github.com/chriskempson/base16) + * + * The precedence of the user style is lower than that of the website so you + * have to mark your style definition to have higher priority. + */ +span[vimbhint^='label'] { + background-color: #f2f0ec !important; + border: 1px solid #2d2d2d !important; + color: #2d2d2d !important; + font: bold 10pt monospace !important; + opacity: 1 !important; + padding: .1em .4em !important; + text-transform: uppercase !important; +} +span[vimbhint='label focus'] { + font: bold 13pt monospace !important; +} +*[vimbhint^='hint'] { + background-color: #ffcc66 !important; + color: #2d2d2d !important; +} +*[vimbhint='hint focus'] { + background-color: #6699cc !important; + color: #2d2d2d !important; +} + +body::-webkit-scrollbar { + display: none; +} diff --git a/config/vimb/vimb/config b/config/vimb/vimb/config new file mode 100644 index 0000000..7560e4d --- /dev/null +++ b/config/vimb/vimb/config @@ -0,0 +1,20 @@ +set editor-command=ALTERNATE_EDITOR=emacs emacsclient -n %s +set webgl=true +set hardware-acceleration-policy=never +set incsearch=true +set spell-checking=true +set scripts=false + +set font-size=12 +set monospace-font-size=12 +set input-autohide=true + +nmap + zI +nmap - zO +nmap = zz + +nmap sh! mpv $VIMB_URI + +shortcut-add d=https://duckduckgo.com/?q=$0 +shortcut-add g=https://google.com/search?q=$0 +shortcut-default d -- cgit v1.2.3