Skip to content

Instantly share code, notes, and snippets.

@artlung
Last active June 26, 2020 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artlung/3854c9d580c19ebbcac3202bdfc278bf to your computer and use it in GitHub Desktop.
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"
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
Copy link
Author

artlung commented Jun 26, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment