您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
When you open a video in facebook, you're redirected to mobile version so that it can play in HTML5 player
当前为
/* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://www.wtfpl.net/ for more details. */ // ==UserScript== // @name switch to mobile version on facebook video page // @namespace http://rboci.blogspot.com/ // @description When you open a video in facebook, you're redirected to mobile version so that it can play in HTML5 player // @match https://www.facebook.com/* // @run-at document-start // @version 0.0.6 // @license WTFPL // @resource LICENSE https://raw.github.com/LouCypher/userscripts/master/licenses/WTFPL/LICENSE.txt // ==/UserScript== // match two types of URLs: // https://www.facebook.com/mavikocaelicomtr/videos/836587179720780/ // https://www.facebook.com/video.php?v=10152484650042694 var videoURLRe = /www.facebook.com\/(?:video\.php\?v=|[^\/]+\/videos\/).+/; if (videoURLRe.test(content.document.location.href)) { var target = content.document.location.href.replace("www.facebook", "m.facebook"); window.location.replace(target) }