google-chrome-extension

google chrome: any extensions for code syntax highlighting on some website?

any extensions for code syntax highlighting on some website? ...

Start an external application from a Google Chrome Extension?

How to start an external application from a Google Chrome Extension? So basically I have an executable file which does the job when you launch it. I need to be able to start it without a window (it is a console application) and pass the current URL to it in an argument, ...

Get text (not url) from address bar in Google Chrome

I want to retrieve the text that the user has typed into the currently visible address bar, using Javascript. This is for google chrome only. Is this possible? I know you can get the document URL via window.location.href, but I am unable to locate any javascript pertaining to current code inside the address bar/omnibar. Thank you for t...

stumped on jquery call inside chrome extension

In my chrome extension I call this: jsonPost = { email:"[email protected]", password:"demo", content: $('#selected_text').val(), notification_type: $('#notification_type').val(), name:$('#notification_name').val() } $.post('http://localhost:3000/api/create.json', jsonPost, function (data) { consol...

Pass variables to current tab via chrome extension

I am writing my first chrome extension, and I want to pass a variable to the currently opened tab and manipulate the DOM with it. My extension has a button, and when clicked, is executing this code: chrome.tabs.getSelected(null, function(tab) { chrome.tabs.executeScript(tab.id, { file: 'tabscript.js' }); }); This works fine, but ...

Javascript equivalent of php's parse_url

Hi, I am writing a chrome extension that change part of the url in the current tab and reload the page with the modified url. I am wondering if there is a Javascript equivalent of the php's parse_url function. Currently, I have to write my own parser with regex to extract parts of the url; however, I would think that such function alrea...

Chrome Extension Manifest 'Matches'

I'm trying my hands at a simple Chrome Extension, but am running into a problem with providing a value for the matches array in my content_scripts. { "name": "My Extension", "version": "1.0", "description": "My Extension Experiment", "browser_action": { "default_icon": "icon.png", "default_title": "Ext", "default_pop...

How do I access the popup page DOM from bg page in Chrome extension?

In Google Chrome's extension developer section, it says The HTML pages inside an extension have complete access to each other's DOMs, and they can invoke functions on each other. ... The popup's contents are a web page defined by an HTML file (popup.html). The popup doesn't need to duplicate code that's in the backgrou...

Calling CONTENT_SCRIPT JS From BROWSER_ACTION Popup HTML

I'm working on a Google Chrome Extension and would like to get an HTML from within my popup HTML to call functions within my loaded javascript file. My manifest follows: { "name": "Extension", "version": "1.0", "description": "Extension", "browser_action": { "default_icon": "icon.png", "default_title": "E...

How can I get current page dom

For example: <div id="d">ss</d> How can I get the div by id? ...

In background.html,how can I access current web page to get dom

In background.html,I want to get current web page dom. such as "getElementById() ...

Google Chrome Extension

How do I open a link in a new tab in the extension HTML. E.g. clicks on icon sees Google chrome window which has the window.html inside there are two links, one link to open a link in a new tab, other in the original tab. I used window.location, doesn't work like that. ...

Google Chrome Extension

Is there a way to replace inside the DOM of a page using the replace() in javascript In the source code I want to replace: <div class="topbar">Bookmark Us</div> to <div class="topbar"><span class="larger-font">Bookmark Us</span></div> When a Google Chrome extenstion is on the matched website of a URL and it will do the above. Any...

Can GWT's RPC be used in a chrome extension to talk to the server?

I would like to create a chrome extension with GWT. Is it possible to use GWT's RPC to communicate from the extension to the server? ...

How to sign in Chrome extension built with GWT using RPC.

I have an application built with GWT/Appengine/Jdo...and i am using Google User Service for authentication. Google Chrome Extensions can use OAuth...I don't really undestand OAuth yet.. Would GWT RPC have to be reworked to enable OAuth? Is there another way to authenticate users for Chrome Extensions? ...

Get URL and save it | Chrome Extension

Basically on my window (when you click the icon) it should open and show the URL of the tab and next to it I want it to say "Save", it will save it to the localStorage, and to be displayed below into the saved links area. Like this: Something like bookmarks :) ...

Listing down stored records localStorage | Google Chrome Extensions

How do I get to list down the stored records in the for loop? Basically I want it to list down the records like this: '<div id="record_' + number + '">' + localstorage value + '</div>' The number in the class should add 1 every record, e.g. 1, 2, 3, 4 every record it lists down, and so on. The localstorage value should show the loc...

How do I get Google Chrome's root bookmarks folder?

Hi, I'm trying to write a better bookmark manager in chrome extensions. The problem is there are no simple examples (that I can find) about how to actually use the bookmarks api (available here: http://code.google.com/chrome/extensions/bookmarks.html ) I've looked at the example source (when I d/led and installed it on my computer it di...

Get Title of selected tab

Is there a way of getting the value of the title of the page from a Google Extension? ...

Is there a jQuery DOM change listener?

Essentially I want to have a script execute when the contents of a DIV change. Since the scripts are separate (content script in chrome extension & webpage script), I need a way simply observe changes in DOM state. I could set up polling but that seems sloppy. ...