Full Screen

For all website. ctrl + alt + F

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

Advertisement:

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Advertisement:

// ==UserScript==
// @name         Full Screen
// @namespace    http://tampermonkey.net/
// @version      0.6
// @description  For all website. ctrl + alt + F
// @author       Rafif Adli Mulya
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
   'use strict';
   var x=document;
   function fs(m){
      var m = x.documentElement;
      if (!document.fullscreenElement&&!document.mozFullScreenElement&&!document.webkitFullscreenElement&&!document.msFullscreenElement){
         if(m.requestFullscreen){m.requestFullscreen()}
         else if(m.webkitRequestFullscreen){m.webkitRequestFullscreen()}
         else if(m.msRequestFullscreen){m.msRequestFullscreen()}
         else if(m.mozRequestFullscreen){m.mozRequestFullscreen()}
         else{alert('Full Screen not supported on this Browser')}
      }else{
         if(x.exitFullscreen){x.exitFullscreen()}
         else if(x.webkitExitFullscreen){x.webkitExitFullscreen()}
         else if(x.msExitFullscreen){x.msExitFullscreen()}
         else if(x.mozExitFullscreen){x.mozExitFullscreen()}
         else{alert('not supported! try press "ESC" key')}
      }
   }
   x.onkeyup=(e)=>{if(e.ctrlKey&&e.altKey&&e.which==70){fs()}};
   x.ondblclick=()=>{fs()}
})();