This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Crunchyroll MED-4005 Fix | |
// @version 1.0 | |
// @description Fixes the Crunchyroll MED-4005 error caused by the player reacting poorly to the absence of the IMA SDK. | |
// @author nhjm449 | |
// @match https://static.crunchyroll.com/vilos-v2/web/vilos/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_GET['v']) && $_GET['v'] !== '') { | |
header('Content-Type: text/javascript'); | |
if ($_GET['v'] === 'v0.5.41-custom') { | |
$script = file_get_contents('hls-v0.5.41-custom.js'); | |
} else { | |
$script = file_get_contents('https://github.com/dailymotion/hls.js/raw/' . urlencode($_GET['v']) . '/dist/hls.js'); |