🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

New Tab on Double Click

Çift tıklamayla yeni sekmeye geçer

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name         New Tab on Double Click
// @namespace    https://viayoo.com/
// @version      0.1
// @homepageURL  https://app.viayoo.com/addons/40
// @author       Sky
// @run-at       document-start
// @match        *
// @grant        none
// @description  Çift tıklamayla yeni sekmeye geçer
// ==/UserScript==


(function(){
    let clicks = 0;
    let timer = null;
    const delay = 1000; // 1 saniye

    document.addEventListener('click', function(e) {
        clicks++;

        if (clicks === 1) {
            timer = setTimeout(function() {
                clicks = 0;
            }, delay);
        } else if (clicks === 2) {
            clearTimeout(timer);
            clicks = 0;
            window.open('https://www.yandex.com.tr/', '_blank');
        }
    });
})();