This file contains 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
A simple developer console script to add all the items in an Amazon Wish List to the Amazon Cart. | |
You will need to allow popups for this script to work, all items will be opened in new tabs. | |
-------------------------------------------------------------------------------------------------- | |
var elements = document.getElementsByClassName('a-button-text'); // Get all the buttons on the page (Probably overkill) | |
var filteredEle = []; // Will be used to store the "Add to Cart" buttons | |
for (let i = 0; i < elements.length; i++) { | |
if (elements[i].textContent === 'Add to Cart') { // Find the elements that say "Add to Cart" | |
filteredEle.push(elements[i]); // Put them in their list |
This file contains 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
var cases, delegator; | |
// Example returns for illustration only. | |
cases = { | |
alpha: function() { | |
// statements | |
// a return | |
return [ "Alpha", arguments.length ]; | |
}, | |
beta: function() { |
This file contains 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
#include <IRremote.h> | |
#include <IRremoteInt.h> | |
// Display Colors | |
#define RED 1 | |
#define GREEN 2 | |
#define BLUE 3 | |
#define YELLOW 4 | |
#define CYAN 5 | |
#define MAGENTA 6 |