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

Ingredients edit box font #38

Closed svensven closed 3 years ago

svensven commented 3 years ago

Just putting this here as an idea, in case it's useful to anyone.

In order to more easily tell the difference between l l and I I, "rn" and "m", etc., to detect bad OCR-ing, I've added a 2nd tampermonkey script for OFF.

It simply changes the font of the ingredients edit box to a fixed width one:

(function() {
    'use strict';

    GM_addStyle ( `
        textarea[id^='ingredients_text_'] {
            font-family: Lucida Console;
        }
        div[class='wrap_ingr'] > textarea[class='ingr'] {
            font-family: Lucida Console;
        }
    ` );

})();