IE equivalent for GM_setValue and GM_getValue (Greasemonkey storage)

I have made a script that runs with no glitch on Firefox. I'm retrieving some data from external domain in an iframe to insert them in the page by using setInterval()

I have tried to use Trixie, so that it runs in IE, but it seems that functions GM_getValue and GM_setValue were not defined.

I've added these replacement functions, based on cookies, but I can't get it to work in a cross-domain way : http://www.howtocreate.co.uk/operaStuff/userjs/aagmfunctions.js

The cookie is created, and the data stored, but it's only accessible from the iframe, not from the top document. Вот базовая структура, которую я использовал: http://www.pastie.org/1889407
В test () у меня есть доступ к значению, хранящемуся в GM_getValue ("destination", ""), но это не так. не работает внутри функции check ().

1) Есть ли способ сделать cookie междоменным?

2) Существуют ли другие способы хранения данных в IE в междоменном режиме? (Я кратко слышал о Flash-объектах, но это не кажется легким решением ...) Другие реализации этих функций (getValue и setValue) найти довольно сложно.

3) Я использую Trixie, может быть, это не лучшее решение, какие-либо советы о том, какой плагин мне лучше использовать, чтобы иметь эти функции?

8
задан Michael Lumbroso 11 May 2011 в 16:01
поделиться