From 7f57242d09ea88128d1b62d4ea70cfa8eae7a498 Mon Sep 17 00:00:00 2001 From: SansGuidon Date: Thu, 12 Dec 2024 12:10:25 +0000 Subject: [PATCH] add(bookmarklet) look for HN's comments for current link --- bookmarklets/hackernews.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 bookmarklets/hackernews.js 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;}})();