- Add a bookmark in your browser toolbar
- Name: something memorable
- URL: paste the code snippet
- On a paper's publisher page, or another page with the content's DOI, click on the bookmarklet.
If a DOI is found, your window will be sent to the corresponding sci-hub or libgen result page, respectively.
If no DOI is found, you won't go anywhere. An alert will tell you of the failure.
javascript:(function() { var body = document.documentElement.innerHTML; var re = /\b10\.[^\s\%"#\?,']+\/[^\s\%"#\?,']+/g; var matches = body.match(re); if (matches === null) { alert("DOI not found"); return undefined; } doi = matches[0]; window.location = "http://sci-hub.tw/" + doi; })();
javascript:(function() { var body = document.documentElement.innerHTML; var re = /\b10\.[^\s\%"#\?,']+\/[^\s\%"#\?,']+/g; var matches = body.match(re); if (matches === null) { alert("DOI not found"); return undefined; } doi = matches[0]; window.location = "http://libgen.io/scimag/index.php?s=" + doi; })();
WIP: will add in comprehensive tabled data on IPs, domains, types of mirrors, completeness of mirrors