public marks

PUBLIC MARKS from decembre with tags javascript & unsafeWindow

12 March 2010 07:00

12 March 2010 06:15

unsafeWindow - Injecting JS functions into the page from a Greasemonkey script on Chrome - Stack Overflow

I have a Greasemonkey script that works just fine in Firefox and Opera. I struggle with getting it to work in Chrome, however. The problem is injecting a function into the page that can be invoked by code from the page. Here's what I'm doing so far: First, I get a helper reference to the unsafeWindow for Firefox. This allows me to have the same code for FF and Opera (and Chrome, I thought).

decembre's TAGS related to tag javascript

ajax +   animation +   api +   article +   bibliotheque +   bibliotheque2.0 +   blog +   bookmarklet +   browser +   carte +   checkbox +   code +   comment +   compiler +   convert +   css +   declaration +   demo +   design +   dev +   development +   documentation +   dom +   editeur +   editor +   example +   exemple +   extension +   fichier +   firebug +   firefox +   flash +   flickr +   FlickrSurf+ +   forum +   free +   function +   generateur +   github +   google +   greasemonkey +   guide +   hack +   howto +   htlm +   html +   image +   interface +   java +   jQuery +   json +   lab +   library +   link +   liste +   maps +   ocr +   online +   opensource +   outil +   php +   player +   plugin +   programmation +   rechercher +   reference +   regex +   resource +   Responsive +   ressource +   script +   scroll +   scrollbar +   selection +   site +   stackoverflow +   svg +   tag +   test +   text +   tips +   tool +   transform +   tuto +   tutorial +   tutoriel +   user +   userscript +   utilitaire +   value +   video +   web +   web2.0 +   webdesign +   webdev +   xhtml +   xml +   xpi +   xul +   youtube +