Skip to content

Instantly share code, notes, and snippets.

@knowlet
Created June 12, 2019 07:23
Show Gist options
  • Save knowlet/fa979af3134272ce53cca4ac5d1a514a to your computer and use it in GitHub Desktop.
Save knowlet/fa979af3134272ce53cca4ac5d1a514a to your computer and use it in GitHub Desktop.
就是不想看 VAST.
// ==UserScript==
// @name 研伝說動漫看看
// @namespace https://knowlet.me
// @version 0.1
// @description try to take over the world!
// @author knowlet
// @match https://www.c4story.com/*
// @run-at document-end
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
const f = document.querySelector('iframe')
const videioid = f.src.match(/videoid=(\w+)/)[1]
f.outerHTML = `<video controls style="width: 100%;">
<source src="https://media-server2.c4story.com/${videioid}.mp4" type="video/mp4" />
</video>`
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment