Ultrawidify :: settings

General settings
Site options
Shortcuts
About
Enable this extension: Always enables this extension on every site you visit that you didn't blacklist. On whitelisted sites enables this extension only on sites you explicitly whitelisted. Never disables extension on all sites, even on those you whitelisted.
Enable autodetection: Always enables autodetection on every site this extension is enabled for, unless blacklisted. On whitelisted sites enables autodetection only for sites that you explicitly enabled. Never disables autodetection on all sites, even on those you whitelisted.
Video alignment:
Enable autodetection:
Always enables autodetection on every site this extension is enabled for, unless blacklisted. On whitelisted sites enables autodetection only for sites that you explicitly enabled. Never disables autodetection on all sites, even on those you whitelisted.
Checking for aspect ratio changes
When video is playing: ms
When video is paused: ms
On error: ms
All values are in milliseconds. The values determine how often the autodetection script will scan video for changes in aspect ratio under different circumstances. Using shorter intervals can cause lag and increases resource usage. Using longer intervals increases delay between aspect ratio changing and said change being detected.
todo: insert checkbox

In order for autodetection to work, the extension grabs a frame of the video you're watching and takes a look at it. Some websites use DRM, which prevents you from using the HTML5-blessed way of getting a frame from a video. Some browsers offer some features that can be used to circumvent DRM protection. With this option enabled, the extension will use said features to basically do that.

Technical details: tl;dr — only works in Firefox and maybe its forks.
Fallback mode depends on two things:

  1. Attempting to grab a video frame from DRM protected video stream must return an error (Chrome returns black image)
  2. Supports CanvasRenderingContext2D.drawWindow() method, which pretty much only Firefox does

But I thought it's illegal to circumvent DRM?
Courts disagree (at least as far as our use-case is concerned). At this point I'd also throw in some choice words about DRM and everyone using it, but AMO gives me "you're breaking terms of conduct" warnings over use of the word for thing you flush down the toilet, prepended by a word for male cow*, in the code comments.
*'cow' is term for the female

PLEASE NOTE: THIS IS COMPLETELY NON-FUNCTIONAL ATM. YOU CANT SET SITE-SPECIFIC OPTIONS ATM

Keyboard shortcuts

Autodetect aspect ratio
Ctrl + Shift + Alt +
Fit to width
Ctrl + Shift + Alt +
Fit to height
Ctrl + Shift + Alt +
Reset
Ctrl + Shift + Alt +
Force 21:9
Ctrl + Shift + Alt +
Force 2:1 (18:9)
Ctrl + Shift + Alt +
Force 16:9
Ctrl + Shift + Alt +
Cancel
Save
Note: keyboard shortcut conflicts aren't handled by this extension. You must know your shortcuts.
Pro tip: If you don't want to have a keybind for a shortcut, just uncheck all boxes for the action and remove the letter

Ultrawidify - an aspect ratio fixer for youtube (and netflix)

Created by Tamius Han (me). If something is broken, you can shout at me on github (shout nicely, though. Open an issue or bug report or something). If you're curious to see the source code, github's here. If you're looking at this page because you're bored and want to be bored some more, my website's here.

So you want to help?

There's a lot of sites where you can stream videos. A lot of these sites keep failing to handle aspect ratios correctly, which means it would be great if this extension worked elsewhere. Unfortunately, a lot of these sites require me to pony up some money (ayy lmao) OR just flat out block anyone who's not from the US (or their small selection of approved regions). Some sites even do both.

This means I'd need some help. There's two ways. One of them is to use 'inspect element' option of your browser to pick up IDs (or classnames) of certain elements. More detail here(TODO: add a link to quick tutorial).probably wont be necessary

The second one is, well. I won't shy away from donations either. Bonus respect for dank amounts!

Needless to say, I'll be happy and thankful regardless of the way you contribute.

Plans for the future

Support for more sizes. More flexible/customizable UI. Maybe (but absolutely no promises here) a bit more advanced autodetection.

this is the future lol. (at least as far as autodetection goes, keybinds need to make a comeback)

Acknowledgements

This extension uses font Oxygen.

Special thanks to CD Project Red (The Witcher 2), Cyanide Studios (Styx, Of Orcs and Men), and Valve (CS:GO), which made it possible for me to untrigger myself after seeing so many improperly encoded videos.

More or less.

Special one-finger salute to all incompetent people who don't know how to properly encode videos and upload them to youtube (to word it most nicely).

Special thanks to me for making this extension. You're welcome.