Skip to content

Instantly share code, notes, and snippets.

@cmbuckley
Created December 14, 2021 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmbuckley/e3394e87eec749f69bb91c90773518e4 to your computer and use it in GitHub Desktop.
Save cmbuckley/e3394e87eec749f69bb91c90773518e4 to your computer and use it in GitHub Desktop.
Amazon Cards Bookmarklet
javascript:(function (doc) {
let cards = {
1111: 'Card #1',
2222: 'Card #2',
};
doc.querySelectorAll('[data-number]').forEach(function (card) {
card.parentNode.querySelector('span').innerText = cards[card.dataset.number]);
});
})(document);
@cmbuckley
Copy link
Author

Bookmarklet to give a nickname to cards on the Amazon checkout screen so you can see which is which.

Before

before

After

after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment