Skip to content

mathmul/chr-ext-youtube-search-now

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chr-ext-youtube-search-now

This extension has two stages.

In the first stage it checks whether a newly opened tab is a secure YouTube site (https://www.youtube.com or https://youtube.com). If it is not, it does nothing, and that's it.

In the second stage ie. if it is a secure YouTube site, all it does is the following:

const searchInput = document.querySelector('input[name="search_query"]');
if (searchInput) {
    searchInput.focus();
    searchInput.click();
    searchInput.dispatchEvent(new Event('focus', { bubbles: true }));
    console.log('Search input focused by "YouTube Search Now" extension')
}

The extension needs no additional permissions, nor does it collect any data.

Links

Chrome / Brave / Chromium / ...

chrome.google.com/.../youtube-search-now

Firefox

addons.mozilla.org/.../youtube-search-now/ (GitHub repo)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published