Skip to content
Advertisement

Tag: google-chrome-extension

How to wait until an element exists?

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

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

Advertisement