Revisiones de javascript
javascript por chee
Revisado por 991730
Se valoró con 4 de 5
por 991730, hace 4 añosIt'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).
Respuesta del desarrollador
publicado el hace 4 años:) 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 revisiones
- Se valoró con 5 de 5por BeLO, hace 4 díasYep, this module is to JavaScript what Stylus is for CSS :-)
- Se valoró con 4 de 5por Usuario de Firefox 16703548, hace 3 meses
- Se valoró con 5 de 5por sexy_pikachu, hace 6 mesesVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Se valoró con 1 de 5por Владимир, hace 10 meses
- Se valoró con 5 de 5por Andy, hace un año
- Se valoró con 5 de 5por Usuario de Firefox 17765782, hace un año
- Se valoró con 5 de 5por ÐarkbloøM, hace un añoEasy 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.
- Se valoró con 5 de 5por GRACE, hace un año
- Se valoró con 5 de 5por Entite, hace 2 años
- Se valoró con 5 de 5por Lucy the Pirate, hace 2 añosThank 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!
- Se valoró con 3 de 5por RickinMaine, hace 2 años
- Se valoró con 5 de 5por Zein Adi, hace 2 añosthis is really powerful tools for someone who can code js.
- Se valoró con 1 de 5por Usuario de Firefox 18047774, hace 2 años
- Se valoró con 1 de 5por hdircksen, hace 2 años
- Se valoró con 5 de 5por Adem, hace 2 años
- Se valoró con 5 de 5por Usuario de Firefox 17716521, hace 2 añosVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Se valoró con 5 de 5por Usuario de Firefox 14536207, hace 3 años
- Se valoró con 5 de 5por Mass59, hace 3 años
- Se valoró con 5 de 5por Вартигонт, hace 3 años
- Se valoró con 2 de 5por paolo, hace 3 años