├── README.md ├── sci-hub.bookmark.js └── sci-hub_newtab.bookmark.js /README.md: -------------------------------------------------------------------------------- 1 | # scihub_bookmark 2 | Javascript bookmarklet for Sci-Hub 3 | 4 | The Javascript code will insert .sci-hub.io into the URL of your current tab and reload the page. 5 | 6 | To use, create a new bookmark and paste the Javascript code into the address box. If you do not have access to a paper, clicking the bookmark will reload the page using Sci-Hub. 7 | -------------------------------------------------------------------------------- /sci-hub.bookmark.js: -------------------------------------------------------------------------------- 1 | javascript:location.href = location.origin.replace(/^https/, 'http') + '.sci-hub.tw' + location.pathname + location.search 2 | -------------------------------------------------------------------------------- /sci-hub_newtab.bookmark.js: -------------------------------------------------------------------------------- 1 | javascript: (function(){ window.open(location.origin.replace%28/%5Ehttps/, 'http') + '.sci-hub.tw' + location.pathname + location.search, '_blank')})(); 2 | --------------------------------------------------------------------------------