Chrome extensions: variable undefined in chrome extension even though it exists in console
问题 In my content scripts for my chrome extension, I dynamically load a external js file onto a html page once it is finished loading. This js file I load will define a variable called rfk . I have a set Interval for when rfk is defined, it will execute a script. However, even after succesfully loading the page, my content script will never find rfk to be defined, even though I can check through the browser console and find that rfk exists. "content_scripts": [ { "matches": ["*://www.att.com/*"],