Skip to content Skip to sidebar Skip to footer
Showing posts with the label Google Chrome Extension

Chrome Extension Content Script Re-injection After Upgrade Or Install

Answer : There's a way to allow a content script heavy extension to continue functioning aft… Read more Chrome Extension Content Script Re-injection After Upgrade Or Install

Callback Returns Undefined With Chrome.storage.sync.get

Answer : The chrome.storage API is asynchronous - it doesn't return it directly, rather pas… Read more Callback Returns Undefined With Chrome.storage.sync.get

Chrome Extension: Checking If Content Script Has Been Injected Or Not

Answer : is this safe enough to naively call chrome.tabs.executeScript every time the exte… Read more Chrome Extension: Checking If Content Script Has Been Injected Or Not

Chrome.webNavigation Undefined

Answer : On top of @rsanchez answer, if you call a chrome.webNavigation in the background scrip… Read more Chrome.webNavigation Undefined

Chrome Extension Manifest 'Matches'

Answer : You need to surround the value of the content_scripts field in square brackets: &quo… Read more Chrome Extension Manifest 'Matches'

Chrome.tabs Returns Undefined In Content Script

Answer : As content script has its own limitations, chrome.tabs is only available in backgrou… Read more Chrome.tabs Returns Undefined In Content Script