Skip to content

Instantly share code, notes, and snippets.

@jerone
Created April 18, 2014 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerone/11039483 to your computer and use it in GitHub Desktop.
Save jerone/11039483 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Horizon TV issue
// @namespace https://github.com/jerone/UserScripts/
// @include *horizon.tv*
// @version 1
// @grant none
// ==/UserScript==
(function HorizonTVFixer() {
if (window !== window.top) return;
console.log("test 1");
if (unsafeWindow.$) {
console.log("test 2", unsafeWindow.$(".channel-guide"));
unsafeWindow.$(".channel-guide").on("loaded", function() {
console.log("test FINAL");
});
console.log("test 3");
}
console.log("test 4");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment