Skip to content

Instantly share code, notes, and snippets.

@prideout
Last active March 3, 2021 04:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prideout/73b1568233bb519ca0f9afadb00cbc0b to your computer and use it in GitHub Desktop.
Save prideout/73b1568233bb519ca0f9afadb00cbc0b to your computer and use it in GitHub Desktop.
github display rich diff everywhere
// clock all <button> with aria-label="Display the rich diff"
buttons = [].filter.call(
document.getElementsByTagName('button'),
el => el.getAttribute('aria-label') == "Display the rich diff");
buttons.forEach(el => el.click())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment