On 9/4/2008 7:16 AM, esquifit wrote: > It is not necessary to explicitly embed the code into the page. The > trade-off is having to use unsafeWindow. The following works for me. > > var ip = unsafeWindow.java.net.Socket(document.location.host, > document.location.port || 80) > .getLocalAddress().getHostAddress(); > ...
Except that unsafeWindow is .... UNSAFE! It should never ever ever be used. Especially when there is a way to avoid it, and still get the desired results. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---
