fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.34k stars 99 forks source link

How to Make Exceptiont to style.css? #703

Closed ghost closed 2 years ago

ghost commented 2 years ago

I have a file ~/.config/vimb/style.css. It defines the theme for all websites. However, some websides don't work because of it, so can I add exceptiont for those websites?

fanglingsu commented 2 years ago

@amarakon There is no direct exception logic in vimb. But you could use autocommands to do something like that and toggle the stylesheet flag. Following lines in .config/vimb/config would disable use stylesheet for github.

augroup nouserstyle
autocmd LoadCommitted * set stylesheet=on
autocmd LoadCommitted https://github.com/* set stylesheet=off
augroup end
ghost commented 2 years ago

Thank you, it worked. I am closing this issue.