Giter Club home page Giter Club logo

woolies-bill-splitter's Introduction

Woolies Bill Splitter

This Tampermonkey script enhances your experience on the Woolworths website by adding functionality to split bills easily.

Preview

Features

  • Checkbox Selection: Allows you to select specific items from your Woolworths order to include in a shared bill calculation.
  • Quantity Input: Adjust the quantity for each selected item, reflecting the share of the item that you are splitting.
  • Dynamic Calculation: Automatically calculates and displays the total cost of the selected items and quantities in real time.
  • Support for Partial Quantities: For items with a quantity of one, the script provides a "Just Half" button to quickly select half the quantity of the item.

Installation

  1. Install Tampermonkey: If not already installed, add the Tampermonkey extension to your browser. Tampermonkey is available for Chrome, Firefox, Safari, and other major browsers.

  2. Install the Script:

    • Open Tampermonkey in your browser and click on "Create a new script".
    • Delete the default template that appears.
    • Copy and paste the entire code provided here into the new script window.
    • Save the script by clicking on the disk icon or pressing Ctrl + S.
  3. Usage: Navigate to the "My Orders" section of your Woolworths account. The script will automatically add checkboxes, quantity inputs, and the total calculation display to your order items.

How It Works

The script automatically detects the items listed in your Woolworths orders. For each item:

  • A checkbox is added to select the item.
  • A quantity input field is added next to each item, initially disabled and set to zero.
  • If an item's quantity is one, a "Just Half" button is also provided to quickly select half of that item.

As you select items and adjust quantities, the script calculates the total price for the selected share and displays it in a fixed position at the bottom right of the page.

Compatibility

This script is designed to work with the specific URL structure of Woolworths' "My Orders" section (https://www.woolworths.com.au/shop/myaccount/myorders/*). It may not work if the website's structure is changed or updated.

Contribution

Contributions are welcome. If you have any suggestions or improvements, feel free to fork this repository and submit a pull request.

License

This project is open-source and available under the MIT License.

Disclaimer

This script, "Woolies Bill Splitter," is provided for educational and communication purposes only and is not affiliated with, authorized, or sponsored by Woolworths Corporation. It is independently developed and does not reflect the views or policies of Woolworths. The author makes no warranties regarding the accuracy, reliability, or suitability of this script and shall not be held liable for any outcomes resulting from its use. Users assume all risks associated with the operation of this script. Please comply with all applicable laws and regulations, and respect the terms of use of Woolworths' website when using this script.

woolies-bill-splitter's People

Contributors

lemonteaau avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.