Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions OpenFoodFactsPower.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
//// ==UserScript==
// @name Open Food Facts power user script
// @description Helps power users in their day to day work. Key "?" shows help. This extension is a kind of sandbox to experiment features that could be added to Open Food Facts website.
// @namespace openfoodfacts.org
// @version 2025-09-05T13:42
// @version 2025-09-08T18:19
// @include https://*.openfoodfacts.org/*
// @include https://*.openproductsfacts.org/*
// @include https://*.openbeautyfacts.org/*
Expand Down Expand Up @@ -64,7 +64,7 @@
var proPlatform = false; // TODO: to be included in isPageType()
const pageType = isPageType(); // test page type
const corsProxyURL = "";
log("2025-09-05T13:42 - mode: " + pageType);
log("2025-09-08T18:19 - mode: " + pageType);

// Disable extension if the page is an API result; https://world.openfoodfacts.org/api/v2/product/3222471092705.json
if (pageType === "api") {
Expand Down Expand Up @@ -857,11 +857,11 @@ textarea.monospace {
log(event);
// If the key is not pressed inside a input field (ex. search product field)
if (
!event.target.matches('input, folksonomy-editor')
!event.target.matches('input, folksonomy-editor, textarea')
&& !event.target.matches('span.tagify__input')
&& !event.target.matches('span.tagify__tag-text')
) {
log(event.target);
//log(event.target);
// (Shift + B): toggle show/hide barcode
if (event.key === 'B') {
toggleSingleBarcode(code);
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Once your script manager is installed you can go to https://github.com/openfoodf
Just click on the Raw button and your script manager will ask you if you want to install the script.

# Changelog
### 2025-09-08T18:19
* Following last version, quick fix for textarea.
### 2025-09-05T13:42
* Fix conflict with Folksonomy Engine form when typing some keys such as `e` or `a`, which are shortcuts in Power User Script
### 2025-06-17T18:50
Expand Down
Loading