greasyfork-org / greasyfork

An online repository of user scripts.
https://greasyfork.org
GNU General Public License v3.0
1.42k stars 426 forks source link

FR: Linkify @license URL #1178

Closed nexushoratio closed 9 months ago

nexushoratio commented 10 months ago

If the @license is in the form of:

// @license License Type; License Homepage

(as described at https://sourceforge.net/p/greasemonkey/wiki/Metadata_Block/#license), would it be possible to make that a link on the scripts Info tab?

Or would that open up too many issues?

JasonBarnabe commented 9 months ago

We already linkify SPDX identifiers as that describes, but yeah we should support this syntax as well. Didn't know about it before now.

cyfung1031 commented 9 months ago

We already linkify SPDX identifiers as that describes, but yeah we should support this syntax as well. Didn't know about it before now.

The current practice in Greasy Fork is not good.

for example, // @license MIT means nothing. There is no a license text for others to copy to license. Usually GitHub will create one LICENSE file for us in every repo, so we should do like this.

// @license MIT; https://github.com/cyfung1031/Tabview-Youtube/raw/main/LICENSE

However, this syntax is not supported in Greasy Fork

JasonBarnabe commented 9 months ago

Licensing is recommended but optional on Greasy Fork. I am going to support the suggested format, but not require it.