add(bookmarklet) look for HN's comments for current link

This commit is contained in:
SansGuidon 2024-12-12 12:10:25 +00:00
parent abc4060907
commit 7f57242d09

View File

@ -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;}})();