diff --git a/bookmarklets/hackernews.js b/bookmarklets/hackernews.js new file mode 100644 index 0000000..d3ef4fd --- /dev/null +++ b/bookmarklets/hackernews.js @@ -0,0 +1,2 @@ +//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;}})();