https://github.com/gingerbeardman/clickclack
Proof of concept of message passing between two Safari extensions.
https://github.com/gingerbeardman/clickclack
Last synced: about 1 year ago
JSON representation
Proof of concept of message passing between two Safari extensions.
- Host: GitHub
- URL: https://github.com/gingerbeardman/clickclack
- Owner: gingerbeardman
- Created: 2018-07-24T12:54:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2012-04-18T17:20:04.000Z (about 14 years ago)
- Last Synced: 2025-03-29T00:08:19.826Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a simple demonstration of the use of [`window.postMessage`](https://developer.mozilla.org/en/DOM/window.postMessage) to pass messages between two separate Safari extensions. There are a pair of extensions here, named Click [(download)](https://github.com/downloads/canisbos/ClickClack/Click.safariextz) and Clack [(download)](https://github.com/downloads/canisbos/ClickClack/Clack.safariextz). Each extension has a toolbar button. Clicking one extension's toolbar button will cause the other extension to flip its toolbar button image.
Note that message passing will fail if there is not a valid document in the current tab.