Skip to content

Better filtering and searching for any video website

Notifications You must be signed in to change notification settings

brynnb/any-video-filter

Repository files navigation

any-video-filter

The goal of this extension is to provide better filtering and sorting options for any video website, though the reality is that it will likely only work and be tested on the major video platforms used in the US. It will also have a few other nice-to-have features fix annoying video player behavior. I'm building this extension because many video websites will:

  • Ignore user filtering for a given resolution (e.g. show 2k video when user selected 4k only)
  • Not sort by user selection, or does not provide basic sorting functionality
  • Revert video resolution to lower option (or "auto") resolution on every page load
  • Auto-mutes or un-mutes every video despite earlier selection to unmute/mute player
  • Have annoying stuff like the Youtube Shorts section that keeps re-appearing despite having closed it previously
  • Not provide a "-" operator for search to specifically exclude some results
  • Require navigating through pages to see all results
  • Other annoying stuff I'll document as I come across it

How it works

This extension attempts to find HTML elements that serve as the container for each video thumbnail/info. It does this by looking for common attributes across most any video site, such as the listed resolution or playback time, and seeing if the outer-most parent of each is over a certain size (roughly the size of a video thumbnail on most sites). It adds and sorts all of these HTML elements in an array and then applies filtering/sorting/ other options as defined the extension's settings by the user.

To-do

  • Get an array of all video elements
    • This is probably best done looking at playtime, which is a consistent foramt between most any video website (e.g. 1:23 or 23:01)
    • Can fallback to resolution if timer elements not found

About

Better filtering and searching for any video website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published