Skip to content

Instantly share code, notes, and snippets.

@booyaa
Created March 14, 2013 12:18
Show Gist options
  • Select an option

  • Save booyaa/5160906 to your computer and use it in GitHub Desktop.

Select an option

Save booyaa/5160906 to your computer and use it in GitHub Desktop.
being nosy and peeking at marco's awesome instapaper bookmarklet
javascript : function iprl5() {
var d = document,
z = d.createElement('scr' + 'ipt'),
b = d.body,
l = d.location;
try {
if (!b)
throw(0);
d.title = '(Saving...) ' + d.title;
z.setAttribute('src', l.protocol + '//www.instapaper.com/j/QtAlSskhaIQL?u=' + encodeURIComponent(l.href) + '&t=' + (new Date().getTime()));
b.appendChild(z);
} catch (e) {
alert('Please wait until the page has loaded.');
}
}
iprl5();
void(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment