Skip to content

Plug-in to force YT quality and collect statistics from 'stats for nerds'

Notifications You must be signed in to change notification settings

justyna3773/YTQuality-Plug-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

YTQuality-Plug-in

Plug-in to force YT quality and collect statistics from 'stats for nerds'

Installation

The most basic method would be to:

  1. Download extension to your PC.
  2. Enter chrome://extensions in your browser
  3. Click 'Load unpacked' and select folder with this extension.

Usage

Extension enables you to define your own scenario for forcing quality changes on YouTube. It can be done in file quality_set.js via function:

setTimeout(setQuality, 70000, "small")

which takes name of the function "setQuality" as argument, the second argument is the total time counting from starting the extension and the last is the preferred quality to be set at that time. Available qualities are: 'highres', 'hd2880', 'hd2160', 'hd1440', 'hd1080', 'hd720', 'large', 'medium', 'small', 'tiny', 'auto'

Extended options

You can use other functions:

setTimeout(pause, 15000, 1000);

it allows you to pause the video at the predefined time (second argument) for a predefined time (third argument).

To collect statistics from stats for nerds use function stats:

stats_collect = setInterval(stats, 1000);

You can set interval for the statistics to be collected, for example every 1000ms.

In function capture you can download statistics to separate .csv files, the second argument is the time at which you download statistics.

setTimeout(capture, 200000)

At the end the extension downloads files speeds.csv, resolutions.csv and times.csv which contain 'Connection speed', 'Current resolution' and times collected.

About

Plug-in to force YT quality and collect statistics from 'stats for nerds'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published