Skip to content
/ yt-hover Public

Preview video while hovering mouse over a YouTube link on any website

Notifications You must be signed in to change notification settings

tophf/yt-hover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fully reworked internally with a couple of minor features added.

  • Draggable and resizable preview. Click-and-drag the border or the corners to move/resize. The position/size is changed only for this preview. To set the global size, open the options UI from the toolbar icon menu.

  • Mouse movement threshold. Helps avoiding unwanted activation while you interact with the page, link, or a thumbnail. Hold the mouse still for the configured duration to activate the preview.

  • Shift key skips activation: press and hold the key, hover a link, release the key (or keep holding it to hover a bunch of links without activating).

  • Native browser player (up to 720p when audio is present)

options

Autoplay in Chrome

Chrome has its own allegedly smart heuristics to determine when it can autoplay videos so you may need to give it some time to learn from your behavior. It didn't work for me though so I ended up force-enabling it by manually adding a local policy (note that in Chromium-based browsers the registry path is usually Chromium instead of Google\Chrome).

Extension permissions

  • Optional history when you enable "Add previewed links to the browser history" in the extension's options.
  • All URLs for the content script that automatically detects youtube link under the mouse cursor.

How to limit the site permissions

Chrome allows you to easily limit the extension so it can access only a few sites:

permissions

  • right-click the extension icon in the toolbar (or browser menu) and click "Manage" - it'll open chrome://extensions details page for this extension

  • click "On specific sites" and enter the URL you want to allow

  • to add more sites either a) click "Add a new page" and type/paste the URL or b) simply visit a page and click the extension icon, then confirm the site name in "This can read and change site data" sub-menu:

    permissions-add

About

Preview video while hovering mouse over a YouTube link on any website

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published