All Questions

346
votes
4answers
173821 views

Insert code into the page context using a content script

I'm learning how to create Chrome extensions. I just started developing one to catch YouTube events. I want to use it with YouTube flash player (later I will try to make it compatible with HTML5). ma...
47
votes
1answers
46269 views

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 I am having trouble trying to understand how to do this. From what I understand, I need to do the f...
8
votes
1answers
2592 views

Chrome extension is not loading on browser navigation at YouTube

Let's say I have an extension that loads when you arrive at a YouTube video page.I have noticed that when one navigates back and forth using the Chrome buttons, the extension most probably won't load....
120
votes
3answers
61369 views

Chrome extension: accessing localStorage in content script

So, I have an options page where the user can define certain options and it saves it in localStorage: options.html Now, I also have a content script that needs to get the options that were defined in...
14
votes
1answers
12303 views

My CSS is not getting injected through my content script

Can anyone explain this to me. I'm trying to inject a CSS file onto a webpage using the content_script with Google extensions, but my css file never gets added to the webpage. Can someone tell me what...
21
votes
3answers
27087 views

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 tries to post some data back to the server, however that is not taking place. The Jav...
11
votes
1answers
1575 views

Optionally inject Content Script

Content Script can be injected programatically or permanently by declaring in Extension manifest file. Programatic injection require host permission, which is generally grant by browser or page action...
12
votes
1answers
11479 views

Access window variable from Content Script

I have a Chrome Extension that is trying to find on every browsed URL (and every iframe of every browser URL) if a variable window.my_variable_name exists. So I wrote this little piece of content scr...
6
votes
1answers
799 views

How to trigger a Chrome extension, content-script for a given hash in the URL?

My matches scheme: "content_scripts" : [ { "matches" : [ "https://stackoverflow.com/questions#epic*" ], "js" : ["silly.js"] } ], So if the user went to a webpage (like https://stack...
35
votes
4answers
57129 views

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 labeled as !important. Is this possible? For instance, if I want to get rid of the ...

Previous Next