This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name PayPal Asahi Linux Fix | |
| // @version v1.0 | |
| // @description Fix PayPal banning Asahi Linux | |
| // @author Asahi Lina | |
| // @match https://www.paypal.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=paypal.com | |
| // @grant unsafeWindow | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import zlib | |
| import io | |
| import sys | |
| PNG_MAGIC = b"\x89PNG\r\n\x1a\n" | |
| def parse_png_chunk(stream): | |
| size = int.from_bytes(stream.read(4), "big") | |
| ctype = stream.read(4) | |
| body = stream.read(size) |