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

Commit 8969491

Browse files
committed
handling the two google markups
1 parent 5c1eef9 commit 8969491

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

extension/background.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const analytics = new TestPilotGA({
99
ds: 'addon',
1010
an: 'Voice Fill',
1111
12-
av: '1.4.1'
12+
av: '1.4.2'
1313
});
1414

1515
browser.runtime.onMessage.addListener(event => {

extension/content.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,16 @@
227227
case "www.google.co.zw":
228228
case "www.google.co.uk":
229229
case "encrypted.google.com":
230+
if (document.getElementById("sfdiv")) {
231+
return {
232+
input: "lst-ib",
233+
anchor: "sfdiv"
234+
};
235+
}
230236
return {
231237
input: "q",
232238
anchor: "RNNXgb"
233-
}
239+
};
234240
case "duckduckgo.com":
235241
case "start.duckduckgo.com":
236242
if (document.body.classList.contains("body--serp")) {

extension/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Voice Fill",
4-
"version": "1.4.1",
4+
"version": "1.4.2",
55
"description": "Adds voice input to popular search pages in Firefox. Learn more about Voice Fill at https://testpilot.firefox.com",
66
"developer": {
77
"name": "Emerging Technologies Advanced Dev Team",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "voicefill",
33
44
"description": "This is a simple WebExtension that adds support to use Speech To Text as an input method in web pages.",
5-
"version": "1.4.1",
5+
"version": "1.4.2",
66
"author": {
77
"name": "Andre Natal & Fabrice Desré",
88
"url": "https://github.com/mozilla/speaktome"
@@ -15,7 +15,7 @@
1515
"eslint-plugin-mozilla": "0.3.2",
1616
"npm-run-all": "4.0.2",
1717
"prettier": "1.5.3",
18-
"web-ext": "1.10.0"
18+
"web-ext": "^1.10.0"
1919
},
2020
"dependencies": {
2121
"bodymovin": "4.9.0",

0 commit comments

Comments
 (0)