Skip to content

Instantly share code, notes, and snippets.

@torholm
Created March 20, 2012 20:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save torholm/2141034 to your computer and use it in GitHub Desktop.
geocitize bookmarklet
javascript:(function(){var scripts=document.getElementsByTagName("script");for(var i=0,l=scripts.length;i<l;i++)scripts[i].textContent="";var styles=document.getElementsByTagName("style");for(var i=0,l=styles.length;i<l;i++)styles[i].textContent="";var links=document.getElementsByTagName("link");for(var i=0,l=links.length;i<l;i++)if(links[i]&&links[i].parentNode)links[i].href="about:blank";var allElements=document.getElementsByTagName("*");for(var i=0,l=allElements.length;i<l;i++){allElements[i].removeAttribute("style");allElements[i].className="";allElements[i].id=""}var headers=document.querySelectorAll("h1, h2, h3, h4, h5, h6");for(var h=0,l=headers.length;h<l;h++){headers[h].innerHTML="<marquee>"+headers[h].innerHTML+"</marquee>";var hr=document.createElement("hr");hr.size=6;headers[h].parentNode.insertBefore(hr,headers[h])}document.body.style.background="url('http://erikgibb.com/blog/wp-content/uploads/2007/09/_images_Stars.gif')";document.body.style.padding="20px 16%";document.body.style.fontFamily="Times New Roman";document.body.style.fontSize="medium";document.body.style.color="#fff";var s=document.createElement("style");s.textContent="a { color: #0f0; } a:active { color: #f00; }";document.body.appendChild(s);var underConstruction=document.createElement("img");underConstruction.src="http://www.bell.k12.ca.us/athletics/football/logo/UnderConstructionGif.gif";document.body.insertBefore(underConstruction,document.body.firstChild)}());void(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment