Skip to content
Advertisement

Tag: google-chrome

Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22

I’ve written a webapp that allows you to store the images in the localStorage until you hit save (so it works offline, if signal is poor). When the localStorage reaches 5MB Google Chrome produces an error in the javascript console log: Uncaught Error: QUOTA_EXCEEDED_ERR: DOM Exception 22 How do I increase the size of the localStorage quota on Google Chrome?

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

Copy text to clipboard from bookmarklet

I’m trying to write a little bookmarklet that can extract some text from the active page and load that into the clipboard. The extraction is easy enough, but I’m really stuck doing the clipboard-copying part. Currently, I’m just alerting the text and hitting Ctrl+C to copy the text from the message-box, which isn’t ideal. I’ve read How to Copy to

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