Skip to content

Instantly share code, notes, and snippets.

@HaroldPetersInskipp
Created February 18, 2022 17:40
Show Gist options
  • Save HaroldPetersInskipp/5129292f3750d99735c2a8b352a5651c to your computer and use it in GitHub Desktop.
Save HaroldPetersInskipp/5129292f3750d99735c2a8b352a5651c to your computer and use it in GitHub Desktop.
Userscript to auto focus the search bar in YouTube.
// ==UserScript==
// @name Youtube - Auto Focus Search Bar
// @namespace https://github.com/HaroldPetersInskipp
// @version 1.0
// @homepage https://github.com/HaroldPetersInskipp/YouTube-AFS
// @description Auto focus the search bar in YouTube.
// @author Inskipp
// @icon https://raw.githubusercontent.com/HaroldPetersInskipp/YouTube-AFS/main/icon.png
// @match *://www.youtube.com/*
// ==/UserScript==
var search_panel = document.getElementById("search-input").children[0].focus();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment