Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
handling the two google markups
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenatal committed Sep 6, 2018
1 parent 5c1eef9 commit 8969491
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const analytics = new TestPilotGA({
ds: 'addon',
an: 'Voice Fill',
aid: '[email protected]',
av: '1.4.1'
av: '1.4.2'
});

browser.runtime.onMessage.addListener(event => {
Expand Down
8 changes: 7 additions & 1 deletion extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,16 @@
case "www.google.co.zw":
case "www.google.co.uk":
case "encrypted.google.com":
if (document.getElementById("sfdiv")) {
return {
input: "lst-ib",
anchor: "sfdiv"
};
}
return {
input: "q",
anchor: "RNNXgb"
}
};
case "duckduckgo.com":
case "start.duckduckgo.com":
if (document.body.classList.contains("body--serp")) {
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Voice Fill",
"version": "1.4.1",
"version": "1.4.2",
"description": "Adds voice input to popular search pages in Firefox. Learn more about Voice Fill at https://testpilot.firefox.com",
"developer": {
"name": "Emerging Technologies Advanced Dev Team",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "voicefill",
"id": "[email protected]",
"description": "This is a simple WebExtension that adds support to use Speech To Text as an input method in web pages.",
"version": "1.4.1",
"version": "1.4.2",
"author": {
"name": "Andre Natal & Fabrice Desré",
"url": "https://github.com/mozilla/speaktome"
Expand All @@ -15,7 +15,7 @@
"eslint-plugin-mozilla": "0.3.2",
"npm-run-all": "4.0.2",
"prettier": "1.5.3",
"web-ext": "1.10.0"
"web-ext": "^1.10.0"
},
"dependencies": {
"bodymovin": "4.9.0",
Expand Down

0 comments on commit 8969491

Please sign in to comment.