Skip to content

Instantly share code, notes, and snippets.

// ==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==
@nhjm449
nhjm449 / dist-proxy.php
Created July 18, 2016 23:31
hls.js demo page JavaScript proxy
<?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');