Добавляет горячие клавиши для голосового поиска и запуска видео
// ==UserScript==// @name Youtube hotkey for voicesearch// @namespace https://greasyfork.org/scripts/446088-youtube-hotkey-for-voicesearch// @version 0.2// @description Добавляет горячие клавиши для голосового поиска и запуска видео// @author Anton Kokarev ([email protected])// @license MIT// @match https://www.youtube.com/*// @run-at document-end// @grant none// ==/UserScript==function clickVoiceSearchButton() {document.getElementById('voice-search-button').firstChild.click();}function clickFirstVideo() {document.querySelector('#contents > ytd-item-section-renderer > div#contents > ytd-video-renderer > div#dismissible > ytd-thumbnail > a#thumbnail').click();}function doc_keyUp(e) {switch (e.keyCode) {case 90://zclickVoiceSearchButton();break;case 88://xclickFirstVideo();break;default:break;}}document.addEventListener('keyup', doc_keyUp, false);console.log('yhfv: loaded');