Revisiones de javascript
javascript por chee
Revisado por 991730
Se valoró con 4 de 5
por 991730, el 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, el hace 14 díasYep, this module is to JavaScript what Stylus is for CSS :-)
- Se valoró con 4 de 5por Usuario de Firefox 16703548, el hace 3 meses
- Se valoró con 5 de 5por sexy_pikachu, el hace 7 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 Владимир, el hace 10 meses
- Se valoró con 5 de 5por Andy, el hace un año
- Se valoró con 5 de 5por Usuario de Firefox 17765782, el hace un año
- Se valoró con 5 de 5por ÐarkbloøM, el 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, el hace un año
- Se valoró con 5 de 5por Entite, el hace 2 años
- Se valoró con 5 de 5por Lucy the Pirate, el 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, el hace 2 años
- Se valoró con 5 de 5por Zein Adi, el hace 2 añosthis is really powerful tools for someone who can code js.
- Se valoró con 1 de 5por Usuario de Firefox 18047774, el hace 2 años
- Se valoró con 1 de 5por hdircksen, el hace 2 años
- Se valoró con 5 de 5por Adem, el hace 2 años
- Se valoró con 5 de 5por Usuario de Firefox 17716521, el 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, el hace 3 años
- Se valoró con 5 de 5por Mass59, el hace 3 años
- Se valoró con 5 de 5por Вартигонт, el hace 3 años
- Se valoró con 2 de 5por paolo, el hace 3 años