- Iggyhopper
- |
- Exalted Mythic Member
AV=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
BG=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
Posted by: dazarobbo
Posted by: Tidus Zero
It doesn't seem to work even as an extension.
Uncaught ReferenceError: unsafeWindow is not defined
Unless you meant without the unsafeWindow line, but it doesn't work then either.Chrome doesn't let you access the Javascript on the page. The unsafeWindow hack only works in Firefox (and Opera, I think).
Another possible solution to using jQuery is to fire off a HTTP request to get bungie.net's copy of jQuery (here), but force Chrome to load it from its cache. Not sure if you can do that or not, but it sounds good in theory.Chrome allows you to include scripts, like jQuery, alongside your script in extensions.
Although this still won't allow you to use variables on the page, you can use jQuery with minimal work.
Edit: I just thought of this.
Use localStorage as a middle-man and this will set a page variable to localStorage, and then in the script, retrive it from localStorage.
location.href = 'javascript:localStorage.setItem(\'pageVar\', pageVar)';
var extractedPageVar = localStorage.getItem('pageVar');
I haven't tried using it on huge objects though.
[Edited on 01.20.2011 7:15 PM PST]