Skip to content

Commit

Permalink
updated into version 1.3. Now user can get the paper they want just b…
Browse files Browse the repository at this point in the history
…y clicking the extension button
  • Loading branch information
Arwan Khoiruddin committed Jul 2, 2017
1 parent f087ae3 commit b8f4d1f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Binary file added ._scihubsearch.crx
Binary file not shown.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ searchSciHub = function(word){
chrome.tabs.update({url: "http://sci-hub.cc/" + query});
};

chrome.browserAction.onClicked.addListener(function(tab) {
var tabURL = tab.url;
chrome.tabs.update({url: "http://sci-hub.cc/" + tabURL});
});

chrome.contextMenus.create({
title: "Search DOI in sci-hub",
Expand Down
14 changes: 10 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@
"name": "Find DOI in sci-hub",
"short_name": "scihubsearch",
"description": "Find scientific article from sci-hub by selecting the DOI of the paper you want then right click this extension",
"version": "1.2",
"version": "1.3",
"manifest_version": 2,
"minimum_chrome_version": "38",
"permissions": [
"contextMenus",
"tabs"],
"contextMenus",
"tabs"
],
"icons": {
"16": "icons/scihub16.png",
"48": "icons/scihub48.png",
"128": "icons/scihub128.png"
},
"browser_action": {
"default_icon": "icons/scihub16.png",
"scripts": ["main.js"]
},
"background": {
"page": "background.html"
"page": "background.html"
}
}
Binary file modified scihubsearch.crx
Binary file not shown.

0 comments on commit b8f4d1f

Please sign in to comment.