https://dotsandbrackets.com/simplest-chrome-extension/
Простейшее расширение для Google Chrome: content script