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>"
|
||
|
)
|