I have a simple chrome userscript which modifies the tab key for a particular webpage. This worked fine until chrome v27 came. This is the code:
script.js:
// ==UserScript==
// @name Name
// @namespace http://www.someNameSpace.com/
// @description Description
// @include http://weburl1.com/*
// @include http://weburl2.com/*
// ==/UserScript==
function key_event(event){
if(event.keyCode == 9){ //get tab pressed
/* do something here */
}
}
document.addEventListener("keydown", key_event, true);
manifest.json:
{
"content_scripts": [ {
"all_frames" : true,
"exclude_globs": [ ],
"include_globs": [ "http://weburl1.com/*", "http://weburl2.com/*" ],
"js": [ "script.js" ],
"matches": [ "http://*/*", "https://*/*" ],
"run_at": "document_idle"
} ],
"converted_from_user_script": true,
"description": "Description",
"key": "kVJUyHgHhlZtX2koEeV1ZF7yYHXfLyCyprC+I18+QzI=",
"name": "Name",
"version": "1.01"
}
Edit: i turns out that the script is still running but only on initally loaded frames. So i added
"all_frames" : true,
to the manifest which did not work.
Is there anything i can do about it? Thanks for your help
With Chrome version 27.0.1453.110 the script is working again. See also https://code.google.com/p/chromium/issues/detail?id=242890