Skip to content

Instantly share code, notes, and snippets.

@haliphax
Created August 28, 2014 20:05
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 haliphax/cb9c2d513e5a832df2e8 to your computer and use it in GitHub Desktop.
Save haliphax/cb9c2d513e5a832df2e8 to your computer and use it in GitHub Desktop.
TV Guide Tidy (userscript)
// ==UserScript==
// @match http://www.tvguide.com/listings/
// @name TV Guide Tidy
// @description Cleans up the TV Guide listings page
// @version 1.0
// ==/UserScript==
window.onload = function(){
var l = document.querySelector(".listings-w");
var b = document.querySelector("body");
l.parentNode.removeChild(l);
b.innerHTML = "";
b.appendChild(l);
l.setAttribute("style", "position:absolute;top:0;left:0;width:100%;height:100%");
document.querySelector(".gridDiv").setAttribute("style", "height:auto;overflow-x:hidden;border-bottom:solid 1px #DCDDCB");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment