Copy Minified Code for Mobile
code

    
javascript:(function(){

  alert("Click the chat container you want to start from.");

  function handler(ev) {
    ev.preventDefault();
    ev.stopPropagation();

    const start = ev.target;
    document.removeEventListener('click', handler, true);

    let el = start;
    while (el && el !== document.documentElement) {
      el.style.setProperty('overflow','visible','important');
      el.style.setProperty('overflow-y','visible','important');
      el.style.setProperty('overflow-x','visible','important');
      el.style.setProperty('max-height','none','important');
      el.style.setProperty('height','auto','important');
      el.style.setProperty('max-width','none','important');
      el.style.setProperty('width','auto','important');
      el = el.parentElement;
    }

  }

  // Capture the NEXT click anywhere
  document.addEventListener('click', handler, true);

})();


    

  

How to Install a Bookmarklet on iPhone Safari

Follow these steps to add a custom JavaScript bookmarklet to Safari on iOS:

Step 1 - Add a Normal Bookmark

  1. Open Safari.
  2. Tap the Share button.
  3. Select Add Bookmark.
  4. Name it anything you want - for example: Fix ChatGPT Printing.
  5. Save it (Favorites is recommended).

Step 2 - Edit the Bookmark

  1. Open your bookmarks.
  2. Tap Edit.
  3. Select the bookmark you created.
  4. Replace the URL with your JavaScript code, beginning with javascript:.
  5. Tap Done.

Step 3 - Use the Bookmarklet

  1. Navigate to the webpage where you want the script to run (e.g., ChatGPT).
  2. Open your bookmarks.
  3. Tap the bookmarklet.
  4. Your JavaScript code runs instantly inside the page.

Example Bookmarklet Format

Here's the structure all bookmarklets follow:

javascript:(function(){
  /* your code here */
})();
  

You can paste any valid JavaScript inside that wrapper.