Bookmark Bar only on Speed Dial (like chrome)


  • Vivaldi Ambassador

    One feature that was missing (at least i didn't find it) on Vivaldi was to display the bookmark bar only on the speed dial, like Chrome does, so I made this tiny mod. Hope it helps someone.

    /**
     * Author: Leonardo Domingues
     */
    
    setTimeout(function wait() 
    {
        var adr = document.querySelector(".toolbar-addressbar.toolbar");
            if (adr != null) 
            {
                const vivaldi = window.chrome;
    
                var bar = document.getElementsByClassName('bookmark-bar')[0];
                    
                function change_display()
                {
                    var tab = document.querySelector('.active.webpageview');
    
                    if (tab.classList.contains('internal')) 
                    {
                        bar.style.display = "flex";
                    }else
                    {
                        bar.style.display = "none";
                    }
                }
    
                vivaldi.tabs.onCreated.addListener(e => change_display());
    
                vivaldi.tabs.onUpdated.addListener(e => change_display());
    
                vivaldi.tabs.onActivated.addListener(e => change_display());
            }
            else {
                setTimeout(wait, 300);
            }
    }, 300);


  • Interesting idea 👍


  • Vivaldi Ambassador

    @luetage Thanks ! Funny story: A co-worker gave me the ideia once (it was a feature that he used on chrome) . Now that I made it, he doesnt want it


 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.