Recensioni per javascript
javascript di chee
Risposta di chee
Replica dello sviluppatore
pubblicato il 5 anni fa:) thanks for the review.
it doesn't work on autoplay videos because it's just a script tag injected into the page. an autoplaying video doesn't load a new page, youtube's javascript does a request and replaces the video element in the dom (and a lot of other elements ^_^).
i don't know how much JS you know, but you might be able to implement something as a callback to a mutation observer: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
:)
it doesn't work on autoplay videos because it's just a script tag injected into the page. an autoplaying video doesn't load a new page, youtube's javascript does a request and replaces the video element in the dom (and a lot of other elements ^_^).
i don't know how much JS you know, but you might be able to implement something as a callback to a mutation observer: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
:)
59 recensioni
- Valutata 5 su 5di dabl03, un mese faVery good. But I'd like to know if it's possible to create a script that runs on all pages. I'd like to implement a dark mode that activates when a button is pressed.
Also, I'd like to know if it's possible to specify the DOM tag when adding the script. I was using a polyfill, but since it runs last, I had to reload the other scripts for them to run without errors. - Valutata 4 su 5di Utente Firefox 16703548, un anno fa
- Valutata 5 su 5di sexy_pikachu, un anno faVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Valutata 5 su 5di Utente Firefox 17765782, 2 anni fa
- Valutata 5 su 5di Lucy the Pirate, 2 anni faThank you for makin' this plugin! I was able to use it to write a script to block players on a comment board for a website that didn't have a block function built in!
- Valutata 3 su 5di RickinMaine, 2 anni fa
- Valutata 1 su 5di Utente Firefox 18047774, 2 anni fa
- Valutata 5 su 5di Utente Firefox 17716521, 3 anni faVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Valutata 5 su 5di Utente Firefox 14536207, 3 anni fa