Greasy Fork

Greasy Fork is available in English.

Simple Google Scholar Sci-Hub Access

Adds Sci-Hub buttons to Google Scholar results and handles DOI links

当前为 2025-01-27 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
BuiQuocDung1991
评分
0 0 0
版本
1.0.0
创建于
2025-01-27
更新于
2025-01-27
大小
2.4 KB
许可证
AGPL-3.0-or-later
适用于
所有网站

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