📜 ⬆️ ⬇️

Voice search on the Internet for senior citizens

Recently, an old grandmother living in another city was given a laptop, Skype was configured to automatically answer incoming calls, and desktop shortcuts were created with links like: skype: username? Call & video = true

Shortcut keys F1-F12 are installed on each label. So grandma just press the desired key on the keyboard, according to the mark, and the call is the right person.

It turns out a decent savings in the intercity. For the Internet, a reduced rate for retirees is used.
')
Now I decided to add the opportunity for her to search for information on the Internet.

First, I installed the tampermonkey extension in Chrome.

In it created UserScript:

// ==UserScript== // @name   // @namespace http://tampermonkey.net/ // @version 0.1 // @author agran // @include https://www.google.ru/* // @require http://code.jquery.com/jquery-latest.js // ==/UserScript== /* jshint -W097 */ 'use strict'; var script1 = false; var intervalvar; (function (window, undefined) { if (window.self != window.top) { return; } $( document ).ready(function() { intervalvar = setInterval(Intervalfun, 300); }); })(window); function Intervalfun () { // #spchf -      // #spch -     // #gsri_ok0 - ,       // voice -        ,      google    if (/voice/.test(window.location.hash) && (($("#spchf").html() == '') && !$("#spch").is(':visible'))) { $("#gsri_ok0").click(); script1 = true; } // $(".r").find("a").attr('href') -      // script1 -         ,            URL . if (script1 && $("#spchf").html() != '' && $(".r").find("a").attr('href') != '') { window.open($(".r").find("a").attr('href'), "_self"); clearInterval(intervalvar); intervalvar = setInterval(Intervalfun, 2000); //      ,          . } } 

I checked that the microphone turns on, gave the microphone the necessary permissions.

Created on the desktop file "voice.bat" with the following contents:

taskkill /F /IM chrome.exe /T > nul
start "chrome-voice" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -start-maximized https://www.google.ru/#voice

This forcibly closes all Chrome processes and launches it with the window maximized, opening Google with the hashtag activating the script.

He created the shortcut “Voice Search” to it, and in it set Quick Access on the Num0 key.

Due to the forced closure of Chrome pops up a window with a proposal to restore the old tabs. To make it less intrusive, install chrome: // flags / # enable-session-crashed-bubble to Disable.

Everything, now the grandmother presses the button on the keyboard and says that she wants to know, and the first site from Google search results is displayed on the screen.

Source: https://habr.com/ru/post/355138/


All Articles