Created
September 11, 2014 22:54
-
-
Save michaeltroy/7b21401a9b951fbcf793 to your computer and use it in GitHub Desktop.
Red payment amounts
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 list = document.body.querySelectorAll('span[data-html="Amount"]'); | |
for (i = 0; i < list.length; i++) { | |
var item = list[i]; | |
var content = item.innerHTML; | |
var amount = content.match(/^-[$]?/); | |
// var done = amount.className += " red" | |
console.log(content); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment