🏠 Home 

ChatGPT Auto-Continue (September 2024)

Updated September 2024. Fun fact: Written 99% by ChatGPT.

  1. // ==UserScript==
  2. // @name ChatGPT Auto-Continue (September 2024)
  3. // @version 1.0
  4. // @description Updated September 2024. Fun fact: Written 99% by ChatGPT.
  5. // @author ∫(Ace)³dx [Technically ChatGPT though]
  6. // @match https://chatgpt.com/c/*
  7. // @icon https://cdn-icons-png.flaticon.com/512/6471/6471695.png
  8. // @license MIT
  9. // @grant none
  10. // @namespace https://greasyfork.org/users/449798
  11. // ==/UserScript==
  12. // Function to check for the button and click it if found
  13. function checkAndClickButton() {
  14. try {
  15. // Evaluate the XPath expression
  16. let xpath = '/html/body/div[1]/div[2]/main/div[1]/div[2]/div/div[1]/div/form/div/div[1]/div/div/div/div/button';
  17. let r###lt = document.evaluate(xpath, document, null, XPathR###lt.FIRST_ORDERED_NODE_TYPE, null);
  18. let button = r###lt.singleNodeValue;
  19. // If the button is found, click it
  20. if (button) {
  21. button.click();
  22. console.log('Button clicked!');
  23. }
  24. } catch (error) {
  25. console.error('Error checking or clicking the button:', error);
  26. }
  27. }
  28. // Set an interval to check every 500 milliseconds
  29. setInterval(checkAndClickButton, 500);