2021-02-09 00:05:02 +00:00
|
|
|
"""
|
|
|
|
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(
|
2022-04-26 11:53:35 +00:00
|
|
|
b"</head>", b"<style>body {transform: scaleX(-1);}</style></head>"
|
2021-02-09 00:05:02 +00:00
|
|
|
)
|