Skip to content
TheChatArchiveThe Chat Archive
o3-2025-04-16· OpenAIHugging Face LMArena Human Preference 140K

Make inspect element code that removes "disabled"

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Coherecommand-a-03-2025’s answer.
  1. User

    Make inspect element code that removes "disabled"

  2. Assistant

    Here’s a dead-simple snippet you can paste straight into your browser’s DevTools → Console (or run via “Inspect Element” → “Console”) to strip the disabled attribute from everything on the page:

    // remove the "disabled" attribute from every element that has it
    document.querySelectorAll('[disabled]').forEach(el => el.removeAttribute('disabled'));
    

    Need something more targeted? Swap in one of these variations:

    // 1) Only enable a specific element by ID
    document.getElementById('myButton').removeAttribute('disabled');
    
    // 2) Only enable all inputs
    document.querySelectorAll('input[disabled]').forEach(el => el.removeAttribute('disabled'));
    
    // 3) Only enable elements matching a class
    document.querySelectorAll('.my-class[disabled]').forEach(el => el.removeAttribute('disabled'));
    

    Heads-up: This just edits the client-side DOM. If the site also checks on the server, you’ll still have to satisfy whatever rules it enforces after you click/submit.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.