Location hack: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
comment3, |
remove obsolete content |
||
(20 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
The location hack is an older technique for crossing the barrier between the user script scope and the content window scope, when it exists. | |||
The previous version of this page may be read [http://wiki.greasespot.net/index.php?title=Location_hack&oldid=7202 via history]. | |||
In Firefox version 39.0.3 Mozilla patched a known [https://www.mozilla.org/en-US/security/advisories/mfsa2015-78/ security vulnerability]. | |||
As a side effect, this broke the location hack. | |||
Thankfully in modern versions of Firefox and Greasemonkey, the location hack is no longer necessary. | |||
Read about how to execute code in the content scope, like previously possible with the location hack, at [[Content Script Injection]]. | |||
[[Category:Coding Tips:Interacting With The Page]] |
Latest revision as of 15:54, 23 September 2015
The location hack is an older technique for crossing the barrier between the user script scope and the content window scope, when it exists. The previous version of this page may be read via history.
In Firefox version 39.0.3 Mozilla patched a known security vulnerability. As a side effect, this broke the location hack.
Thankfully in modern versions of Firefox and Greasemonkey, the location hack is no longer necessary. Read about how to execute code in the content scope, like previously possible with the location hack, at Content Script Injection.