Last active
June 26, 2020 07:13
-
-
Save artlung/3854c9d580c19ebbcac3202bdfc278bf to your computer and use it in GitHub Desktop.
Use this on the Wikipedia page for "List of largest daily changes in the Dow Jones Industrial Average"
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 tds = document.querySelectorAll('td'); | |
// Use in the console for https://en.wikipedia.org/wiki/List_of_largest_daily_changes_in_the_Dow_Jones_Industrial_Average | |
for (var i = 0; i<tds.length; i++) { | |
var td = tds[i]; | |
if (td.innerText.indexOf('2020-0') === -1) { | |
td.style.opacity = 0.3; | |
td.style.backgroundColor = td.style.backgroundColor.toString().replace(')', ',0.3)'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
List of largest daily changes in the DOW