Skip to content

Instantly share code, notes, and snippets.

@nhjm449
Last active August 19, 2023 05:54
Show Gist options
  • Save nhjm449/0420df2b6bbab843cde52299cf084e96 to your computer and use it in GitHub Desktop.
Save nhjm449/0420df2b6bbab843cde52299cf084e96 to your computer and use it in GitHub Desktop.
// ==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==
(function() {
'use strict';
if (!window.google) {
window.google = {};
}
if (!window.google.ima) {
window.google.ima = {};
}
if (!window.google.ima.ViewMode) {
window.google.ima.ViewMode = {
FULLSCREEN: 'fullscreen',
NORMAL: 'normal'
};
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment