Automatically generate unit price for applicable items when shopping online.

Overview

Unit Price Helper

GitHub Contributor license language DeepScan grade DOI GitHub Build

Unit Price Helper is an Google Chrome extension that allows to display the prices per unit for the products on multiple shopping sites, including Harris Teeter, Costco and Target.

Online shopping sites give us more choices of products, but to some extent, online shopping also increases the difficulty of selection. Most people tend to buy cheaper products, but which are cheaper? $18.38 for 48 Fl Oz or $27.49 for 101 Fl Oz? It's difficult to calculate each products' unit price manually. UnitPriceHelper is a solution to unit price comparation. It calculates the unit prices of products automatically and attach unit price tags to the product listing pages and product description pages, thus helping customers figure out each item's unit price.

Introduction Video

project introduction

Features

  • Display unit price tags on listing pages.

  • Display unit price tags on product description pages.

Supported Websites

More will be supported in the future...

Installation

Install from Google Web Store

Install from GreasyFork

Manually install

  • Git clone this repository.
git clone https://github.com/yzhu27/UnitPriceHelper.git
  • Open Google Chrome browser, click upper right three-dot "More" button $\rightarrow$ "More Tools" $\rightarrow$ "Extensions".

  • Turn on "Developer mode", then choose "Load unpacked".

  • Select extension folder in the UnitPriceHelper folder

  • Start your online shopping!

Note

  1. Make sure you allow the extension to read and change this page.

2) If the unit price tags doesn't appear, try to refresh your page.

Languages

  • JavaScript

Style Checker and Code Fomatter

  • IDE and Style Checker: VSCode

  • Code Style Formatter: Beautify

  • Code Syntax Checker : Eslint for Vscode plugin.

Test and Coverage

Statements Branches Functions Lines
Statements Branches Functions Lines

Unit Test

  • Mocha and Chai.

  • Setup

    From the repository root, run:

    npm install
    npm run test:unit
    

Code Coverage

Automated Analysis Tool

deepScan

Contributors

SE22 Group 7

  • Pinxiang Wang
  • Jiayuan Huang
  • Yuheng Zhu
  • Mengzhe Wang
  • Yiran Zhu
Comments
  • Discovered problems in unitPrice.js

    Discovered problems in unitPrice.js

    Problem 1: For if the quantity of the item is not in digits, for example, "1/2" or "0.5", the js file cannot get the correct result yet. This may be solved by updating regular expression later?

    Problem 2: There may be cases that the price/unit is already been provided, but this is not considered/distuiguish by the js file yet. Notice that the format is "$[digits]/[unit]". This can be solved by adding an if statement before applying regular expression.

    Problem 3: The style of inserted tag (span) does not apply CSS changes. The reason is not yet found.

    Somebody is yelling outside right now :)

    bug 
    opened by Lognam-Huang 4
  • Bug in Target.js

    Bug in Target.js

    In the code for Items Page, Insert function will fail with parameter >= 7 if you run the code together. But if you run them separately, the function can work. Weird.

    bug help wanted 
    opened by MZWANGgg 2
  • Item channels about Harris

    Item channels about Harris

    For those products which are in poor sales, their daily purchase channels may not contain available information.

    This should be solved if we are chasing a perfect work. However, since those products are usually not getting much attention, it is better to pay more attention on those more significant issues.

    If there is time and resource to solve this question in the future, the discussion about how to get the aim will be listed under this issue.

    enhancement invalid 
    opened by Lognam-Huang 1
  • Universality about Harris

    Universality about Harris

    In most of the cases, it seems that the code runs well. However, when the volumn is in the form of fractions, the Regular Expression may not be appliable.

    Should we pay effort to solve such a rare issue?

    enhancement help wanted question 
    opened by Lognam-Huang 1
  • Add README.md

    Add README.md

    We need a comprehensive Readme file which makes the aim and functionality of the project clear to anyone who choses to view the repository and help them get started.

    documentation 
    opened by yzhu27 1
  • New website support (request)

    New website support (request)

    Hi team, I just discovered this extension. Is there any possibility of adding support for this website? https://www.bizay.com/en-us/letterhead

    The website already gives a quantity field and the price field:

    download (14)

    opened by povpie 0
Owner
Yang
NCSU MCS Graduate Student, seeking for 2023 summer SDE intern.
Yang
Shopping Cart - Project of HTML, CSS, and JavaScript developed by me (Raphael Martins) at the end of the Unit 9 Module 1 of the Web Development course at Trybe

Project of HTML, CSS, and JavaScript developed by me (Raphael Martins) at the end of the Unit 9 Module 1 of the Web Development course at Trybe. I was approved with 100% of the mandatory and optional requirements met.

Raphael Martins 13 Nov 27, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A Zotero add-on that scans your Markdown reading notes, tags the associated Zotero items, and lets you open notes for the Zotero items in Obsidian.

Zotero Obsidian Citations Adds colored tags to Zotero items that have associated Markdown notes stored in an external folder. Open an associated Markd

Dae 210 Jan 4, 2023
The app helps you to add todo items to your list, mark completed ones and also delete finished items. Its a handy tool for your day today activies. Check out the live demo.

Todo List App The app helps you to add todo items to your list, mark completed ones and also delete finished items. Its a handy tool for your day toda

Atugonza ( Billions ) Joel 14 Apr 22, 2022
A secondhand marketplace where you can post items for sale, interact with sellers, save items you are interested in.

Curbside - the secondhand market place that's actually pleasant to use Post items for sale, interact with sellers, save items you are interested in. A

Curbside 14 Sep 9, 2022
A single-page application that allow users to add their To Do items. The items could be checked as completed and the completed task can be removed. Built with JavaScript, HTML and CSS

To Do list Application This is a single page application that allows users to keep track of their tasks. Users can add the task and also check the che

Micheal Oguntayo 4 Oct 14, 2022
A plugin that will automatically download PDFs of zotero items from sci-hub

Zotero Scihub This is an add-on for Zotero and Juris-M that enables automatic download of PDFs for items with a DOI. Quick Start Guide Install Downloa

Ethan Willis 1.9k Jan 8, 2023
A cache that automatically removes the least-recently-used items

A cache that automatically removes the least-recently-used items

Evandro Leopoldino Gonçalves 9 Feb 27, 2022
Ethereum Smart Contracts for locking your Ether and ERC20 tokens based on time and price conditions

SmartHold - a simple way to lock and hold your ETH or ERC20 in a smart contract This is a BETA software that has not been audited for security. USE AT

Paweł Urbanek 22 May 5, 2022
Calculate the price range for property advertised on Domain and Real Estate.

Property Seeker Calculate the price range for property advertised on Domain and Real Estate. Install Chrome Firefox Edge Privacy All searches are perf

null 42 Dec 27, 2022
🪙💬 Update a gist to contain a crypto price

crypto-box Update a pinned gist to contain a crypto price ?? ✨ For more pinned-gist projects like this one, check out: matchai/awesome-pinned-gists Se

Austen Stone 3 Nov 30, 2022
A free and open-source point-of-sale (POS) system for retail and wholesale businesses with support for multiple branches, stockkeeping locations, POS profiles and price lists.

Note: This is a beta version of the software. You are advised to proceed with caution! Overview A free and open-source point-of-sale (POS) system for

Mwai G 2 Jan 27, 2022
Bitcoin terminal tracker is a terminal app which allow you to track bitcoin price from your terminal

BTC Terminal Tracker Bitcoin terminal tracker is a terminal app which allow you to track bitcoin price from your terminal. In this version (V1.2) I ch

Sina yeganeh 9 Jul 27, 2022
The best Nodejs price kit you need when working with cryptocurrencies with multiple providers support

Cryptocurrency Price Kit STAGE: RFC The best Nodejs price kit you need when working with cryptocurrencies with multiple providers support. Goal To pro

TrapCode 6 Sep 7, 2022
A tool to calculate discount available on SGB (Sovereign Gold Bonds) compared to current market price on NSE

A tool to calculate discount available on SGB (Sovereign Gold Bonds) compared to current market price on NSE

Amit Wani 9 Nov 20, 2022
Profitable flashloans by arbitraging the ETH Price on Kyber and Uniswap - Bot Arbitrage

profitable_flashloans Arbitrage bot setup to search for arbitrage opportunities using the pair ETH/DAI in the Uniswap & Kyber DEXes This version of th

Stalin Javier Macias Gómez 12 Dec 18, 2022
A chat logs online saver for discord bots to save messages history & cleared messages online

Chat Logs NPM package that saves messages online to view it later Useful for bots where users can save messages history & cleared messages online Supp

TARIQ 8 Dec 28, 2022