I’m working on an Extension in Chrome, and I’m wondering: what’s the best way to find out when an element comes into existence? Using plain javascript, with an interval that checks until an element exists, or does jQuery have some easy way to do this? Answer DOMNodeInserted is being deprecated, along with the other DOM mutation events, because of performance
Tag: google-chrome-extension
Chrome-Extension: iterate through all tabs?
How would I iterate through all tabs a user has open and then check if they have a particular HTML item with id = ‘item’? Answer You can make it like this : After that to look after your item, if you can make it like this : Don’t forget that you can’t manipulate the HTML by using the “background
Chrome sendrequest error: TypeError: Converting circular structure to JSON
I’ve got the following… which calls the following.. However, my code never reaches “ZOMG HERE” but rather throws the following error while running chrome.extension.sendRequest Does anyone have any idea what is causing this? Answer It means that the object you pass in the request (I guess it is pagedoc) has a circular reference, something like: JSON.stringify cannot convert structures like
How to sync chrome extension options
I’ve made a Chrome extension with an options page. The data is saved in localstorage and works just fine. Chrome doesn’t sync the localstorage to the cloud, just the extensions. This means that any user data will not sync to other computers of the same google account. I can not find an API at http://developer.chrome.com/extensions/docs.html which allows me to sync