📜 ⬆️ ⬇️

Watching video without leaving the site

image Everyone has long understood that video on the Internet is a necessary thing. But many forums, social networks, including habrahabr do not always allow to embed a video in a comment or topic. Fortunately, only in comments Habrahabr does not allow video to be embedded, and on most forums, even in the subject of the video is not embedded. And this script will make your life online a bit easier (it works on all sites, not just on habrahhabr).

The script replaces the processing of links to video sites: youtube.com, vimeo.com and twitvid.com in such a way that by clicking on the link (video), a video player will be embedded directly in the page. It turns out that you do not need to leave the site to watch the video! Clicked on the link, looked and closed.


But as usual I will demonstrate the script's work with a screenshot. Here is a regular comment with a link to youtube. Click on the link and:

')
Yes, such scripts are no longer know-how, but as usual, something always does not fit in other people's scripts. The mandatory closing of the player (open here at least 100 - the main thing is to keep the browser alive), then some video hosting systems do not support, then any other unnecessary things. In the end, and wrote his script. By the way, the player window can be done more at any time (at the bottom of the link after the Video size).

The script is so simple that it probably will work in IE8 with the Trixie addon. I use new versions of players that support the iPad and iPhone, but I don’t know how to connect there (in a mobile Safari) with a connection.

What you need to do to put this script:
1. If your browser is Google Chrome - then almost nothing. Just click on this link and agree to the installation (if userscripts does not work, then here is a replacement link ). I remind bit.ly because habrahabr does not like links with the word script.
2. If you have Mozilla Firefox. First you have to install the GreaseMoneky extension and then click on this link .
3. If you have Opera then read here .
4. If you have a browser Safari, then read here or here .

If you have any comments or suggestions - write.

Source: https://habr.com/ru/post/116311/


All Articles