YOUTUBE FUCK HTML5

just always focus on media player, and keys work correct

目前為 2017-12-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         YOUTUBE FUCK HTML5
// @namespace    http://tampermonkey.net/
// @version      0.5
// @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(){
//  ytp-volume-panel
	if(document.getElementsByClassName("ytp-chrome-bottom")[0].contains(document.activeElement)){
//	   document.activeElement.style.border="2px solid red";
	   document.getElementById("movie_player").focus();
	 }
},500);
})();