- 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.