Vurdering for javascript
javascript av chee
Vurdering av 991730
Vurdering: 4 av 5
av 991730, 4 år sidanIt'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).
Svar frå utviklaren
posta 4 år sidan:) 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
:)
57 vurderingar
- Vurdering: 4 av 5av Firefox user 16703548, 3 månader sidan
- Vurdering: 5 av 5av sexy_pikachu, 6 månader sidanVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Vurdering: 1 av 5av Владимир, 10 månader sidan
- Vurdering: 5 av 5av Andy, eit år sidan
- Vurdering: 5 av 5av Firefox user 17765782, eit år sidan
- Vurdering: 5 av 5av ÐarkbloøM, eit år sidanEasy 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.
- Vurdering: 5 av 5av GRACE, eit år sidan
- Vurdering: 5 av 5av Entite, 2 år sidan
- Vurdering: 5 av 5av Lucy the Pirate, 2 år sidanThank 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!
- Vurdering: 3 av 5av RickinMaine, 2 år sidan
- Vurdering: 1 av 5av Firefox user 18047774, 2 år sidan
- Vurdering: 1 av 5av hdircksen, 2 år sidan
- Vurdering: 5 av 5av Adem, 2 år sidan
- Vurdering: 5 av 5av Firefox user 17716521, 2 år sidanVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Vurdering: 5 av 5av Firefox user 14536207, 3 år sidan
- Vurdering: 5 av 5av Mass59, 3 år sidan
- Vurdering: 5 av 5av Вартигонт, 3 år sidan
- Vurdering: 2 av 5av paolo, 3 år sidan