snippets/bookmarklets/hackernews.js

3 lines
282 B
JavaScript
Raw Permalink Normal View History

//Is the current article debated on hacker news ?
javascript:(function(){if(location.href.indexOf('http')!=0){input=prompt('URL:','http://');if(input!=null){location.href='https://hn.algolia.com/?q=%27+input}}else{location.href=%27https://hn.algolia.com/?q=%27+location.href;}})();