├── README.md
├── extension.js
├── icons
├── 128x128.png
├── 16x16.png
└── 48x48.png
├── manifest.json
└── scihub.jpg
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IEEE Xplore Unlocker
6 |
7 |
8 |
9 |
10 |
11 |
12 | **A browser extension to get locked content from ieee xplore using sci-hub.**
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | IEEE Xplore Unlocker uses the doi from the Xplore page to insert a button with a link to the corresponding sci-hub page.
21 |
22 | ## Manual Installation
23 |
24 | ### Chromium
25 |
26 | - Download and unzip `ieee-xplore-unlocker.zip` ([latest release desirable](https://github.com/Roshan-R/ieee-xplore-unlocker/releases)).
27 | - Rename the unzipped directory to `ieee-xplore-unlocker`
28 | - When you later update manually, replace the **content** of the `ieee-xplore-unlocker` folder with the **content** of the latest zipped version.
29 | - This will ensure that all the extension settings will be preserved
30 | - As long as the extension loads **from same folder path from which it was originally installed**, all your settings will be preserved.
31 | - Go to chromium/chrome *Extensions*.
32 | - Click to check *Developer mode*.
33 | - Click *Load unpacked extension...*.
34 | - In the file selector dialog:
35 | - Select the directory `ieee-xplore-unlocker` which was created above.
36 | - Click *Open*.
37 |
38 | The extension will now be available in your chromium/chromium-based browser.
39 | Remember that you have to update manually also.
40 |
41 | ## Credits
42 | Installation steps taken from [uBlock Origin's Readme](https://github.com/gorhill/uBlock/tree/master/dist#install).
43 |
--------------------------------------------------------------------------------
/extension.js:
--------------------------------------------------------------------------------
1 | let container = document.querySelector('.u-mb-1.u-mt-05.btn-container')
2 | let doi_container = document.querySelector('.u-pb-1.stats-document-abstract-doi')
3 | let doi = doi_container.children[1].innerHTML
4 |
5 | let scihub_url = `https://sci-hub.se/${doi}`
6 |
7 | let scihub_btn = document.querySelector("#sci-hub")
8 | if (scihub_btn) {
9 | scihub_btn.remove()
10 | }
11 |
12 | let parser = new DOMParser();
13 | let btn = parser.parseFromString(
14 | `
15 |
18 | `
19 | , 'text/html').body.childNodes[0]
20 |
21 | container.appendChild(btn);
22 |
--------------------------------------------------------------------------------
/icons/128x128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Roshan-R/ieee-xplore-unlocker/27366ddeee063abb6e2acecf06d3b9f8af22c113/icons/128x128.png
--------------------------------------------------------------------------------
/icons/16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Roshan-R/ieee-xplore-unlocker/27366ddeee063abb6e2acecf06d3b9f8af22c113/icons/16x16.png
--------------------------------------------------------------------------------
/icons/48x48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Roshan-R/ieee-xplore-unlocker/27366ddeee063abb6e2acecf06d3b9f8af22c113/icons/48x48.png
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "manifest_version": 2,
3 | "name": "IEEE Xplore Unlocker",
4 | "description": "A browser extension to get locked content from ieee xplore using sci-hub",
5 | "version": "1.0",
6 | "browser_action": {
7 | "default_icon": "scihub.jpg"
8 | },
9 | "icons": {
10 | "16": "icons/16x16.png",
11 | "48": "icons/48x48.png",
12 | "128": "icons/128x128.png"
13 | },
14 | "content_scripts": [
15 | {
16 | "matches": [
17 | "https://ieeexplore.ieee.org/document/*"
18 | ],
19 | "js": [
20 | "extension.js"
21 | ]
22 | }
23 | ]
24 | }
--------------------------------------------------------------------------------
/scihub.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Roshan-R/ieee-xplore-unlocker/27366ddeee063abb6e2acecf06d3b9f8af22c113/scihub.jpg
--------------------------------------------------------------------------------