Created
December 14, 2021 00:43
-
-
Save cmbuckley/e3394e87eec749f69bb91c90773518e4 to your computer and use it in GitHub Desktop.
Amazon Cards Bookmarklet
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
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bookmarklet to give a nickname to cards on the Amazon checkout screen so you can see which is which.
Before
After