Recensions par javascript
javascript di chee
Recension di 991730
Valutade 4 su 5
di 991730, pred 4 letiIt's a nice addon. If only it worked on every page... I wrote a small utility script for Youtube. The script runs when it's a freshly opened Youtube tab, but not if a new video was loaded via autoplay. I'd really like to know why. (note that I also have this issue with other JS scripting addons).
Rispueste dal svilupadôr
publicât ai pred 4 leti:) 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
:)
58 recensions
- Valutade 5 su 5di R.J., pred 2 mesecemaI had a small extension I wrote for myself modifying a site to my preferences and was annoyed I could only load it as a temporary extension without submitting it to Mozilla. This is exactly what I needed, thank you.
- Valutade 4 su 5di Utent Firefox 16703548, pred 7 meseci
- Valutade 5 su 5di sexy_pikachu, pred 10 meseciVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Valutade 1 su 5di Владимир, pred enim letom
- Valutade 5 su 5di Andy, pred enim letom
- Valutade 5 su 5di Utent Firefox 17765782, pred 2 letoma
- Valutade 5 su 5di ÐarkbloøM, pred 2 letomaEasy to use, works well, 10/10. Though it'd be nice if it didn't save a new script when the editor pop-up is opened but no code is actually written.
- Valutade 5 su 5di GRACE, pred 2 letoma
- Valutade 5 su 5di Entite, pred 2 letoma
- Valutade 5 su 5di Lucy the Pirate, pred 2 letomaThank 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!
- Valutade 3 su 5di RickinMaine, pred 2 letoma
- Valutade 1 su 5di Utent Firefox 18047774, pred 2 letoma
- Valutade 1 su 5di hdircksen, pred 2 letoma
- Valutade 5 su 5di Adem, pred 3 leti
- Valutade 5 su 5di Utent Firefox 17716521, pred 3 letiVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Valutade 5 su 5di Utent Firefox 14536207, pred 3 leti
- Valutade 5 su 5di Mass59, pred 3 leti
- Valutade 5 su 5di Вартигонт, pred 4 leti