Skip to content

Instantly share code, notes, and snippets.

View balping's full-sized avatar
🦊
https://gitlab.com/balping

Balázs Dura-Kovács balping

🦊
https://gitlab.com/balping
View GitHub Profile
@benoitryder
benoitryder / ff57-tabs-mousewheel.js
Last active November 21, 2018 20:39
Change tabs with mousewheel in Firefox 57
// Change tabs with mousewheel
// Run into Browser Toolbox console
var onTabWheel = function(ev) {
if (ev.deltaMode == 1 /* DOM_DELTA_LINE */) {
var idx = gBrowser.tabContainer.getIndexOfItem(gBrowser.selectedTab);
if (ev.deltaY > 0) {
if (idx + 1 < gBrowser.tabs.length) {
gBrowser.selectTabAtIndex(idx + 1);
}