Shortcut Keys

Press Alt + T to duplicate the current tab.

目前為 2025-08-27 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Shortcut Keys
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Press Alt + T to duplicate the current tab.
// @author       You
// @match        *://*/*
// @grant        GM_openInTab
// ==/UserScript==

(function() {
    'use strict';
    document.addEventListener('keydown', function(event) {
        // Duplicate Tab
        let altK=event.altKey;
        if (altK && event.key === 't') {
            event.preventDefault();
            const currentUrl = window.location.href;
            GM_openInTab(currentUrl, { active: true });
        }
        if (altK && event.key === 'g') {
            event.preventDefault();
            GM_openInTab("https://gemini.google.com/app?hl=vi", { active: true });
        }
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址