Tiago, Remember you have to tell your manifest to get permission from the tab. The first part explains this: http://code.google.com/chrome/extensions/tabs.html
<http://code.google.com/chrome/extensions/tabs.html>After you do that, you can see in your debug window the tabs that are loading. Click on your background.html in the extension page to bring up the inspector window. This is an awesome video: http://www.youtube.com/watch?v=IP0nMv_NI1s -- Mohamed Mansour On Thu, Dec 10, 2009 at 2:52 PM, Tiago Tavolari <espect...@gmail.com> wrote: > Well, tried here and got nothing! > > This is my manifest.json: > > { >> >> "name": "AdBlockOS", >> >> "version": "0.1", >> >> "description": "Outerspace sem propagandas (por espectral)", >> >> "background_page": "background.html" >> >> } >> >> > And this is my background.html: > > <script> >> >> chrome.tabs.onUpdated.addListener(function(tabId, info) { >> >> if (info.status === 'loading') >> >> console.log('Loading url ... ' + info.url) >> >> }); >> >> } >> >> </script> >> >> > Nothing. > > Where should "Loading url..." be shown? > > And what I really want to do is the following: > While the page is loaded, get EVERY line of source code and proccess some > if's. > > Thanks in advance for your help. > > 2009/12/10 Mohamed Mansour <m...@chromium.org> > > Hi Tiago, >> >> You can take a look at the docs and see how it is defined: >> http://code.google.com/chrome/extensions/tabs.html#event-onUpdated >> >> <http://code.google.com/chrome/extensions/tabs.html#event-onUpdated>Basically, >> in your background.html page you can do the following: >> >> chrome.tabs.onUpdated.addListener(function(tabId, info) { >> if (info.status === 'loading') >> console.log('Loading url ... ' + info.url) >> }); >> >> -- >> Mohamed Mansour >> >> On Wed, Dec 9, 2009 at 4:19 PM, Tiago Tavolari <espect...@gmail.com>wrote: >> >>> Can somebody create a tab onupdated example extension, just to see how it >>> works? >>> >>> The full package, if possible. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Chromium-extensions" group. >>> To post to this group, send email to >>> chromium-extensi...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/chromium-extensions?hl=en. >>> >> >> >> > -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.