Skip to content

A Chrome extension to enhance the experience of maltasupermarket.com

License

Notifications You must be signed in to change notification settings

frg/webextension-maltasupermarket

Repository files navigation

Maltasupermarket.com Web Extension

Maltasupermarket.com provides a handy price per unit value for each product on their site but unfortunately they do not provide the ability to search by this value. This Web Extension gives the website this ability.

price per unit values

How does it work?

The extension dynamically injects a new sort by option called "Price: Lowest per Unit first" within the sort by dropdown. Once clicked, the extension will go through all the visible products, sorts them, then replaces the products with their sorted counterpart.

Once slected the sort setting will be peristed throughout any navigation done through the site until a native sort by option is selected.

dropdown demo

Privacy

This plugin does not collect any data from the user and does not have the ability to remotely control, inject or otherwise communicate with a remote service.

Development

Pull requests with the aim of enchancing the experience of the maltasupermarket.com website are encouraged.

Commands

Command Description
npm run start Starts a service that will build the dist files on file change
npm run build Builds the dist files
npm run zip Created a zip file of the dist folder to be uploaded to the Chrome App Store
npm run lint Lint the project and auto fix issues where possible

Testing

Generate the dist folder by executing npm run build or npm run start.

Navigate to chrome://extensions/ on your Chrome browser.

Enable Developer Mode by clicking the toggle at the top right of the page, a sub menu should appear. enable developer mode

Click on Load unpacked and select the dist folder. The extension is now installed. click load unpacked

When the dist folder is updated, either click on the reload icon next to your Chrome extension, or you can use Extensions Reloader which gives the convenient ability to reload all unpacked extensions through a button click.