Bind to 'window' rather than 'this' for the sake of compatibility with TamperMonkey.