Stack Overflow: Hide AI Assist v1.0.0

← Back to Stylus Rules

Hides AI assist prompts and elements on Stack Overflow for a traditional question-browsing experience.

What it does

This style rule simplifies Stack Overflow by:

  • Remove AI elements: Hiding AI answer icons and related headings
  • Hide AI prompts: Removing the "Ask Stack" AI question input box
  • Clean layout: Adjusting margins to compensate for removed elements

Style Content

/* ==UserStyle==
@name           Stack Overflow: Hide AI Assist
@namespace      https://www.timhilton.xyz/stylus-rules/
@version        1.0.0
@description    Hides AI assist prompts and elements on Stack Overflow for a traditional question-browsing experience
@author         Tim Hilton
@homepageURL    https://www.timhilton.xyz/stylus-rules/stackoverflow/hide-ai-assist/
@updateURL      https://www.timhilton.xyz/stylus-rules/stackoverflow/hide-ai-assist/latest/hide-ai-assist.user.css
==/UserStyle==*/

@-moz-document domain("stackoverflow.com") {
h1:has(.iconAnswerAI),
h1:has(.iconAnswerAI) + *,
#mainbar > div:first-child:has(textarea#ask-stack-initial-question) {
    display: none;
}

#hide-this-if-you-want {
    margin-bottom: 20px;
}

#mainbar:has(textarea#ask-stack-initial-question) {
    /* Negative margin compensates for the hidden AI assist section height */
    margin-top: -83px;
}
}