Advertisement
Guest User

2ch thread sort

a guest
Jun 11th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:(function() { var threads = document.getElementById('threads'); var key = function(i) { return parseInt(threads.children[i].children[0].id.split('_')[1]); }; for (var i=1, l=threads.children.length; i<l; ++i) { for (var j=i, k=key(i); (j>0) && (k>key(j-1)); --j); threads.insertBefore(threads.children[i], threads.children[j]); }})()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement