Workaround for the white page bug on Bad Dragon.
As of
// ==UserScript==
// @name Bad Dragon White Page Fix
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Workaround for the white page bug on Bad Dragon.
// @author tikutaro
// @match *://bad-dragon.com/*
// @icon https://www.google.com/s2/favicons?domain=bad-dragon.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
const head = document.getElementsByTagName('head')[0];
const exp = /.*\:\/\/.*\.cloudfront\.net\/media-.*\.js/;
for (const child of head.getElementsByTagName('script')) {
if (exp.test(child.src)) {
const tag = document.createElement('script');
tag.setAttribute('type', 'text/javascript');
tag.setAttribute('src', child.src);
head.appendChild(tag);
}
}
})();