Skip to content

Instantly share code, notes, and snippets.

@ulasozguler
Last active June 7, 2023 08:10
Show Gist options
  • Save ulasozguler/080d677205d9243841e0fac3eebd1b9e to your computer and use it in GitHub Desktop.
Save ulasozguler/080d677205d9243841e0fac3eebd1b9e to your computer and use it in GitHub Desktop.
Userscript to add "toggle inline comment" button to Github PRs comments. Click "Raw" to install.
// ==UserScript==
// @name Github comment toggle
// @version 0.1.0
// @author Ulas Ozguler
// @description Add "toggle inline comment" button to Github PRs comments.
// @match https://github.com/*/pull/*
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==
GM_addStyle (`
.comment-holder summary[hidden][hidden] {
display: block !important;
background-color: #4c4333 !important;
font-size: 12px;
margin: 0;
padding: 2px 10px !important;
}
summary[hidden][hidden]::after {
content: "Toggle inline comment";
}
`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment