Quick hit: easily adding all available Amex Offers (if you're an idiot, like me)
/Yesterday I was excited to see Danny the Deal Guru’s post about a simple technique to quickly add all your available Amex Offers to your cards with a simple click. It worked for him and some other people who commented, but it didn’t work for me. Since I’m computer illiterate, I assumed it had something to do with my ad blocker or privacy settings, or the fact that I use Apple hardware, or any one of a hundred other things.
This morning I caught my second wind and decided to try again. Upon closer inspection of the error message, I saw a string that looked familiar: “U+201C.” That looks like a unicode character. Some light googling revealed that it was, indeed, a unicode character, specifically the “left double quotation mark” character, like the ones on the left side of those quotes.
Turns out, JavaScript doesn’t like left (or right) double quotation marks. JavaScript likes upright double quotation marks, and after replacing the former with the later, the code sailed through.
It turns out, in the original Reddit thread, user blamsonyo had used upright quotation marks, and if I had bothered to click through and copy the original code I wouldn’t have had a problem. Lesson reinforced: when possible, go to the original source! Save the games of telephone for summer camp.