Skip to content

Instantly share code, notes, and snippets.

@undirectlookable
Created November 22, 2016 02:32
Show Gist options
  • Save undirectlookable/a5285c66198059bddd85dda76243cd04 to your computer and use it in GitHub Desktop.
Save undirectlookable/a5285c66198059bddd85dda76243cd04 to your computer and use it in GitHub Desktop.
在 Windows 系统中使用 HTML5 版的腾讯视频播放器 (userscript)
// ==UserScript==
// @name QQVideo HTML5
// @namespace http://v.qq.com/
// @version 1.0
// @description 在 Windows 系统中使用 HTML5 版的腾讯视频播放器
// @author Anonymous
// @match *://v.qq.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
var win;
try { win = unsafeWindow; } catch (e) { win = window; }
win.navigator.__defineGetter__('userAgent', function () {
return 'Macintosh mac os x 10.12';
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment