Skip to content

ygjose/Sci_hub-javascript-bookmarklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 

Repository files navigation

Sci-Hub javascript bookmarklet

(Illustration by Natasha Remarchuk from Icons8

This javascript completely owes to @Deleetdk's code. Since the sci-hub website redirected by the original code is no longer usable. I updated it here. Besides, here I try to make the steps clearer, even if you have zero knowledge about javascript and creation of bookmark on a browser.

Steps

(Illustration by Icons 8 from Icons8

For Chromium-based browser:

1️⃣ Hover your mouse over the bookmark bar of your navigator;

2️⃣ Right click in blank area of the bookmark bar;

3️⃣ Find the option "create webpage (G)" (ps. depending on your navigator, naming could be slightly different);

4️⃣ Now you can add your own bookmarklet to the pop-up window;

5️⃣ Name: (let's say) Sci-hub Passkey; URL: copy and paste the javascript;

6️⃣ Voila! You will be seeing a new bookmarklet on your bookmark bar. That means you successfully created your sci-hub passkey.

For Mac Safari users:

1️⃣ In the Safari app on your Mac, choose View > Show Favorites Bar (This step allows you to show bookmarklet below url address bar instead of side bar. So every time you open a new tab, the bookmarklet still displays below the url bar)

2️⃣ In the Safari app on your Mac, choose Bookmark > Edit bookmark

3️⃣ New folder, rename it (e.g. Sci-Hub Passkey) and paste the Javascript code into the address box.

javascript:location.href = location.origin.replace(/^https/, 'http') + '.sci-hub.se' + location.pathname + location.search

javascript: (function(){ window.open( 'https://sci-hub.ee/' + location.href,'_blank')})();

Now, how to

(Illustration by Olha Khomich from Icons8

Easy peasy! You just need to go to the webpage of that paper (say, an article from Elsevier) that you want to download. And in that very page there is usually a DOI. Now, when you click on the newly created bookmarklet, it should be able to automatically identify the DOI and redirect you to PDF download page of Sci-Hub.

Why

(Illustration by Natasha Remarchuk from Icons8)

I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it. (Bill Gates)

Why should you use Sci-Hub Passkey instead of the conventional way you do? Well, simply because you can save the time of

✅ Copying DOI

✅ Opening Sci-Hub webpage

✅ Pasting DOI

You may think this only cost you like two or three seconds. But remember that quantity changes lead to quality changes. If you are a frequent user of Sci-Hub, this trick will save you a lot of time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published