Power User Script

From Open Food Facts wiki
Revision as of 13:16, 12 August 2021 by Teolemon (talk | contribs)
Jump to navigation Jump to search

How to install

To run userscripts, it's best to have a script manager installed. Userscript managers are available as browser extensions:

Greasemonkey – works with Firefox - https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ Tampermonkey – works with Chrome, Safari, Firefox and other browsers - http://tampermonkey.net/ Choose an appropriate manager and install it according to the requirements of your browser.

Once your script manager is installed you can go to https://github.com/openfoodfacts/power-user-script/raw/master/OpenFoodFactsPower.user.js

Just click on the Raw button and your script manager will ask you if you want to install the script.

Roadmap

Features

List of Power User Script features to integrate into Open Food Facts

list a Power Script Features and I would like to ask users to tell what they find very important or not (see P1-P4 columns filled with my initials): https://cryptpad.fr/sheet/#/2/sheet/edit/VPJYIwg8ooN7VJerkPTVtcl2/

The most important ones could be integrated directly in Product Opener. It also tells us what the users find interesting and what could be better.

Releases

Full changelog @ https://github.com/openfoodfacts/power-user-script/#changelog

2021-03-30

I've added a pet food button, and functionised the code, in 2021-03-30T02:36.

2021-03-26

Power User Script official new version (2021-03-26T10:48); many thanks to @Sven who have fixed the script for the new layout (a big rework).

  • Add ->OPF button in list mode (to move products to Open Products Facts)
  • Recent changes link displays 100# instead of 900#
  • Exclude https://analytics.openfoodfacts.org/
  • Fix product list view tweaks to work with new layout

Github: https://github.com/openfoodfacts/power-user-script/

Direct link to update: https://github.com/openfoodfacts/power-user-script/raw/master/OpenFoodFactsPower.user.js

2020-10-14

Power User Script official new version (2020-10-14T11:53):

  • fixes from @Sven
  • Categorization opportunities link (thanks to @Pierre (teolemon))
  • Add DuckDuckGo link for product barcode (near the barcode) (thanks to @Sven)

Github: https://github.com/openfoodfacts/power-user-script/

Direct link to update: https://github.com/openfoodfacts/power-user-script/raw/master/OpenFoodFactsPower.user.js

2020-05-04

Power User Script official new version (2020-05-04T10:39):

  • Nutrition facts picture takes all the place available: should work for every modern browser (CSS3)
  • Modify link to hunger game
  • very small update, the "a" key now opens the json page in a new window (instead of Alt+Shift+A)
2020-04-17

Power User Script official new version (2020-04-17T14:33) (with screenshots bellow!):

  • Confirmation page: quality errors and quality warnings displayed in red (or green when it's all right)
  • Google Link for product barcode (near the barcode)
  • Link to Open Pet Food Facts (near the barcode)
  • Firefox: Nutrition facts picture takes all the place available (cc @Max)
2020-04-11

Power User Script official new version (2020-04-11T17:26):

  • Add openbeautyfacts.org link and its status code (200 = the product exists; 404 it doesn't)
  • Add .pro.openffodfacts.org link (status code isn't working)
  • Add "ingredient mode" to simplify ingredients management => ("i" key in "edit" mode)
  • Developper: console.log messages more clear


2020-03-24

Power User Script new version:

  • Add a field to filter Recent Changes results (filter as you type)

Update the extension and try:

https://world.openfoodfacts.org/cgi/recent_changes.pl?&page=1&page_size=200

image.png

11:35

To update the script: https://github.com/openfoodfacts/power-user-script/raw/master/OpenFoodFactsPower.user.js