Top "Content-script" questions

fContent scripts are JavaScript files, used by browser extensions or add-ons.

What exactly are content script and background script in the Chrome extension?

I am working on a Chrome extension to auto-fill the demo data. I have created the JavaScript file xyz.js …

google-chrome google-chrome-extension background content-script
How to postMessage into iFrame?

I am developing a Chrome extension to use with my own Web-application, processing Web-pages (including cross-domain ones), loaded into iFrame …

javascript iframe google-chrome-extension postmessage content-script
Including Javascript files in a Chrome extension content script

I'm writing a Chrome extension, and want to write one JS file, that provides several expected functions that aren't present …

javascript google-chrome-extension include content-script
Difference between background script and content script in chrome extension

As the questions says, I just want to know the difference between background script and content script in chrome extension. …

google-chrome google-chrome-extension content-script
Chrome extension content script re-injection after upgrade or install

After the Chrome extension I'm working on is installed, or upgraded, the content scripts (specified in the manifest) are not …

google-chrome-extension browser-extension content-script
Clipboard Copy / Paste on Content script (Chrome Extension)

I am using a Content script to manipulate data in the DOM. I have been using document.execCommand('copy'); successfully …

google-chrome-extension content-script
Why is chrome.cookies undefined in a content script?

Whenever I try to read from a cookie using the chrome.cookies.get() function I get this error: TypeError: Cannot …

google-chrome google-chrome-extension content-script
How to to initialize keyboard event with given char/keycode in a Chrome extension?

I'm developing a Google Chrome extension which simulates keyboard events on a web-page. I found that event.initKeyboardEvent() does not …

javascript google-chrome google-chrome-extension content-script dom-events
Chrome Extension API: chrome.tabs.captureVisibleTab on Background Page to Content Script

My overall goal was to take a screenshot via the background page using: http://developer.chrome.com/extensions/tabs.html#…

javascript json google-chrome-extension content-script message-passing
How to transfer data between the content scripts of two different tabs?

In my extension I need to transfer some data from one tab's content script to another tab's content script. How …

google-chrome-extension content-script