F11 for FullScreen

make Edge fullsceen when press F11!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         F11 for FullScreen
// @name:zh-CN   F11全屏
// @version      0.1
// @description  make Edge fullsceen when press F11!
// @description:zh-cn 让Edge浏览器的F11键恢复作用
// @author       JoeyWNK
// @match        *://*/*
// @grant        none
// @namespace https://greasyfork.org/users/118753
// ==/UserScript==

(function() {
    'use strict';
    document.addEventListener("keydown", function(e) {
        var key = event.which || event.keyCode;
        if (key == 122 && document.fullscreenEnabled){
            if (!document.fullscreenElement)
                document.documentElement.requestFullscreen();
            else if (document.exitFullscreen)
                document.exitFullscreen();
        }
    });
})();