您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds Sci-Hub buttons to Google Scholar results and handles DOI links
当前为
# Google Scholar Sci-Hub and LibGen Access
A simple userscript that enhances academic paper access by adding Sci-Hub and LibGen links to Google Scholar results and automatically redirecting DOI links to Sci-Hub.
## Features
- Adds Sci-Hub and LibGen links to Google Scholar search results
- Automatically redirects DOI links to Sci-Hub
- Works with Google Scholar pagination
- No visual modifications to the original pages
- Updates automatically when new content loads
## Installation
1. Install a userscript manager:
- [Tampermonkey](https://www.tampermonkey.net/) (recommended)
- [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/)
- [Violentmonkey](https://violentmonkey.github.io/)
2. Install the script:
- Click the "Install" button on this script's page, or
- Create a new script in your userscript manager and copy-paste the code
## Usage
Once installed, the script works automatically:
- On Google Scholar:
- Each search result will have "Sci-Hub" and "LibGen" links
- Click "Sci-Hub" to access the paper through Sci-Hub
- Click "LibGen" to search for the paper on Library Genesis
- On any webpage:
- Clicking DOI links (starting with `http://dx.doi.org/` or `https://doi.org/`) will redirect to the Sci-Hub version
## Configuration
The script uses these default URLs:
- Sci-Hub: `https://sci-hub.ru/`
- LibGen: `https://libgen.li/index.php?req=`
To change these, modify the `SCIHUB_URL` and `LIBGEN_URL` constants at the top of the script.
## Compatibility
- Works with all major browsers that support userscript managers
- Tested with Google Scholar in multiple languages
- Compatible with most DOI link formats
## Notes
- This script is for educational purposes only
- Access to papers should comply with applicable laws and regulations
- Sci-Hub and LibGen domains may change; update URLs in the script if needed
## License
AGPL-3.0-or-later
## Contributing
Feel free to:
- Report issues
- Suggest improvements
- Submit pull requests
## Disclaimer
This script is provided as-is without any warranties. Users are responsible for ensuring their use complies with relevant laws and institutional policies.