Skip to content

Instantly share code, notes, and snippets.

@aarongustafson
Created September 14, 2014 21:48
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 aarongustafson/2e8d4c73bb4c16b487d3 to your computer and use it in GitHub Desktop.
Save aarongustafson/2e8d4c73bb4c16b487d3 to your computer and use it in GitHub Desktop.
Some junk the ATL airport WiFi injected into HTML documents.
<style type="text/css"> #cbtzaorlrxsk { display:none; color:#111; background:#ffffff; text-align:center; border-bottom: 1px solid #666; z-index:10000; position:fixed; width:100%; top:0; } #uuvohxej { display:none; color:#111; background:#fff; border-right: 1px solid #666; z-index:10000; position:fixed; height:100%; left:0; } #pjewsjkezjyvt { display:none; color:#111; background:#fff; border-left: 1px solid #666; z-index:10000; position:fixed; height:100%; right:0; } #unrhenifgwrgnuj { display:none; color:#111; background:#ffffff; text-align:center; border-top: 1px solid #666; z-index:10000; position:fixed; width:100%; bottom:0; } #drfbaxpb { } </style><script language="JavaScript" type="text/javascript"> var c = 0; function waitForPageRender() { c = c + 1; var t=setTimeout("checkVisible()",500); } function checkVisible() { var footer, header, leftbar, rightbar, content; var display = 'inline'; if(document.all) { footer = document.all.unrhenifgwrgnuj; header = document.all.cbtzaorlrxsk; leftbar = document.all.uuvohxej; rightbar = document.all.pjewsjkezjyvt; content = document.all.drfbaxpb; } else if(document.getElementById) { footer = document.getElementById('unrhenifgwrgnuj'); header = document.getElementById('cbtzaorlrxsk'); leftbar = document.getElementById('uuvohxej'); rightbar = document.getElementById('pjewsjkezjyvt'); content = document.getElementById('drfbaxpb'); } if (content && (content.offsetWidth < 300 || content.offsetHeight <= 480)) { display = 'none'; } if (display == "inline") { if (footer) { footer.style.display = display; content.style.paddingBottom = (footer.offsetHeight + 4) + "px"; } if (header) { header.style.display = display; content.style.paddingTop = (header.offsetHeight + 4) + "px"; } if (leftbar) { leftbar.style.display = display; content.style.paddingLeft = (leftbar.offsetWidth + 4) + "px"; } if (rightbar) { rightbar.style.display = display; content.style.paddingRight = (rightbar.offsetWidth + 4) + "px"; } } if (c < 20) { waitForPageRender(); } }</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment