google-chrome-extension

jquery anchor to html extract

I would like to implement something similar to the Google quick scroll extension with jquery for the extracts of a search result, so when the full document is opened (within the same website) it gives the user the opportunity to go straight to the extract location. Here is a sample of what I get returned from the search engine when I se...

jQuery.ajax call fails inside Chrome extension

I'm porting one of my Firefox extensions to Chrome, and I'm running into a little problem with an AJAX query. The following code works fine in the FF extension, but fails with a status of "0" in Chrome. function IsImage(url) { var isImage = false; var reImageContentType = /image\/(jpeg|pjpeg|gif|png|bmp)/i; var reLooksLikeIm...

How should I securely store passwords and use http auth in a chrome extension

I'm making a chrome extension that requires fetching an xml file from a secure server. I'm currently using XMLHttpRequest() to make a call to the server https://username:[email protected] which returns an xml object that I can parse and display. I want this extension to be available for more than just my hobby use, so it needs an...

Chrome extension API to manipulate other installed Chrome extensions?

I'm writing a Google Chrome extension that needs to do a lot of things with other extensions, such as: List installed extensions and read their IDs Request extension installation, update and removal (preferably without bothering the user) Modify extension settings and so on. Which of these are possible, and which are not (due to e.g....

Display Dialog from Chrome Extension

I am trying to display a modal Javascript dialog box in Chrome when a user creates a bookmark. However, after trying Closure and SimpleModal+JQuery, I can't seem to get a dialog box to appear. Is this a restriction of extensions in Chrome, or am I doing something very wrong? (I'm still learning Javascript, so my lack of understanding ...

Detect browser's default search engine in Javascript

I'm writing a piece of code for a Chrome+Firefox extension that redirects users to a search results page for a given string. Currently we redirect to the google search results, and instead of building our own option for search engines, I was wondering if there is a way to use whatever search engine the browser is set to use. I was wonde...

How to send an alert in chrome extensions?

I am trying to get some experience with chrome extensions. I have a question though. Let's say I am writing an extension that everytime you see the word (wow) in the url, i will alert the user with a red page that they have to click on accept to pass, or an alert box that they have to get through in order to see the page, how would i: 1...

Google Chrome Extension - Accessing The DOM

I have been searching around the web to find out how to access the current tabs DOM to extract information out of a page from the background.html. So far I have had no luck, or at least nothing I could get to work properly. To state the problem simply. I would like to get src of a iFrame on the page. Any Suggestions? ...

Replicating Google Chrome Browser Actions popup Effect in a Firefox Extension

Hi, Chrome Browser Actions provide a really nice popup effect by default. Hovering over the toolbar icon provides a neat hover effect. Clicking the toolbar icon shows a nice animation that opens the popup html file. The popup is aligned with the button that is pressed. Clicking the toolbar icon again fades out the popup. Any tho...

best method for creating a universal extention/plugin

Hi, I'm looking to create an extension for the leading browsers (firefox, safari and ie). Its rather simple, and I'm looking for the most efficient way to go about this. I need to get the hostname of the current site the user is on, and if it matches a certain parameter(eg, mysite.org), I'll need to append to the link some extra data a...

Keyboard Shortcuts in Google Chrome / Chromium Extensions

I've created a basic extension for Google Chrome to change the behavior of which tab is selected when you close a tab so that the selected tab is the last one you had selected instead of just the one before the tab you closed. I want to add keyboard shortcuts, and I've found a way to do that using jquery and jquery hotkeys, but the prob...

Location of CRX in chrome after installation?

Im doing a project that involves browser extension. In firefox i do know the location of where the extensions will be after you download them (under your profile folder) and I was wondering where does Chrome hides the crx after you install them? Especially in mac. I'm doing this coz i find it easier to build extension by look how other ...

Download images for google chrome extension

Hi all, i'm trying to build a batch image downloader in chrome. Basically, i will overlay a small download square to each image on the page and user clicks on it to download. Or the user can click to download all images on a page. I'm currently stuck on figuring out how to download the images. The best i can come up with is to use XHR to...

Do Chrome extensions have access to local storage?

Is it possible to store data in a way that will be accessible after a browser restart in the context of a chrome extension? ...

Chrome extension: How to save a file on disk

Hi, I'm currently creating an extension for google chrome which can save all images or links to images on the harddrive. The problem is I don't know how to save file on disk with JS or with Google Chrome Extension API. Have you got an idea ? ...

jQuery.ajax() sends POST requests as GET in a Chrome extension

I'm building a small Chrome extension that must send messages through a POST http request to a server in my company network, and I'm using jQuery 1.4.1 to speed up the development of the javascript part. I have this code to send the request: function send() { $.ajax({ url: "http://mycompany.com/update", method: "P...

How to open new incognito window with Javascript? (Google Chrome)

Hi, I want to help my friend (and not myself ;)) open a porn website in a new incognito window when he performs some mouse gestures (custom stroke in Mouse Stroke - Chrome Extension). ...

Editting CSS in iframe that sets Select tag's text color to black?

This is a very specific question for a Google Chrome extension. http://www.meebo.com/mobile/ This page is where you're kicked to when you go to Meebo.com on an iPhone or Droid phone. But if you notice, the Status box where you can set yourself away or what you want your status to be has white text on a white background. In order to ge...

chrome extension - ip domain permissions

Hello all, My chrome extension needs to send requests to a server on my home LAN, where I don't have DNS setup, so I'm using raw IP's with everything. I'm sending these requests via my background page, so with proper permissions in the manifest file it should let me do it. This is what I have in the manifest: "permissions": [ "http...

How do I transcode a javascript string to iso-8859-1?

I'm writing a chrome extension that works with a website that uses iso-8859-1. Just to give some context what my extension does is making posting in the site's forums quicker by adding a more convenient post form. The value of the textarea where the message is written is then sent through an ajax call (using jQuery). If the message cont...