Skip to content

Instantly share code, notes, and snippets.

View spurin's full-sized avatar
:octocat:
Be excellent to each other

James Spurin spurin

:octocat:
Be excellent to each other
View GitHub Profile
@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');
@koziolku
koziolku / Vagrantfile
Last active February 28, 2021 16:36
Dive into Ansible - Vagrantfile
Vagrant.configure("2") do |config|
# Default Vagrant box - Ubuntu 20.04 from roboxes.org
config.vm.box = "generic/ubuntu2004"
# Suitable hostname - if you see it in your prompt, then you're in containers' host VM
config.vm.hostname = "diveinto"
# Some VirtualBox configuration.
config.vm.provider "virtualbox" do |v|