LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Switching tabs with mouse wheel on Palemoon (and older Firefoxes?)

Posted 10-22-2018 at 03:10 PM by the dsc

There are some extensions for that, but it is not strictly needed: https://forum.manjaro.org/t/howto-en...se-wheel/39954

The linked tutorial is intended for people who don't use terminals that much, and ironically I find somewhat confusing, not that I'm any sort of master of all terminals or anything. The summarized version is, in the browser directory ("~/.moonchild productions/pale moon" for palemoon), on whatever user profiles subdirectories you wish, create or edit the files in the "chrome" subdirectory (creating the subdirectory itself it if isn't there):

bindings.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bindings>
<bindings xmlns="http://www.mozilla.org/xbl">
    <binding id="tabs-scroll" extends="chrome://global/content/bindings/scrollbox.xml#scrollbox">
        <handlers>
            <handler event="wheel"><![CDATA[
                // Preserve original behaviour if meta (Windows) key is held
                if (event.metaKey) return;
                                
                if (event.deltaY < 0) {
                    gBrowser.tabContainer.advanceSelectedTab(-1, true);
                }
                else {
                    gBrowser.tabContainer.advanceSelectedTab(1, true);
                }    
                event.stopPropagation();
                event.preventDefault();
            ]]></handler>
        </handlers>
    </binding>
</bindings>

userChrome.css - must respect casing change.

Code:
.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
    /* Place bindings.xml in the same folder as userChrome.css */
    -moz-binding: url("bindings.xml#tabs-scroll") !important;
}
And restart the browser (child windows included).


Backup the original files, if there are any already, and try to infer the correct syntax for proper placement or replacement of those parts, if you want to combine with older customizations.
Posted in Uncategorized
Views 876 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration