switch to mobile version on facebook video page

When you open a video in facebook, you're redirected to mobile version so that it can play in HTML5 player

Versione datata 07/04/2015. Vedi la nuova versione l'ultima versione.

Autore
Aleksandar Kostadinov
Valutazione
0 0 0
Versione
0.0.5
Creato il
21/02/2015
Aggiornato il
07/04/2015
Dimensione
904 Byte
Licenza
WTFPL
Applica a

When you open a facebook video page (will not work if you click on a video and it pops-up) you are redirected to the mobile version of the site where video can be played with an HTML5 player. The desktop version of the site only supports Flash videos unfortunately.

So this script is very dumb but quiet reliable. You need to go to the video page like: https://www.facebook.com/video.php?v=10152484650042694 Usually when you see videos on your timeline, you need to click on the "video" link at the top of the post.

Known limitation: When you navigate to a video by right clicking on a link to video page it does not redirect automstically. You need to click browser refresh. If you directly open a video link or open it in a new tab/window, then it works automatically. The issue is that greasemonkey does not trigger script by every URL change. When the web site uses HTML5 functions to change current location, that is not handled by greasemonkey. So it is required some more advanced hooking to the page events that I couldn't figure out in a reasonable time. So I'm giving up, it works good enough for me. Contributions are welcome. See issue 2135 if you'd like to read more details.

长期地址
遇到问题?请前往 GitHub 提 Issues。