I'm working on an Chrome extension which will excute these things when I access "https://www.google.com/"
- Fills the search bar with "JAV"; this works
- Then auto click the search button ; this doesnt work, even on any element that I tried to auto click.
manifest file:
{
"manifest_version": 2,
"name": "google extension",
"version": "0.1.0",
"description": "google extension",
"browser_action":{
"default_icon":"IMG/ghost.png"
} ,
"content_scripts": [{
"js": ["JS/jquery.min.js","JS/changecolor.js"],
"matches": ["https://www.google.com/*"],
"run_at": "document_end"
}]
}
changecolor.js file:
$("#tsf").css("background","black"); // this works
$("#lst-ib").val("JAV"); // this works
$(".jsb").eq(2).find("input").click(); //this doesnt work
Am I missing something?