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

目前為 2015-04-07 提交的版本,檢視 最新版本

作者
Aleksandar Kostadinov
評價
0 0 0
版本
0.0.5
建立日期
2015-02-21
更新日期
2015-04-07
尺寸
904 位元組
授權條款
WTFPL
腳本執行於

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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址