This userscript enhances your experience on the Woolworths website by adding functionality to split bills easily.
- 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.
-
Install Tampermonkey: If not already installed, add the Tampermonkey extension to your browser. Tampermonkey is available for Chrome, Firefox, Safari, and other major browsers.
-
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
.
-
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.
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.
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.
Contributions are welcome. If you have any suggestions or improvements, feel free to fork this repository and submit a pull request.
This project is open-source and available under the MIT License.
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.