in order for this to work you need
some parts of this chromium extension: https://codeberg.org/Troniu/iframe_ok
some of these 13 scripts depending on what functionality you want: https://bashify.io/i/aHPc5E
all these scripts can be found on:
https://greasyfork.org/en/users/1435046-cochinver
EDIT:
you also need a local proxy run mitmweb --set stream_large_bodies=0 -s /Users/a/Documents/rewrite_cookies.py
rewrite_cookies.py:
from mitmproxy import http
def responseheaders(flow: http.HTTPFlow) -> None:
url = flow.request.pretty_url
# Only target chatgpt.com or auth.openai.com responses
if not any(
domain in url
for domain in ["chatgpt.com", "auth.openai.com", "claude.ai", "anthropic.com"]
):
return
# Grab and remove all existing Set-Cookie headers
cookies = flow.response.headers.get_all("set-cookie")
if not cookies:
return
flow.response.headers.pop("set-cookie")
for raw in cookies:
# Split into the name=value pair and attributes
parts = [p.strip() for p in raw.split(";")]
name_val = parts[0]
attrs = {}
# Parse existing attributes
for attr in parts[1:]:
if "=" in attr:
k, v = attr.split("=", 1)
attrs[k.lower()] = v
else:
attrs[attr.lower()] = None
# Enforce SameSite=None (replacing any existing setting)
attrs["samesite"] = "None"
# Enforce Secure flag
attrs["secure"] = None
# Rebuild the Set-Cookie header
new_cookie = name_val
for k, v in attrs.items():
# Capitalize attribute name for output
k_out = k.capitalize()
if v is None:
new_cookie += f"; {k_out}"
else:
new_cookie += f"; {k_out}={v}"
flow.response.headers.add("set-cookie", new_cookie)