Skip to content

Instantly share code, notes, and snippets.

@cyio
Last active January 9, 2021 02:55
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cyio/835db240ccb0ca8038f5 to your computer and use it in GitHub Desktop.
Save cyio/835db240ccb0ca8038f5 to your computer and use it in GitHub Desktop.
【用户脚本】国内视频网站自动调用HTML5播放器

这是一个油猴脚本,代码引用自zythum/mama2,我(Oaker)只是搬运。

功能:访问国内主流视频网站时,自动调用HTML播放器。暂时只做了初步的网址匹配。

// ==UserScript==
// @name HTML5 Auto Play
// @version 0.1
// @author Oaker
// @namespace
// @description 代码完全是引用的妈妈计划的代码,暂时只做了初步的网址匹配
// @description https://github.com/zythum/mama2
// @grant none
// @include http://*.youku.com/v_show/*
// @include http://*.tudou.com/programs/view/*
// @include http://*.iqiyi.com/video/*
// @include http://*.bilibili.com/video/*
// ==/UserScript==
var url = 'http://zythum.sinaapp.com/mama2/dest/index.js'
if(window === window.top){
(function(s){s=document.body.appendChild(document.createElement('script'));s.src=url+'?ts='+Date.now();s.charset='UTF-8';}())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment