Skip to content

Instantly share code, notes, and snippets.

View abmantis's full-sized avatar
:shipit:

Abílio Costa abmantis

:shipit:
View GitHub Profile
@a9udn9u
a9udn9u / geforce-now-resolution-interceptor.py
Last active November 3, 2025 00:01
GeForce Now 1440P on Linux Chrome
import json
import re
from mitmproxy import http
url_pattern = re.compile(r"^.*\.nvidiagrid.net/v2/session")
user_agent_pattern = re.compile(r"(Mozilla\/[\d\.]+) \(.+?\)")
def request(flow: http.HTTPFlow) -> None:
# Check if the request matches the regex pattern
if url_pattern.match(flow.request.pretty_url):