openfoodfacts / power-user-script

User script for your browser, to empower Open Food Facts contribution
GNU Affero General Public License v3.0
12 stars 5 forks source link

feat: Hunger logo game search button #85

Closed DanieliusAsm closed 6 months ago

DanieliusAsm commented 6 months ago

What

Screenshot

image

Part of

DanieliusAsm commented 6 months ago

@CharlesNepote

CharlesNepote commented 6 months ago

I didnt know about the version thing since I dont have prior expeirience to User scripts.

Yes we should document development process a little bit.

I planned to make this change in the future. I would want to add more buttons so there should be a toggle (maybe not for this hunger game button). Ideally I would want to add buttons: rotate left, rotate right, delete buttons if I could figure out the rotation stuff.

Great! Have you seen: https://openfoodfacts.github.io/openfoodfacts-server/api/ref-v2/#get-/cgi/product_image_crop.pl

The delete button would be seen by everyone not just mods so thats problematic as there is no way of knowing if a user is a mod. It should probably be hidden by default and be toggleable

There is an ongoing bug here that would allow you to test if a user is an admin or not: https://github.com/openfoodfacts/openfoodfacts-server/issues/6758