google-chrome-extension

jQuery .live() function not working in Google Chrome extensions

Functions added to selectors using .live() are not working consistently in Google chrome extensions. For example, I have a simple function that looks like this: $("#sampleSelectID").live('click', function() { alert("CLICKED!"); }); and the alert does not fire. If I debug the extension there are no javaScript errors. Strangely, ...

LocalStorage in Greasemonkey

I've started writing a greasemonkey script, and am facing problems performing localstorage in the Greasemonkey script. The only way I could figure out localstorage in GM is by creating another instance of Javascript in the newElement.innerHTML DOM property, but there the rest of my variables are inaccessible. Any ideas ? Here's the Grea...

appended text immediately dissappears

Hi, When I add text to a div in a chrome extension popup, the text appears for a fraction of a second and then immediately dissappears again. This is a small example: <html> <head> <script> function show() { var newName = document.showMe.textToShow.value; var txt = document.createTextNode(newName); ...

chrome api get working directory

I'm aware of chrome.extension.getURL(), which resolves a file to a url. Is there any way to get the current working directory (i.e. a pwd) in a similar fashion? ...