Skip to content

Instantly share code, notes, and snippets.

@devinhalladay
Created May 19, 2016 00:58
Show Gist options
  • Select an option

  • Save devinhalladay/33a0fe304406261dde78a817c39517aa to your computer and use it in GitHub Desktop.

Select an option

Save devinhalladay/33a0fe304406261dde78a817c39517aa to your computer and use it in GitHub Desktop.
(function(){function r(){(window.instaUnread=function(){if(window.location!=window.ipURL){window.location=window.ipURL;alert("InstaUnread needs to be on your Instapaper Unread page. Redirecting you now.\n\nPlease press the bookmarklet again after the page loads.")}else{var e="(Counting...) ";if($("#count").length!=0)$("#count").html(e);else{$("#unread_nav").append(" "+e+"")}i(1,0)}})()}function i(e,t){$.ajax({url:"/u/"+e,success:function(n,r,s){var o=s.responseText.split('
').length-1;t+=o;if(o==0)$("#count").html("("+t+") ");else i(++e,t)},dataType:"html"})}var e="1.5";if(window.jQuery===undefined||window.jQuery.fn.jquery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment