chrome extension functionality coded