Skip to content

Instantly share code, notes, and snippets.

View effofxprime's full-sized avatar

Erialos effofxprime

View GitHub Profile
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@effofxprime
effofxprime / deleteAmazonSavedItems.js
Last active December 13, 2020 20:02 — forked from MichaelLawton/deleteAmazonSavedItems.js
How to use: First go to your cart on amazon. Bring up the developer console: CTRL+SHIFT+J for chrome. Copy and paste the code into the developer console and press enter. You do not need to stay on the page for it to work. Check back in a few to see if it has completed. ... PROFIT!
/*
* Removes all Amazon saved for later items on the cart page. It will only remove visible items.
* You might want to scroll first to make more items visible. To use paste code in developer console
* (Ctrl+Shift+J or Cmd+Opt+J in Chrome) then press enter.
* Original script by: https://gist.github.com/MichaelLawton
*
* For my purposes, I updated this script so it would continuously keep deleting my saved for later items.
* I had over 500 and the original would only remove a handful before stopping.
* While this runs, you do not need to stay on the window/page for it to work.
*/