Claude dropdown flash fix

Fixes the dropdown menu briefly appearing in the top-left corner before snapping to the correct position

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Claude dropdown flash fix
// @match        https://claude.ai/*
// @version      1.0
// @license      MIT
// @description  Fixes the dropdown menu briefly appearing in the top-left corner before snapping to the correct position
// @run-at       document-start
// @namespace https://greasyfork.org/users/925666
// ==/UserScript==

const style = document.createElement('style');
style.textContent = `
  @keyframes _dd_fix { from { opacity: 0; } to { opacity: 1; } }
  .z-dropdown[data-open] {
    animation: _dd_fix 0s 0.1s both !important;
  }
`;
document.head.appendChild(style);