Live data from Hacker News

Sci Hub Injector

github.com

41–45 of 45 posts

Re: Sci Hub Injector

#42

There’s also this [0] userscript that does essentially the same thing but doesn’t need a separate extension assuming you already use a userscript manager. It also supports far more domains from the looks of it. 0: https://greasyfork.org/en/scripts/370246-sci-hub-button

Does this script work for you? I installed in FF and tried on 3 sample links and none of them produced the extra link :/ Icon in Greasemonkey shows that scripts recognized URL and was running on each site

Yeah I've been using it for at least 6 months and it's been great. Running on Chrome w/Violetmonkey.

As an example I get the icon in the top left of the page for this random IEEE paper: https://ieeexplore.ieee.org/document/6025669

Re: Sci Hub Injector

#43
post #39

BTW did you know that Firefox supports keywords for bookmarks OOTB? You can set up a keyword e.g. "shb" for (code from above) javascript:window.location='http://sci-hub.se/'+window.location and you can run it writing "shb" in the address bar. No need for bookmarklets. Or how do y'all use boorkmarklets? E.g. on chrome? Is your boorkmark bar always visible?

Being green here means I must ask (ask me about poetry!):

What do I actually write in the address bar?

Re: Sci Hub Injector

#45
post #43
post #39

BTW did you know that Firefox supports keywords for bookmarks OOTB? You can set up a keyword e.g. "shb" for (code from above) javascript:window.location='http://sci-hub.se/'+window.location and you can run it writing "shb" in the address bar. No need for bookmarklets. Or how do y'all use boorkmarklets? E.g. on chrome? Is your boorkmark bar always visible?

Being green here means I must ask (ask me about poetry!): What do I actually write in the address bar?

In firefox,

      1. Create a temporary bookmark (e.g. by pressing ctrl + D, or clicking or the star in the address bar)
      2. Open your bookmarks (e.g open the bookmark bar, or press ctrl + B)
      3. Right click on the bookmark, and choose "edit bookmark" (or right click, then press "i")
      4. Fill the "URL" field with 

            javascript:window.location='http://sci-hub.se/'+window.location

      5. Fill the "keyword" field with "shb" (or whatever you want)
That's it, whenever you write "shb" in the address bar on a page and hit ENTER, it will navigate you to

      http://sci-hub.se/ + window.location

.
Post reply on HN