Skip to content

Instantly share code, notes, and snippets.

View allegrabottlik's full-sized avatar

Allegra Bottlik allegrabottlik

View GitHub Profile
@vlussenburg
vlussenburg / function deleteWholeFoodsCart.js
Created October 8, 2021 23:48
JavaScript snippet to empty out your Whole Foods cart on Amazon
function deleteWholeFoodsCart() {
var query = document.querySelectorAll("#sc-expanded-cart-localmarket input[value='Delete']")
if (query.length) {
query[0].click();
}
if (query.length > 1) {
setTimeout(deleteWholeFoodsCart, 500);
}
else {
console.log('Finished');
@allegrabottlik
allegrabottlik / AmazonSavedItemsMoveToWishlist.js
Last active August 3, 2023 14:38 — forked from MichaelLawton/deleteAmazonSavedItems.js
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.
## currently not working ##
function moveToWishList() {
var query = document.querySelectorAll("#sc-saved-cart input[value='Move to Wish List']")
if (query.length) {
query[0].click();
}
var query2 = document.querySelectorAll("#registry-3O6MPC8BWUEPE a")
if (query2.length) {
query2[0].click();
}
@MichaelLawton
MichaelLawton / deleteAmazonSavedItems.js
Last active June 12, 2024 15:38
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.
function deleteSavedItems() {
var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]")
if (query.length) {
query[0].click();
}
if (query.length > 1) {
setTimeout(deleteSavedItems,100);
}
else {
console.log('Finished');
@Zenexer
Zenexer / Internet Slang and Emoticons.md
Last active February 14, 2022 23:32
Internet slang, abbreviations, and emoticons
@etoxin
etoxin / git.md
Last active May 31, 2024 11:58
GIT Bash Commands

search (regex)

git grep "regex"

list all branches

git branch -a
@IngmarBoddington
IngmarBoddington / statusCodes
Last active June 15, 2024 10:57
HTTP Status Codes / Verbs List
CONNECT
DELETE
GET
HEAD
OPTIONS
PATCH
POST
PUT
TRACE