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.

Revisions

  1. @chrisalbright chrisalbright revised this gist Feb 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion index.html
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    <a href='javascript:(function(){function getSelectionHtml(){var html="";if(typeof window.getSelection!="undefined"){var sel=window.getSelection();if(sel.rangeCount){var container=document.createElement("div");for(var i=0,len=sel.rangeCount;i<len;++i){container.appendChild(sel.getRangeAt(i).cloneContents());}html=container.innerHTML;}}else if(typeof document.selection!="undefined"){if(document.selection.type=="Text"){html=document.selection.createRange().htmlText;}}return html;}alert(new Date(Number(getSelectionHtml())));})();'>Parse Epoch</a>
    <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>
  2. @chrisalbright chrisalbright revised this gist Jan 30, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion index.html
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    <a href="javascript:(function(){function getSelectionHtml(){var html="";if(typeof window.getSelection!="undefined"){var sel=window.getSelection();if(sel.rangeCount){var container=document.createElement("div");for(var i=0,len=sel.rangeCount;i<len;++i){container.appendChild(sel.getRangeAt(i).cloneContents());}html=container.innerHTML;}}else if(typeof document.selection!="undefined"){if(document.selection.type=="Text"){html=document.selection.createRange().htmlText;}}return html;}alert(new Date(Number(getSelectionHtml())));})();>Parse Epoch</a>
    <a href='javascript:(function(){function getSelectionHtml(){var html="";if(typeof window.getSelection!="undefined"){var sel=window.getSelection();if(sel.rangeCount){var container=document.createElement("div");for(var i=0,len=sel.rangeCount;i<len;++i){container.appendChild(sel.getRangeAt(i).cloneContents());}html=container.innerHTML;}}else if(typeof document.selection!="undefined"){if(document.selection.type=="Text"){html=document.selection.createRange().htmlText;}}return html;}alert(new Date(Number(getSelectionHtml())));})();'>Parse Epoch</a>
  3. @chrisalbright chrisalbright revised this gist Jan 30, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion index.html
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    <a href="Parse Epoch">javascript:(function(){function getSelectionHtml(){var html="";if(typeof window.getSelection!="undefined"){var sel=window.getSelection();if(sel.rangeCount){var container=document.createElement("div");for(var i=0,len=sel.rangeCount;i<len;++i){container.appendChild(sel.getRangeAt(i).cloneContents());}html=container.innerHTML;}}else if(typeof document.selection!="undefined"){if(document.selection.type=="Text"){html=document.selection.createRange().htmlText;}}return html;}alert(new Date(Number(getSelectionHtml())));})();</a>
    <a href="javascript:(function(){function getSelectionHtml(){var html="";if(typeof window.getSelection!="undefined"){var sel=window.getSelection();if(sel.rangeCount){var container=document.createElement("div");for(var i=0,len=sel.rangeCount;i<len;++i){container.appendChild(sel.getRangeAt(i).cloneContents());}html=container.innerHTML;}}else if(typeof document.selection!="undefined"){if(document.selection.type=="Text"){html=document.selection.createRange().htmlText;}}return html;}alert(new Date(Number(getSelectionHtml())));})();>Parse Epoch</a>
  4. @chrisalbright chrisalbright renamed this gist Jan 30, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. @chrisalbright chrisalbright created this gist Jan 30, 2014.
    1 change: 1 addition & 0 deletions bookmarklets.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <a href="Parse Epoch">javascript:(function(){function getSelectionHtml(){var html="";if(typeof window.getSelection!="undefined"){var sel=window.getSelection();if(sel.rangeCount){var container=document.createElement("div");for(var i=0,len=sel.rangeCount;i<len;++i){container.appendChild(sel.getRangeAt(i).cloneContents());}html=container.innerHTML;}}else if(typeof document.selection!="undefined"){if(document.selection.type=="Text"){html=document.selection.createRange().htmlText;}}return html;}alert(new Date(Number(getSelectionHtml())));})();</a>