tag:blogger.com,1999:blog-20264889.comments2013-09-12T09:45:28.121+02:00voodooattack's blogAnonymoushttp://www.blogger.com/profile/11701047179670165384noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-20264889.post-21616853334319616832013-09-12T09:45:28.121+02:002013-09-12T09:45:28.121+02:00Thank you so much, this was brilliant.
Thank you so much, this was brilliant.<br />Ninahttps://www.blogger.com/profile/07394815196246242648noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-84168913651658822972013-06-05T18:16:01.188+02:002013-06-05T18:16:01.188+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/13871670086153239535noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-26563138765128764452013-06-05T17:03:18.828+02:002013-06-05T17:03:18.828+02:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/13871670086153239535noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-63168694661541912522013-05-01T23:56:32.015+02:002013-05-01T23:56:32.015+02:00This was just what I needed to make progress on my...This was just what I needed to make progress on my pet project. I went with the simple version customized for my needs. Thanks a bunch.Lars Ole Avery Simonsenhttps://www.blogger.com/profile/04279971886080625192noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-18749743120146591142013-04-21T18:33:49.135+02:002013-04-21T18:33:49.135+02:00Viva LINUX :DViva LINUX :DBahaa Elsayedhttps://www.blogger.com/profile/13560437873933455527noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-43453477412026839622012-12-11T15:04:25.691+02:002012-12-11T15:04:25.691+02:00Do you know if this script and general method will...Do you know if this script and general method will still work? I realise it's almost 3 years old now...<br /><br />Would it work if I wanted to fire an event and then extract the generated HTML elements from a page I do not control using an external script (eg content-script of a chrome extension)?<br /><br />ThanksBJhttps://www.blogger.com/profile/08531115051385623928noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-19650951979342630042012-10-30T01:26:23.014+02:002012-10-30T01:26:23.014+02:00Hello John,
You have to add injectScript to the c...Hello John,<br /><br />You have to add injectScript to the content script, it won't work in background.html<br /><br />Moreover, in your use case, you should not wrap the function in quotation marks, simply call it like so:<br /><br />injectScript(myFunc);<br /><br />Pass any arguments after the function object, it will be invoked in the page's context with any secondary parameters you provide.<br /><br />If you invoke injectScript with the first parameter as a string, it will create a script element in the page's context with whatever you passed as the first parameter inside, in that case your script will be executed and it will return the appended script element instead.Anonymoushttps://www.blogger.com/profile/11701047179670165384noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-24922670908517778122012-10-26T19:17:33.188+02:002012-10-26T19:17:33.188+02:00Umm.. so I'm a newbie and I have loaded an ext...Umm.. so I'm a newbie and I have loaded an external JS script I wrote. In there I have a function called myFunc(); <br /><br />If I type that in the console it works, but I cannot programmatically call it from my extension. <br /><br />So I added the injectScript() function to my extension - in the background.js. Now I wish to call myFunc so I say<br /> injectScript("myFunc()");<br />but that doesn't seem to work. <br /><br />What am I doing wrong?Iam Velahttps://www.blogger.com/profile/16691071719737507107noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-18988346430528350032012-03-22T18:34:32.458+02:002012-03-22T18:34:32.458+02:00Thanks! Its help me a lot.Thanks! Its help me a lot.Andreyhttps://www.blogger.com/profile/16468683415943766659noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-79476707100862384472011-12-13T04:28:07.107+02:002011-12-13T04:28:07.107+02:00Great post, really helped me out! The trick with a...Great post, really helped me out! The trick with appendChild() being synchronous is really neat, great job finding that out!<br /><br />Just one note - the `delete` operator can only be used to delete object properties, not variables. Also, it doesn't really matter - the DOM element is already deleted by the previous removeChild statement, and the garbage collector would also delete the variable as soon as it gets out of scope.shesekhttps://www.blogger.com/profile/09941516089692720667noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-18081260114294370972011-08-23T12:07:34.124+02:002011-08-23T12:07:34.124+02:00That truly Grand Voodoo, man. You made my day. Chr...That truly Grand Voodoo, man. You made my day. Chrome refused (with good reasons) to let my page load text resources on file: but extensions might do that.Laurent Caillettehttps://www.blogger.com/profile/02771404788303028391noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-8685366718263609302011-01-21T16:03:28.108+02:002011-01-21T16:03:28.108+02:00fuck! it's beautiful! thanks!fuck! it's beautiful! thanks!bobgubkohttps://www.blogger.com/profile/03659747266628650082noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-45586456987054121752010-11-19T16:35:17.922+02:002010-11-19T16:35:17.922+02:00Spent a day trying all kind of silly "API&quo...Spent a day trying all kind of silly "API" calls. You thing is the only one that helped.Sideritehttps://www.blogger.com/profile/15900117719824630437noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-48127761116035126242010-11-02T11:30:35.019+02:002010-11-02T11:30:35.019+02:00"of spaghetti and hot plate of failure"
..."of spaghetti and hot plate of failure"<br /><br />Looking at this title doesn't relate myself to neural networks.<br /><br />But it really is a nice and interesting post.<br /><br />You got a nice neural venting XDALien_13https://www.blogger.com/profile/02721157577690344978noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-49381360124647767712010-10-12T21:02:34.741+02:002010-10-12T21:02:34.741+02:00Holy crap this is awesome. I'm so glad I stumb...Holy crap this is awesome. I'm so glad I stumbled on this!Tom Shermanhttps://www.blogger.com/profile/06223395753846058252noreply@blogger.comtag:blogger.com,1999:blog-20264889.post-60270001798209145202009-07-21T14:47:16.722+03:002009-07-21T14:47:16.722+03:00As Neo has once said "Whoa!". Dude, are ...As Neo has once said "Whoa!". Dude, are you for real???<br /><br />Interesting post! Anxiously waiting for the rest :)Mohammed Gamalhttps://www.blogger.com/profile/13581638585609777869noreply@blogger.com