aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
authorTeddy Wing2015-05-24 16:49:47 -0400
committerTeddy Wing2015-05-24 17:00:32 -0400
commit5a9aab5e4ebb71770c67fa266ef651b2e8dcbbd6 (patch)
tree846bc06804cba8cc6243047626e10df3a8fa2bbc /main.js
parente8c2b483d0ac3540dad9374ee00a586db321e016 (diff)
downloadPeniquitous-5a9aab5e4ebb71770c67fa266ef651b2e8dcbbd6.tar.bz2
peniquitous.js: Try to listen for & simulate key events
Doesn't quite work. We're correctly listening for Ctrl-N/P presses, and seemingly correctly simulating corresponding up/down key presses, but it seems that the 'content scripts' can't trigger page events. See https://developer.chrome.com/extensions/content_scripts#execution-environment which describes the "isolated" execution environment of Chrome content scripts. Spent a while trying to figure out why this wasn't working. Finally looked back through my Chrome console history and found out what I did previously to get it working and it turns out that was the same thing I'm doing here. Finally had a moment of inspiration that prompted me to look into the different execution environment thing. Found a useful Stack Overflow post that descibes how to inject a script onto the page, which will give me access to the page's context: http://stackoverflow.com/questions/9515704/building-a-chrome-extension-inject-code-in-a-page-using-a-content-script Doing that should get this working, so that's what I'm going to try next.
Diffstat (limited to 'main.js')
0 files changed, 0 insertions, 0 deletions