Skip to content

Instantly share code, notes, and snippets.

@ernstki
Last active November 2, 2024 02:12
Show Gist options
  • Save ernstki/e8fb8def8e2504164b62a280ecb7462d to your computer and use it in GitHub Desktop.
Save ernstki/e8fb8def8e2504164b62a280ecb7462d to your computer and use it in GitHub Desktop.
Userstyle to fix GitLab mystery meat icons in file header - https://github.com/openstyles/stylus
button[data-testid="copy-contents-button"]::after {
content: "Copy contents";
}
svg[data-testid="copy-to-clipboard-icon"] {
display: none;
}
a[aria-label="Open raw"]::after {
content: "Open raw";
}
svg[data-testid="doc-code-icon"] {
display: none;
}
@ernstki
Copy link
Author

ernstki commented Nov 2, 2024

Certain to break in the next redesign (look, one of those is a <button> and one is an <a>nchor!), but works as of late 2024.

Screenshot of the "Copy file contents" and "Open raw" buttons after applying this userstyle

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