Skip to content

Instantly share code, notes, and snippets.

View ChristianKurz's full-sized avatar

Christian Kurz ChristianKurz

  • Reutlingen, Germany
View GitHub Profile
@ChristianKurz
ChristianKurz / bindings.xml
Last active March 1, 2019 18:11
Firefox 57+: scroll through tabs with mouse wheel, adapted from here: https://forum.manjaro.org/t/howto-enable-tab-switching-in-firefox-using-mouse-wheel/39954
<?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;
currentindex = gBrowser.tabContainer.selectedIndex;