<script language="JavaScript" type="text/javascript">
var _editor_lang = "en";
var _jive_is_reply = "true";
var _jive_gui_quote_text = "BLAH BLAH BLAH BLAH BLAH";
var _jive_tables_enabled = "true";
var _jive_images_enabled = "true";
</script>
I need to get that BLAH BLAH BLAH text (because I want to insert it
elsewhere), but how do I extract it?
thanks,
Seven
unsafeWindow._jive_gui_quote_text
unless scripts on the page have changed it.
(I did try to look it up, if that's what that "umm" means.)
On 2010-02-27 11:07, Seven wrote:
> Thanks, Rod!
>
> (I did try to look it up, if that's what that "umm" means.)
--
cc | pseudonymous |<http://carlclark.mp/>
--
‖ Confidence is the feeling you have before you really understand the
problem. ‖ http://tagzilla.mozdev.org v0.066
--
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemon...@googlegroups.com.
To unsubscribe from this group, send email to greasemonkey-us...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
The exploit shown in this thread has been fixed since then. This
means that the page doesn't have access to the privileged GM_* api
anymore, at least in this way. I still don't know whether this makes
unsafeWindow actually safe (up to our understanding of the risks), or
if there are further evil actions possible that the page could carry
out and that don't involve GM_*.
Actually this is exactly what you should avoid. The mere fact of
mentioning "unsafeWindow.something" is (potentially) unsafe, even if
"something" is a variable, since the page can define "something" to be
a getter method that can escalate the call stack back until reaching
the Greasemonkey sandbox scope and do things there with the privileges
of this sandbox, if any. The current release of Greasemonkey makes
provisions for hindering access to the GM_* api, I don't know if there
are other risks.
Well said. The unsafeWindow is unsafe specifically because Javascript
is so powerful and flexible. A blessing and a curse. In short, there
are plenty of good ways to interact with the content page, if that's
really what you want to do:
http://wiki.greasespot.net/Category:Coding_Tips:Interacting_With_The_Page