Skip to content

Instantly share code, notes, and snippets.

@samuelcolvin
Last active July 21, 2022 21:20
Show Gist options
  • Save samuelcolvin/da925c0918b23aea2f05210af597d05d to your computer and use it in GitHub Desktop.
Save samuelcolvin/da925c0918b23aea2f05210af597d05d to your computer and use it in GitHub Desktop.
javascript:(function(){
const set_color = (cls, col) => document.querySelectorAll(cls).forEach(el => {
el.parentNode.style.backgroundColor = col;
el.parentNode.querySelectorAll('td').forEach(td => {td.style.backgroundColor = col});
});
set_color('.bg-ds-coverage-partial', '#ffa');
set_color('.bg-ds-coverage-uncovered', '#fdd');
})();
@samuelcolvin
Copy link
Author

I've updated this script to work with the new horrid theme.

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