This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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(); |