ChatGPT on all sites (lite)+

Adds an overlay element with embedded iframe to all websites

  1. // ==UserScript==
  2. // @name ChatGPT on all sites (lite)+
  3. // @namespace http://your-namespace.com/
  4. // @version 1.0
  5. // @description Adds an overlay element with embedded iframe to all websites
  6. // @match http://*/*
  7. // @match https://*/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11. (function() {
  12. 'use strict';
  13. // Check if the script is already running or if the iframe element exists
  14. if (window.top !== window.self || document.getElementById('overlay-iframe')) {
  15. return;
  16. }
  17. // Create the div element
  18. var divElement = document.createElement('div');
  19. divElement.style.position = 'fixed';
  20. divElement.style.top = '0';
  21. divElement.style.left = '0';
  22. divElement.style.width = '100vw';
  23. divElement.style.height = '100vh';
  24. divElement.style.zIndex = '9999';
  25. // Create the iframe element
  26. var iframeElement = document.createElement('iframe');
  27. iframeElement.id = 'overlay-iframe';
  28. iframeElement.src = 'https://ora.ai/embed/1196e21a-d2be-4d23-91e0-870b1fae93ba';
  29. iframeElement.width = '17%';
  30. iframeElement.height = '40%';
  31. iframeElement.style.border = '0';
  32. iframeElement.style.borderRadius = '4px';
  33. // Append the iframe element to the div element
  34. divElement.appendChild(iframeElement);
  35. // Insert the div element at the top of the document body
  36. document.body.insertBefore(divElement, document.body.firstChild);
  37. })();
  38. // It's funny because sex