Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

Extension is working in only certain tabs

  • 1 odpowiedź
  • 0 osób ma ten problem
  • 6 wyświetleń
  • Ostatnia odpowiedź od MrQuackDuck

more options

I am developing an extension that will fix YouTube spacebar issue (after recent YouTube update after Alt Tabbing from other window, spacebar is not working to Pause/Play videos).

The problem is that my extension is not working anywhere except on https://www.mozilla.org.

I've already added "*://*.youtube.com/*" to "host_permissions" in my manifest.json file and it's displayed as "Can always read and change data on this site" on YouTube, but it does nothing. On https://www.mozilla.org my extension is activating properly (writes test message in console).

I added my extension on "about:debugging". Can it be related with that? Appreciate any help!

I am developing an extension that will fix YouTube spacebar issue ''(after recent YouTube update after Alt Tabbing from other window, spacebar is not working to Pause/Play videos)''. The problem is that my extension is not working anywhere except on '''https://www.mozilla.org'''. I've already added "*://*.youtube.com/*" to "host_permissions" in my '''manifest.json''' file and it's displayed as '''"Can always read and change data on this site"''' on YouTube, but it does nothing. On '''https://www.mozilla.org''' my extension is activating properly (writes test message in console). I added my extension on "about:debugging". Can it be related with that? Appreciate any help!
Załączone zrzuty ekranu

Wybrane rozwiązanie

I just figured it out! I needed to add "*://*.youtube.com/*" to "matches" "content_scripts". (Image below)

Przeczytaj tę odpowiedź w całym kontekście 👍 0

Wszystkie odpowiedzi (1)

more options

Wybrane rozwiązanie

I just figured it out! I needed to add "*://*.youtube.com/*" to "matches" "content_scripts". (Image below)