mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
15 lines
352 B
Python
15 lines
352 B
Python
|
"""
|
||
|
Mirror all web pages.
|
||
|
|
||
|
Useful if you are living down under.
|
||
|
"""
|
||
|
from mitmproxy import http
|
||
|
|
||
|
|
||
|
def response(flow: http.HTTPFlow) -> None:
|
||
|
if flow.response and flow.response.content:
|
||
|
flow.response.content = flow.response.content.replace(
|
||
|
b"</head>",
|
||
|
b"<style>body {transform: scaleX(-1);}</style></head>"
|
||
|
)
|