https://github.com/cleancocoa/webarchivecodable
Exposes legacy WebKit WebArchive as a Swift Codable to e.g. access pasteboard data from Safari
https://github.com/cleancocoa/webarchivecodable
Last synced: 4 months ago
JSON representation
Exposes legacy WebKit WebArchive as a Swift Codable to e.g. access pasteboard data from Safari
- Host: GitHub
- URL: https://github.com/cleancocoa/webarchivecodable
- Owner: CleanCocoa
- License: mit
- Created: 2022-11-19T23:04:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T15:53:08.000Z (over 3 years ago)
- Last Synced: 2025-03-31T13:28:30.835Z (about 1 year ago)
- Language: Swift
- Size: 879 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebArchiveCodable

Exposes legacy WebKit WebArchive as a Swift Codable to e.g. access pasteboard data from Safari
## Test Fixture Attribution
- `adele-for-vogue-in-2021.webarchive`
Condé Nast (through Vogue Taiwan), CC BY 3.0 , via Wikimedia Commons
- `christiantietze.de-post.webarchive`
Christian Tietze, CC BY SA 4.0
## Thanks
- Oliver Drobnik's [post at Cocoanetics](https://www.cocoanetics.com/2011/09/decoding-safaris-pasteboard-format/) that brought up the idea to not use WebKit objects, but simpler representations.
- [Diffusion Bee](https://diffusionbee.com/) for the macOS stable diffusion app to generate a wonky logo via "`Clean, sharp, document icon, Safari browser logo compass on a stylized clipboard, by Mac OS X, gradients, Colorful, icon, 3D Render`"
## License
Copyright © 2022 [Christian Tietze](https://christiantietze.de). Distributed under the MIT License. See [LICENSE file](./LICENSE) for details.