Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tophf/yt-hover

Preview video while hovering mouse over a YouTube link on any website
https://github.com/tophf/yt-hover

chrome-extension youtube

Last synced: 2 days ago
JSON representation

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

Awesome Lists containing this project

README

        

### A fork of [schomery/youtube-hover](https://github.com/schomery/youtube-hover/)

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](https://i.imgur.com/hqUYQrx.png)

### 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](https://chromeenterprise.google/policies/?policy=AutoplayAllowed) (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](https://i.imgur.com/mZE2lYi.png)