Skip to content

Instantly share code, notes, and snippets.

@tallykatt
Forked from chrisalbright/index.html
Created July 25, 2016 02:23
Show Gist options
  • Save tallykatt/9502ab2c71045e9d720f4fe0c091a26d to your computer and use it in GitHub Desktop.
Save tallykatt/9502ab2c71045e9d720f4fe0c091a26d to your computer and use it in GitHub Desktop.
Bookmarklets :)
<a href='javascript:(function(){var a=alert,b=Date,c=Number,d="";if("undefined"!=typeof window.getSelection){var e=window.getSelection();if(e.rangeCount){for(var f=document.createElement("div"),g=0,h=e.rangeCount;g<h;++g)f.appendChild(e.getRangeAt(g).cloneContents());d=f.innerHTML}}else"undefined"!=typeof document.selection&&"Text"==document.selection.type&&(d=document.selection.createRange().htmlText);a(new b(c(d)));})();'>Parse Epoch</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment