Greasemonkey Test Page
Unless this text gets overwritten, you should install test.user.js first and reload the page.
This page tests various aspects of creating Greasemonkey scripts for multiple browsers.
- unsafeWindow
- Greasemonkey on Firefox uses the unsafeWindow variable to give Greasemonkey scripts access to the main page in a way that works across callbacks.
I found that I needed to use this to set onbeforeunload and onclick handlers.
Here's the test:
- #unsafeWindow (Firefox ONLY!) - Add an onclick handler using unsafeWindow.document.getElementById.
- #window - Add an onclick handler using window.document.getElementById.
- GM_setValue, GM_getValue
- detecting values...