Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Sci-Hub Scholar – Firefox Extension Update v1.2 (addons.mozilla.org)
27 points by djfdat on March 12, 2022 | hide | past | favorite | 4 comments
Sci-Hub Scholar is a browser extension that takes Google Scholar search results and tries to point them at Sci-Hub, where they can be read freely. The main selling point for this extension versus others is that it works right on the results page, rather than the article page at the pay-walled website.

One night, I decided I was going to do some research, only to find every Google Scholar Result behind a paywall. Trying to find the link on Sci-Hub, I ran into a bunch of issues:

* https://whereisscihub.now.sh/ is down

* Annoying to copy/paste title to Sci-Hub

* Didn't want to be presented with another set of search results from my search results.

I've seen some other Sci-Hub extensions, most notably https://openaccessbutton.org/. However, most of these require you to go to the article page, then click the extension's button to finally be redirected. I thought I could do better.

I recently did an update pass to update with some features others have added and requested.

New Features for v1.2.0:

* Added support for all Google Subdomains. You can now use this extension on Google Scholar websites for any country!

* DOI is now listed next to the article title for articles where the DOI was found

* If the title's URL was updated to Sci-Hub, the Icon to the left will now point to the original article.

* More accurate DOI lookups!

Issues:

* Currently, I can't validate that the article exists on Sci-Hub, due to the way Firefox handles website permissions for extensions. I do not want to request permissions for all domains, but since the Sci-Hub domain can change, this is difficult.

* I'm afraid to port this to Chrome, because I don't want to lose my Google Account over something like this.

* It's a hassle to support manifest v2 for Firefox and manifest v3 for chrome. Haven't found a good workflow setup for developing for both browser platforms at the same time, from one codebase.

I welcome any feedback or recommendations on the issues. I also have planned features, and am open to contributions! The extension is all open source and can be found at: https://github.com/djfdat/sci-hub-scholar

I hope this helps some people get access to the information they need!



I was also hoping to get some insight from WebExtension developers here! Two main questions:

1. How do you handle developing a cross browser extension these days? Firefox only supports manifest v2, Chrome only supports manifest v3. I was just running webext.

2. Have people had experience posting somewhat controversial extensions such as this to the Chrome Web Store? I'm afraid to post this using my main account, since so much of my digital life is currently tied to my gmail address.


this is probably one of the few niche firefox only browser extensions because "why bother with firefox, it has too little market share" is a chicken and egg problem that is exacerbated by these chrome only extension developers whose work further cements the monopoly of chrome/chromium.

good luck for your extension



Woo, glad that's working again.

Although I am curious to exactly what's going on there now...

Their first URL is sci-hub.do, but actually directs to oa.mg Their second URL is sci-hub.org, but it actually directs to sci.hubg.org

There seems to also be something weird with the URLs in the backup servers. The fact that this doesn't reflect the Wikipedia page or the backup servers listed on the "main" URL, makes me hesitant to support this in the future.

The extension currently uses sci-hub.se, but also does a lookup on wikipedia to see what the current URL is. If this has issues in the future, I may revisit my approach.

Thanks for the heads up!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: