Skip to content

Instantly share code, notes, and snippets.

@abaumg
Last active October 31, 2023 11:46
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 abaumg/0603f78cc21fdd7bb787989aa77a7e04 to your computer and use it in GitHub Desktop.
Save abaumg/0603f78cc21fdd7bb787989aa77a7e04 to your computer and use it in GitHub Desktop.
Bookmarklet: Dim viewed files in the side bar when reviewing BitBucket pull requests
javascript:(function()%7Bvar%20styleNode%20%3D%20document.createElement('style')%3B%0AstyleNode.type%20%3D%20'text%2Fcss'%3B%0AstyleNode.appendChild(document.createTextNode('%23bb-sidebar%20li%20a%20%7B%20--ds-text-subtlest%3A%20%232405ff%3B%20--ds-text-disabled%3A%20%23c8c8c8cc%3B%20%7D'))%3B%0Adocument.getElementsByTagName('head')%5B0%5D.appendChild(styleNode)%3B%7D)()%3B
var styleNode = document.createElement('style');
styleNode.type = 'text/css';
styleNode.appendChild(document.createTextNode('#bb-sidebar li a { --ds-text-subtlest: #2405ff; --ds-text-disabled: #c8c8c8cc; }'));
document.getElementsByTagName('head')[0].appendChild(styleNode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment