Hacker News new | ask | show | jobs
by rayboy1995 3367 days ago
Then 2 hours maintaining and improving it.
1 comments

1) Add this as a bookmarklet called "Inject jQuery". Then click "Inject jQuery"

     javascript:void((function(doc)%7Bif(typeof jQuery%3D%3D%27undefined%27)%7Bvar script_jQuery%3Ddocument.createElement(%27script%27)%3Bscript_jQuery.setAttribute(%27src%27,%27//code.jquery.com/jquery-latest.min.js%27)%3Bdocument.body.appendChild(script_jQuery)%3Bconsole.log(%27jQuery included %5E_%5E%27)%3B%7Delse%7Bconsole.log(%27jQuery already included ...%27)%3B%7D%7D)(document))%3B

2) Type this in console:

    copy(jQuery("a").filter(function(idx,el) {  return jQuery(el).attr('href').indexOf('vote')!==-1; }).map(function(idx,el) { return 'https://news.ycombinator.com/' + jQuery(el).attr('href'); }).toArray())
3) Install this Chrome extension and paste the contents of your clipboard

https://chrome.google.com/webstore/detail/bulk-url-opener-ex...