# HG changeset patch # User Ludovic Chabant # Date 1402190096 25200 # Node ID 7b34721d0d3db49cdc72c121977972fd7a30408a # Parent 300b70bbfc678328d9d463c4dafdf4adb614d37d Fix UI problems in Firefox 29+. diff -r 300b70bbfc67 -r 7b34721d0d3d vimperatorrc --- a/vimperatorrc Wed Jun 04 15:39:30 2014 -0700 +++ b/vimperatorrc Sat Jun 07 18:14:56 2014 -0700 @@ -43,11 +43,27 @@ nnoremap b :downloads " Super minimal UI -set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs +"set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs " Websites with useful keyboard shortcuts already ignorekeys add -except=:,J,K,b fastmail.fm ignorekeys add -except=:,J,K,b feedly.com ignorekeys add -except=:,J,K,b mnmlrdr.com +" The new Firefox fucked up vimperator's ability to hide +" things. Let's do it ourselves for now. +map :js toggle_ui() + +:js << EOF +function toggle_ui() { + var nb = document.getElementById('nav-bar'); + nb.style.visibility = (nb.style.visibility == '') ? 'collapse' : ''; + nb.style.overflow = (nb.style.height == '') ? '' : 'hidden'; + + var tb = document.getElementById('TabsToolbar'); + tb.style.visibility = (tb.style.visibility == '') ? 'hidden' : ''; + } +toggle_ui(); +EOF + " vim: ft=vim