A Tampermonkey userscript to copy nice-looking URLs to the clipboard.
live
branch) or one of the release branches (which start with release/
). Go to https://github.com/olivierdagenais/tampermonkey-copy-url/branches/all and make your choice.userscript/index.user.js
file.Since version 87, Firefox's Clipboard API is disabled by default and will result in an error like:
Uncaught ReferenceError: ClipboardItem is not defined
Clipboard support can be enabled by following these steps:
dom.events.asyncClipboard.clipboardItem
item and set it to true.npm install
or npm ci
.npm test
.npm run build
.To avoid having to install anything (except the Docker Engine CLI!), just prefix any node
or npm
command with ./docker_node
. For example: ./docker_node npm install
Allow Tampermonkey's access to local file URIs (Tampermonkey FAQs) and import built userscript's file URL.
release.sh
script has 2 actions:
createBranch
for when we're ready to prepare a release for a new minor or major version, by branching off of the contents of main
: bash release.sh createBranch "1.2"
createPatch
for when we want to prepare a release for a new patch version (after adding fixes to the release branch); we just need to provide tha MAJOR.MINOR portions and the PATCH portion will be automatically incremented: bash release.sh createPatch "1.2"
git push origin release/1.2 --tags
live
branch with a release: bash prepublish.sh v1.2.0
live
branch: git push origin live