Greasyfork script-set-edit button

Add / Remove script into / from script set directly in GF script info page

< Feedback on Greasyfork script-set-edit button

Review: Good - script works

§
Posted: 2023-11-02

Request:
It is possible to see in the menu drop list, the set(s) where a script is yet added ?

PYUDNGAuthor
§
Posted: 2023-11-02

Coded but may contain bugs. Send me feedbacks if found:)

§
Posted: 2023-11-02
Edited: 2023-11-02

I tested your update, but after added your script in my "Favorit" set,
i don't find any difference in the list...

Haaa sorry, yes i see (added) near the set label:
It take a just little time to appear.

Thanks!
Maybe just a little green ✔ icon should be sufficient...

§
Posted: 2023-11-02

Now another requests to follow the same idea:

Add the possibility to select / unselect many sets in this list and change them at once.
If it's possible, maybe you should rename the "Add" button to something like "Change" or "Add/Remove".

PYUDNGAuthor
§
Posted: 2023-11-03

Add the possibility to select / unselect many sets in this list and change them at once.

I understand your idea that finishing all edits in one time, that could be useful and I CAN reach it.
But before that, there's a fact, that is, greasyfork doesn't provide any API to query and modify script sets, which means that we have no "shortcuts" to query and modify script sets programmatically. When this userscript adds a userscript to a set, it has to load the page itself in an iframe and simulate human operations, which takes time to finish and increases web traffic. If we do many tasks like this in one time, such as selecting / unselecting many sets in this list and change them at once, actually requires the script to do the modify work one by one all by simulating human operations, which definitely will increase the operating time and web traffic.
As you see, the operation is not fast already, although there's no batch operations yet. As a userscript to provide fast and convenient way to edit script sets, I prefer to preserve speed rather than having more features. Batch operations or other functionalities which takes a long time seems more suitable for other forms like python scripts, in my opinion.

Maybe just a little green ✔ icon should be sufficient..

Just changed to it. Also added ability to display ✔ icon after added script into set.

§
Posted: 2023-11-03
I prefer to preserve speed rather than having more features

Ok, you are right, i understand
:-)

Anyway, many thanks to have bringing back this "lost" function:
i never understand why the dev "delete" it....

And thanks for your detailed and quick reply!

Note:
I see "Add To/ Remove:" but see only a "Add" button.
How delete only a script from the list without Edit the list?

PYUDNGAuthor
§
Posted: 2023-11-04

Thats what I wanted and tried to implement but failed in the past. Now I added it in the latest update.

§
Posted: 2023-11-04

Thats what I wanted and tried to implement but failed in the past. Now I added it in the latest update.

Perfect!
;-)

About the Edit Set function:
Maybe if we can click the "Edit manually" button and...
Open the Edit page in an iframe, without leaving the Script page,
we solve the problem of
" we do many tasks like this in one time, such as selecting / unselecting many sets in this list and change them at once" ?

And as fine tuning the thing , add an Edit button at each Sets in the list....

Yes i know , it's easy - behind my screen - to have so many funny ideas
and let all the "greasy" work to you
:-)

PYUDNGAuthor
§
Posted: 2023-11-05
Edited: 2023-11-05

I understand you want to add and remove current script into/from multiple sets in one time, but what an edit page can do is to add and remove multiple scripts into/from one set in one time. Is that your need?

§
Posted: 2023-11-05

Yes... yes... that different, but be useful to just remember what is in the current set (and maybe edit it if not accurate or any reason).

I like to "collect" things but i understand it's not a finality:
If a set is never reviewed, it can became obsolete and nobody need it.

IF i can see easily what is in a particular set and modify it to be more accurate,
and without leaving the script page, i think it's can be a good thing.

And if it is easy and fast, it could be a little workaround, not so practical than select/ unselect in a list but....


Another thing (i think i asked you a long time ago):
Can you translate you script name (and its description...)in other languages ?

PYUDNGAuthor
§
Posted: 2023-11-06
Edited: 2023-11-06

Open the Edit page in an iframe, without leaving the Script page

Okay then. Which form would you prefer, just clicking the 'Edit Manually' button and add the iframe underneath, or add the iframe in an in-page popup (or in other appearance)?

Can you translate you script name (and its description...)in other languages ?

Which language(s) would you like to add? now that en, zh-TW, zh-CN are added. I can add text translations using translation software, or you can send me translations and I'll add it into the script.

§
Posted: 2023-11-06
Open the Edit page in an iframe, without leaving the Script page

I don't know, maybe the "add the iframe underneath" ?
In fact, if it is something which don't break the page layout, that's OK.
I use a large screen and if the edit frame appear on the left side that's good (or if we can drag it...)

Which language(s) would you like to add?

Ha, i forgot that i watch the greasyfork beast in FR:
In ENG, now i saw your English translation...
;-)

A French translate should be great.
Here an idea for the French one:
Name of your script, maybe something like:
"Greasyfork Set+"
OR
"Greasyfork Set Edit+"

Description:
"Re-implémente le Menu "Ajouter" / "Supprimer" un script dans un vos Set (Collection d'userscripts) ,
et cela directement à partir de la page d'informations de l'userscript.

Désormais, il prend également en charge l'ajout/la suppression de collections en un clic.

Vous pouvez aussi Éditer un Set manuellement (sans quitter la page d'infos)."

PYUDNGAuthor
§
Posted: 2023-11-11

Implemented just now ('In-Page Edit'). Send me feedbacks if anything's wrong.
By the way, only FR @name and description are applied, button and texts are still EN. Would you like to provide those translations?

§
Posted: 2023-11-11

Well, that work!
Great job.

A little request:

1 - Add an attribute or a class to the html of the iframe:
html[data-allowed-hosts*="update-source"]
maybe by adding .set-edit ...

Like that i can style it easily.

By example, I don't need the site name/icon in its header.
and some css edit is need to adapt the iframe with my userstyle:
Userstyles / Greasy Fork Enhancer Dark-Grey

Post reply

Sign in to post a reply.