Select Language:
If you’re looking to remove the reaction buttons on a GitHub discussion or comment, here’s a simple way to do it:
- First, open the discussion or comment where you want to hide or remove the reaction buttons.
- Use your browser’s developer tools to identify the section of the code containing the reaction buttons. Typically, these are inside a
<div>or<template>with specific classes or IDs related to reactions. - Once you’ve located the code block responsible for rendering these reaction buttons, you can either delete that code or hide it with CSS.
Here’s the easiest method:
- Right-click on the reaction button area on the webpage and select “Inspect” to open developer tools.
- Find the container element that holds all reaction buttons.
- If you prefer to hide them temporarily, add a CSS rule like
display: none;to that element.
For example, if the container has an ID called reaction-container, you could add this style:
css
reaction-container {
display: none;
}
If you’re comfortable with editing code directly, you could remove the section that generates these reaction buttons from the HTML.
Keep in mind that this change is only temporary—refreshing the page will bring back the buttons unless you use custom CSS with a browser extension or modify the website’s code permanently (which usually requires admin access).
This method provides a straightforward way to clean up your view by removing reaction buttons when they’re unnecessary for you.





