您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
See if npm package repo is forked from others
Add a badge icon to show the npm package forks info:
To use this script, you need to allow cross-origin, Tampermonkey will pop a page like this:
You can always remove or update the settings in script setting tab if you want.
According to Github API document[^1]:
For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the person making requests.
When you nagtive to other package from the search suggestion result as your current location is a package detail page, the badge will not changed. (Issue #8)
When I search npm packages, find some packages are forked from other repo, and doesn't put infomation to indicate but is pulished to public. I know some forks repo maybe add more featrue based on the original package, but I think is confused if there is nothing to indicate this and also doesn't respcet the original developer, since the packages published to npm and we can't see the info like we see the fork repo in Github.
Thanks Badgen to easily generate the badges.
[^1]: Rate Limiting from Resources in the REST API - Gihub Docs