Top "Content-script" questions

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

Use a content script to access the page context variables and functions

I'm learning how to create Chrome extensions. I just started developing one to catch YouTube events. I want to use …

javascript google-chrome google-chrome-extension youtube-api content-script
Chrome extension: accessing localStorage in content script

I have an options page where the user can define certain options and it saves it in localStorage: options.html …

google-chrome-extension local-storage content-script
Overriding !important with css or jquery

(This is using content scripts in a chrome extension) I need to overwrite some css properties that the webpage has …

jquery css content-script
sendMessage from extension background or popup to content script doesn't work

I know that question has been repeatedly asked in different ways, but I tried to go through all the answers (…

background google-chrome-extension sendmessage content-script
Chrome extension code vs Content scripts vs Injected scripts

I am trying to get my Chrome Extension to run the function init() whenever a new page is loaded, but …

javascript google-chrome-extension scope content-script
How to inject CSS using content script file in Chrome extension?

I'm trying to inject my CSS from JavaScript which is injected as content script: "content_scripts": [ { "matches": ["http://www.google.…

javascript google-chrome-extension content-script
Debugging Content Scripts for Chrome Extension

General Questions Hello! I'm delving into the world of Chrome Extensions and am having some problems getting the overall workflow …

debugging google-chrome-extension google-chrome-devtools content-script
How to get a content script to load AFTER a page's Javascript has executed?

My extension is supposed to load a content script, searchTopic.js, only after the page it's injected into has already …

javascript google-chrome-extension content-script
Chrome extension adding external javascript to current page's html

I am adding some external JavaScript to the end of the page via my chrome extension. The external JavaScript then …

javascript dom google-chrome-extension google-analytics content-script
How to use jquery in google chrome extension page action background.js?

I'm developing a "page action" google chrome extension. My manifest has: ... "background": { "scripts": ["background.js"] }, ... In my background.js file …

jquery google-chrome-extension content-script