Skip to content

Commit

Permalink
*.user.js: add @homepageURL to metadata
Browse files Browse the repository at this point in the history
Two userscripts: bitbucket-copy-commit-reference and
confluence-space-avatar-favicons are missing `@homepageURL`.  The
userscript jira_copy_summary is using `@homepage` in its metadata.
This issues were found using the new script:

	$ ./maintenance/check-metadata.sh

It seems that extension Violentmonkey doesn't support `@homepage`, but
Tampermonkey does.[1]

Use `@homepageURL` with a link to the GitHub repository in all
userscripts, both for consistency and for better compatibility.

[1] Compare documentation at
    - https://violentmonkey.github.io/api/metadata-block/#homepageurl
    and
    - https://www.tampermonkey.net/documentation.php?locale=en#meta:homepage
  • Loading branch information
rybak committed Oct 28, 2023
1 parent 58776fa commit 286d70c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bitbucket-copy-commit-reference.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// @description Adds a "Copy commit reference" link to every commit page on Bitbucket Cloud and Bitbucket Server.
// @license AGPL-3.0-only
// @author Andrei Rybak
// @homepageURL https://github.com/rybak/atlassian-tweaks
// @include https://*bitbucket*/*/commits/*
// @match https://bitbucket.example.com/*/commits/*
// @match https://bitbucket.org/*/commits/*
Expand Down
1 change: 1 addition & 0 deletions confluence-space-avatar-favicons.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// @namespace https://github.com/rybak
// @description Sets browser tab icon of Confluence to the avatar of the space.
// @author Andrei Rybak
// @homepageURL https://github.com/rybak/atlassian-tweaks
// @include https://*confluence*/*
// @match https://confluence.example.com/*
// @icon https://wac-cdn-2.atlassian.com/image/upload/f_auto,q_auto/dam/jcr:5d1374c2-276f-4bca-9ce4-813aba614b7a/confluence-icon-gradient-blue.svg?cdnVersion=691
Expand Down
2 changes: 1 addition & 1 deletion jira_copy_summary.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @license MIT
// @description Adds a "Copy summary" button for issue pages on Jira.
// @author Sergey Lukashevich, Andrei Rybak, Dmitry Trubin
// @homepage https://github.com/rybak/atlassian-tweaks
// @homepageURL https://github.com/rybak/atlassian-tweaks
// @include https://*jira*/browse/*
// @match https://jira.example.com/browse/*
// @match https://jira.example.com/browse/*
Expand Down

0 comments on commit 286d70c

Please sign in to comment.