Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use this on the Wikipedia page for "List of largest daily changes in the Dow Jones Industrial Average"
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)');
}
}
@artlung

This comment has been minimized.

Copy link
Owner Author

artlung commented Jun 26, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.