Ocene za javascript
javascript — chee
Ocena uporabnika 991730
Ocenjeno z 4 od 5
— 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).
Odgovor razvijalca
objavljeno ob 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
:)
57 ocen
- Ocenjeno z 4 od 5— Uporabnik Firefoxa 16703548, pred 3 meseci
- Ocenjeno z 5 od 5— sexy_pikachu, pred 6 meseciVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Ocenjeno z 1 od 5— Владимир, pred 10 meseci
- Ocenjeno z 5 od 5— Andy, pred enim letom
- Ocenjeno z 5 od 5— Uporabnik Firefoxa 17765782, pred enim letom
- Ocenjeno z 5 od 5— ÐarkbloøM, pred enim letomEasy 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.
- Ocenjeno z 5 od 5— GRACE, pred enim letom
- Ocenjeno z 5 od 5— Entite, pred 2 letoma
- Ocenjeno z 5 od 5— 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!
- Ocenjeno z 3 od 5— RickinMaine, pred 2 letoma
- Ocenjeno z 5 od 5— Zein Adi, pred 2 letomathis is really powerful tools for someone who can code js.
- Ocenjeno z 1 od 5— Uporabnik Firefoxa 18047774, pred 2 letoma
- Ocenjeno z 1 od 5— hdircksen, pred 2 letoma
- Ocenjeno z 5 od 5— Adem, pred 2 letoma
- Ocenjeno z 5 od 5— Uporabnik Firefoxa 17716521, pred 2 letomaVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Ocenjeno z 5 od 5— Uporabnik Firefoxa 14536207, pred 3 leti
- Ocenjeno z 5 od 5— Mass59, pred 3 leti
- Ocenjeno z 5 od 5— Вартигонт, pred 3 leti
- Ocenjeno z 2 od 5— paolo, pred 3 leti