مۇنازىرىلەر » Greasy Fork قا ئىنكاس

Getting diff version numbers

§
يوللانغان ۋاقتى: 2022-02-27

I was thinking of generating a link to GF/SF diff pages.

For example
https://greatest.deepsurf.us/en/scripts/2024-w-a-r-links-checker-premium/diff?v1=1017885&v2=1016564

Question is, where to get 1017885 & 1016564?
e.g.

v1.6.1.3  1016564
v1.6.1.4  1017885
§
يوللانغان ۋاقتى: 2022-02-27

Click on the version number, so you can see that version codes and description etc.

§
يوللانغان ۋاقتى: 2022-02-27

I need to get it and generate the diff link remotely.
Otherwise, the diff link is available on the diff page.

§
يوللانغان ۋاقتى: 2022-02-27
تەھرىرلەنگەن ۋاقتى: 2022-02-27

You don't have to use "greasy fork's api" or JSON files for that. You could simply use fetch()

§
يوللانغان ۋاقتى: 2022-02-27
تەھرىرلەنگەن ۋاقتى: 2022-02-27

You could simply use fetch()

fetch the HTML page and then parse the page?
That is not ideal.

Perhaps an API endpoint for the page like

Yes, that would be great.

I log script update in FM e.g.
W.A.R. Links Checker Premium Updated version 1.6.1.3 to 1.6.1.4

I wanted to see if it was possible append a link to the diff to the log entry.

Alternatively,..... if you can set an internal redirect so that version numbers can be set as parameters, that would be awesome. e.g.

https://greatest.deepsurf.us/scripts/2024/diff?ver1=1.6.1.3&ver2=1.6.1.4

§
يوللانغان ۋاقتى: 2022-03-02

Alternatively,..... if you can set an internal redirect so that version numbers can be set as parameters, that would be awesome. e.g.

https://greatest.deepsurf.us/scripts/2024/diff?ver1=1.6.1.3&ver2=1.6.1.4

Authors can actually upload a new version to Greasy Fork without actually changing the script's version number, or they can reuse a previous version number. So this would be ambiguous.

§
يوللانغان ۋاقتى: 2022-03-02

Great. Thank you.

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.