Skip to content

Instantly share code, notes, and snippets.

@rubenv
Created October 3, 2014 13:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenv/0cf8fa2c2506b4150b2b to your computer and use it in GitHub Desktop.
Save rubenv/0cf8fa2c2506b4150b2b to your computer and use it in GitHub Desktop.
Fix Yelo.be
(function () {
document.addEventListener('DOMContentLoaded', function () {
var script = document.createElement("script");
script.text = "window.Silverlight = { isInstalled: function() { return true; }, createObject: function() {}, };";
document.head.appendChild(script);
}, false);
})();
{
"name": "Fix Yelo.be",
"version": "0.0.1",
"description": "Works around the idiotic decision that plain HTML pages require Silverlight nowadays.",
"manifest_version": 2,
"permissions": [
"http://yelotv.be/"
],
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["fixyelo.js"],
"run_at": "document_start"
}
],
"minimum_chrome_version": "21.0.1180.57"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment