Adds a button next to each repo on trendshift.io to open it on GitHub
Adds a ↗ GitHub button next to each repository listed on trendshift.io so you can open the matching repo on GitHub, in a new tab, with no extra steps.
On Trendshift, each repo is shown as owner/repo (for example
pewdiepie-archdaemon/odysseus), but the link takes you to Trendshift's own
page (/repositories/43167), not to GitHub. This script reads that
owner/repo and builds https://github.com/owner/repo directly.
https://github.com/owner/repo in a new tab.MutationObserver..user.js file directly.Recent versions of Chrome and Edge require enabling a permission for userscripts to run. If no button appears:
chrome://extensions (or edge://extensions).This step is not needed on Firefox.
There is nothing to configure. Once installed, browse Trendshift as usual and use the ↗ GitHub button on any repository you want to open.
https://trendshift.io/*.@grant none: no privileged manager APIs are used.| Browser | Tampermonkey | Violentmonkey |
|---|---|---|
| Chrome | ✅ (see note) | ✅ |
| Edge | ✅ (see note) | ✅ |
| Firefox | ✅ | ✅ |
| Brave/Opera | ✅ (see note) | ✅ |
a[href^="/repositories/"].owner/repo pattern
(/^[A-Za-z0-9][A-Za-z0-9._-]*\/[A-Za-z0-9._-]+$/), ignoring icons or other
links to the same page.data-ts-gh-done to avoid duplicate buttons.position: relative; z-index to sit above the
::after { inset: 0 } overlay that Trendshift places over the cards, and
stopPropagation() so the click does not activate the card.Author: mreduar · License: MIT