Κριτικές για το javascript
javascript από chee
Κριτική από 991730
Βαθμολογία 4 από 5
από 991730, 4 χρόνια πρινIt'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).
Απάντηση προγραμματιστή
δημοσιεύτηκε στις 4 χρόνια πριν:) 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 κριτικές
- Βαθμολογία 5 από 5από BeLO, ένας μήνας πρινYep, this module is to JavaScript what Stylus is for CSS :-)
- Βαθμολογία 4 από 5από Χρήστης Firefox 16703548, 4 μήνες πριν
- Βαθμολογία 5 από 5από sexy_pikachu, 8 μήνες πρινVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Βαθμολογία 1 από 5από Владимир, ένας χρόνος πριν
- Βαθμολογία 5 από 5από Andy, ένας χρόνος πριν
- Βαθμολογία 5 από 5από Χρήστης Firefox 17765782, ένας χρόνος πριν
- Βαθμολογία 5 από 5από ÐarkbloøM, ένας χρόνος πρινEasy 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.
- Βαθμολογία 5 από 5από GRACE, ένας χρόνος πριν
- Βαθμολογία 5 από 5από Entite, 2 χρόνια πριν
- Βαθμολογία 5 από 5από Lucy the Pirate, 2 χρόνια πρινThank 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!
- Βαθμολογία 3 από 5από RickinMaine, 2 χρόνια πριν
- Βαθμολογία 5 από 5από Zein Adi, 2 χρόνια πρινthis is really powerful tools for someone who can code js.
- Βαθμολογία 1 από 5από Χρήστης Firefox 18047774, 2 χρόνια πριν
- Βαθμολογία 1 από 5από hdircksen, 2 χρόνια πριν
- Βαθμολογία 5 από 5από Adem, 2 χρόνια πριν
- Βαθμολογία 5 από 5από Χρήστης Firefox 17716521, 2 χρόνια πρινVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Βαθμολογία 5 από 5από Χρήστης Firefox 14536207, 3 χρόνια πριν
- Βαθμολογία 5 από 5από Mass59, 3 χρόνια πριν
- Βαθμολογία 5 από 5από Вартигонт, 3 χρόνια πριν
- Βαθμολογία 2 από 5από paolo, 3 χρόνια πριν