Skip to content

Commit

Permalink
Changed navivoice.org to getnavivoice.com
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfc committed Dec 23, 2018
1 parent 150e17f commit cca8872
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "NaviVoice",
"short_name": "NaviVoice",
"description": "Surf the web with just your voice!",
"version": "0.1.3",
"version": "0.2.1",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",

"browser_action": {
Expand Down
12 changes: 10 additions & 2 deletions scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ else {
});
});
}
else if (url.startsWith("https://www.youtube.com")) {
chrome.tabs.executeScript(null, {file: "scripts/jquery-3.1.1.min.js"}, function () {
chrome.tabs.executeScript({
code: "$('#search-icon-legacy').trigger('click');"
//$('button[type=\"submit\"]').trigger('click');
});
});
}
else {
chrome.tabs.executeScript(null, {file: "scripts/jquery-3.1.1.min.js"}, function () {
chrome.tabs.executeScript({
Expand Down Expand Up @@ -264,7 +272,7 @@ else {
}
// chrome help
else if (event.results[i][0].transcript.toLowerCase().trim().substr(7, event.results[i][0].transcript.trim().length - 1) == "help") {
chrome.tabs.create({url: "http:https://www.navivoice.org/commands.html"});
chrome.tabs.create({url: "http:https://www.getnavivoice.com/commands.html"});
utterance = new SpeechSynthesisUtterance("Opening help.");
}
// chrome toggle
Expand Down Expand Up @@ -570,7 +578,7 @@ else {
}
// help
else if (event.results[i][0].transcript.toLowerCase().trim() == "help") {
chrome.tabs.create({url: "http:https://www.navivoice.org/commandsNoPrefix.html"});
chrome.tabs.create({url: "http:https://www.getnavivoice.com/commandsNoPrefix.html"});
utterance = new SpeechSynthesisUtterance("Opening help.");
}
// toggle
Expand Down

0 comments on commit cca8872

Please sign in to comment.