A collection of browser userscripts I've developed to enhance various websites.
A simple userscript that adds a copy button next to GitHub and GitLab pull requests to copy the PR as markdown in the format [PR Title](PR URL).
There is an option to add the repo shortand to the displayed text, making it [user/repo - PR Title](PR URL).
Supported platforms are:
- GitHub: github.com and GitHub Enterprise
- GitLab: gitlab.com and self-hosted GitLab instances
- Navigate to any GitHub or GitLab pull request
- Look for the 📋 button next to the PR title
- Click the button to copy the PR as markdown
- The button will show ✅ on success or ❌ on failure
- The toggle to include the shorthand can be found in the Tampermonkey menu.
For e.g. the pr2markdown script do the following:
- Install Tampermonkey extension in your browser
- Import the userscript via url in Tampermonkey (
Utilities->Import from URL->https://github.com/primeapple/userscripts/raw/refs/heads/main/pr2markdown.user.js) - The script is now active on GitHub and GitLab PR pages
No build process required - userscripts use plain JavaScript.
We do have a typechecking, testing and linting pipeline via Github Actions.
Check the scripts section in the package.json.