Skip to content

Instantly share code, notes, and snippets.

@sillygwailo
Last active August 27, 2023 18:47
Show Gist options
  • Save sillygwailo/8871248 to your computer and use it in GitHub Desktop.
Save sillygwailo/8871248 to your computer and use it in GitHub Desktop.
Random Instapaper Article Bookmarklet
// based on http://avoidtheinevitable.wordpress.com/2013/01/21/instapaper-random-article-bookmarklet/ updated to
// Instapaper's latest design. This only picks a random article from the first page of Instapaper items
javascript:var l=document.querySelectorAll(".article_item .article_inner_item .host a");l[Math.floor(1+Math.random()*l.length)].click();
@ajorgensen
Copy link

ajorgensen commented Jun 29, 2016

If you want to view it in instapaper's native view you can change it to

javascript:var l=document.querySelectorAll(".article_title");l[Math.floor(1+Math.random()*l.length)].click();

@alexpizarroj
Copy link

@ajorgensen Thanks for this! It's still working on 2023. 🙂

@ajorgensen
Copy link

❤️ glad to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment