Skip to content

Instantly share code, notes, and snippets.

@shmup
Last active March 8, 2022 19:06
Show Gist options
  • Save shmup/76bf4395b60bf765e75663ab07ee5340 to your computer and use it in GitHub Desktop.
Save shmup/76bf4395b60bf765e75663ab07ee5340 to your computer and use it in GitHub Desktop.
Reverses the order of the posts in an Ars Technica Liveblog. Useful when reading _after the fact_
var posts = document.getElementById("ars-liveblog-posts");

var i = posts.childNodes.length;

while (i--)
  posts.appendChild(posts.childNodes[i])

Minified

javascript:for(var posts=document.getElementById("ars-liveblog-posts"),i=posts.childNodes.length;i--;)posts.appendChild(posts.childNodes[i]);
  1. go to a live blog: http://live.arstechnica.com/liveblog-how-spacex-plans-to-colonize-mars/
  2. make sure page is completely loaded
  3. copy and paste the minified line into your url bar, but it will strip the beginning "javascript:", so add it manually
  4. to not repeat step 3, you can create a bookmarklet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment