Full Screen

For all website. ctrl + alt + F

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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()}
})();