Speed up video

Speed up video youtube, facebook

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        Speed up video
// @namespace   Phạm Doãn Hiếu ||| FB: https://www.facebook.com/100010921898385 || [email protected]
// @author      DHieu
// @copyright   DHieu
// @homepage    https://htstar.online
// @supportURL  
// @icon        https://i.imgur.com/6SaS8VR.png
// @description Speed up video youtube, facebook
// @contributionURL 
// @grant       GM_getValue
// @grant       GM_setValue
// @grant       GM_openInTab
// @grant       GM_registerMenuCommand
// @include     http://*
// @include     https://*
// @version     1.0.1
// @change-log  Update fb single video
// @run-at      document-end
// ==/UserScript==

function speed_up(){	
  let videoArr = document.querySelectorAll('video');
  for(let i=0; i<videoArr.length; i++)
    {
	videoArr[i].playbackRate=3;
    }

}

var i = 1;
run();
function run () {
speed_up();
    setTimeout(function () {
      speed_up();
      console.log("chay speed up lan" +i)
        i++;
        if (i <2) {
            run();
        }
    }, 5000)
}