Auto Voice Chat mode on ChatGPT website.

turn on the voice chat mode automatically when you open chatgpt.com

  1. // ==UserScript==
  2. // @name Auto Voice Chat mode on ChatGPT website.
  3. // @version 0.1
  4. // @description turn on the voice chat mode automatically when you open chatgpt.com
  5. // @author 4kliksAlex
  6. // @match https://chatgpt.com/*
  7. // @grant none
  8. // @license GPLv3
  9. // @namespace https://greasyfork.org/users/1309012
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. const selector = '#thread-bottom > div > div > div.max-xs\\:\\[--force-hide-label\\:none\\].relative.z-1.flex.h-full.max-w-full.flex-1.flex-col > form > div.flex.w-full.cursor-text.flex-col.items-center.justify-center.rounded-\\[28px\\].bg-clip-padding.contain-inline-size.overflow-clip.shadow-short.bg-token-bg-primary.dark\\:bg-\\[\\#303030\\] > div > div.bg-primary-surface-primary.absolute.start-2\\.5.end-0.bottom-2\\.5.z-2.flex.items-center > div > div.absolute.end-2\\.5.bottom-0.flex.items-center.gap-2 > div > div > span > button';
  16.  
  17. const interval = setInterval(() => {
  18. const btn = document.querySelector(selector);
  19. if (btn) {
  20. btn.click();
  21. clearInterval(interval);
  22. }
  23. }, 300);
  24.  
  25. // Optional: Stop trying after 30 seconds
  26. setTimeout(() => clearInterval(interval), 30000);
  27. })();