YOUTUBE FUCK HTML5

just always focus on media player, and keys work correct

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         YOUTUBE FUCK HTML5
// @namespace    http://tampermonkey.net/
// @version      0.8
// @description  just always focus on media player, and keys work correct
// @author       Rederick Asher
// @match        *://*.youtube.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
setInterval(function(){
//document.onkeydown = function (e) {alert();return false;};
//document.onkeyup =  function (e) {return false;};
//  ytp-volume-panel
//	if(document.getElementsByClassName("ytp-chrome-bottom")[0].contains(document.activeElement)){
	if(document.activeElement.tagName!="INPUT" && document.documentElement.scrollTop<10 && window.getSelection()==""){
//	   document.activeElement.style.border="2px solid red";
	   document.getElementById("movie_player").focus();
//	 }else{
//		 alert(document.activeElement.tagName);
	 }
},500);
})();