Preblem with userscript

9 views
Skip to first unread message

webm...@phpecono.com

unread,
Feb 2, 2012, 9:34:29 AM2/2/12
to Chromium-extensions
Hey guys i am currently devellopping a userscript extenssion in
firefox. It works great but when i try to run it in chrominium the
light box does not seem to be working. The light box is installed
inside the website my script is executing from. I was wandering if
this issue is because that chrominium transforms the userscript into
an extenssion and there for can not use the scripts of the page. How
can i go arround this problem? The installed light box is
ajax_thickbox.

Ernest Delgado

unread,
Feb 3, 2012, 4:24:58 PM2/3/12
to Chromium-extensions
You are right.
Here you can see how the Javascript of the page and the one from the
extension can't communicate.
http://code.google.com/chrome/extensions/content_scripts.html#execution-environment
However, in the next section you can see one possible workaround with
custom events.
http://code.google.com/chrome/extensions/content_scripts.html#host-page-communication


On Feb 2, 6:34 am, "webmas...@phpecono.com" <webmas...@phpecono.com>
wrote:
Reply all
Reply to author
Forward
0 new messages