Tab Switch 的评价
Tab Switch 作者: Awuthme
16 条评价
- 评分 5 / 5来自 Firefox 用户 14311323, 5 个月前
- 评分 5 / 5来自 Jasir Alavi, 9 个月前
- 评分 4 / 5来自 Andy19823981273, 1 年前Works very well except the add-on interferes with YouTube's keyboard shortcuts. When you use ctrl+(left or right arrow) on Youtube you switch chapters. I've been looking for a solution to this problem but can't find one. I would appreciate any help bc I do really like this add-on.
EDIT: Nvm I found a solution. Using Tampermonkey add-on I used the following script so that the Tab Switch add-on works before Youtube notices the shortcut being used.
// ==UserScript==
// @name Prioritize Tab-Switching over YouTube Shortcuts
// @namespace http://tampermonkey.net/
// @version 0.6
// @description Ensure tab-switching extension works without YouTube intercepting the shortcut
// @author You
// @match *://www.youtube.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Listen for the keydown event at the capture phase
window.addEventListener('keydown', function(event) {
// Check if Ctrl key is pressed and if the key is left or right arrow
if (event.ctrlKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
// Prevent YouTube from knowing about this key event
event.stopImmediatePropagation(); // Stop YouTube from handling the event
// Do not prevent the default action to allow the tab-switching extension to work
}
}, {capture: true, passive: true});
})(); - 评分 5 / 5来自 Firefox 用户 18376868, 1 年前
- 评分 5 / 5来自 Firefox 用户 12890933, 1 年前works for me, great stuff, thanks! (why did mozilla make tab switching so useless)
- 评分 5 / 5来自 Firefox 用户 15902701, 5 年前
- This is the greatest Add-On. It should be called "MasterTabs." It truly is a *master* at the simplest thing it does - switching tabs with one hand! It's the ONLY tab switcher with that in mind. If you're always working it going up-and-down and up-and-down your long, long list of Tabs, this is it! One handed HEAVEN! :-p