Skip to content

Instantly share code, notes, and snippets.

@mygoare
Last active December 2, 2017 08:06
Show Gist options
  • Save mygoare/10d7bbc65abdf13ceffa777fcd4aeefd to your computer and use it in GitHub Desktop.
Save mygoare/10d7bbc65abdf13ceffa777fcd4aeefd to your computer and use it in GitHub Desktop.
ad-vip-free-youku
{
"manifest_version": 2,
"name": "Ad Free Youku",
"description": "Watch Youku like a pro",
"version": "1.0",
"content_scripts": [
{
"matches": ["http://v.youku.com/*"],
"run_at": "document_end",
"js": ["youku.js"]
}
]
}
var vodId = window.location.pathname.match(/id_(.*)\.html/)[1];
// force use youku html5 video player
var html5Src = "http://player.youku.com/embed/"+vodId;
// third party player
var vgoodapiSrc = 'http://www.662820.com/xnflv/index.php?url='+location.href
document.getElementById('playerBox')
.innerHTML = '<iframe style="margin-bottom: 43px" src="'+vgoodapiSrc+'" frameborder="0" allowfullscreen="" width="100%" height="460"></iframe>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment