This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YouTube shorts in normal player | |
// @version 1.0.2 | |
// @description This script will redirect YouTube shorts URLs to a normal player | |
// @author andr | |
// @match https://www.youtube.com/shorts/* | |
// @match https://youtube.com/shorts/* | |
// @updateURL https://gist.github.com/florczakraf/5d27bf710f76548191c477bcac1c20af/raw/ytshortsinnormalplayer.user.js | |
// @downloadURL https://gist.github.com/florczakraf/5d27bf710f76548191c477bcac1c20af/raw/ytshortsinnormalplayer.user.js | |
// @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getCjFPS(fps) | |
{ | |
delta = 15; | |
for (i = 0; i < level.cj_fps.size; i++) | |
{ | |
cj_fps = int(level.cj_fps[i]); | |
if (isValueCloseToDesired(fps, cj_fps, delta)) | |
return cj_fps; | |
} |