Recensiones de javascript
javascript per chee
Recension de 991730
Classificate 4 de 5
per 991730, 5 jierren lynIt'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).
Responsa de disveloppator
publicate 5 jierren lyn:) 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
:)
58 recensiones
- Classificate 5 de 5per R.J., 4 moannen lynI had a small extension I wrote for myself modifying a site to my preferences and was annoyed I could only load it as a temporary extension without submitting it to Mozilla. This is exactly what I needed, thank you.
- Classificate 5 de 5per BeLO, 6 moannen lynYep, this module is to JavaScript what Stylus is for CSS :-)
- Classificate 4 de 5per Usator de Firefox 16703548, 8 moannen lyn
- Classificate 5 de 5per sexy_pikachu, ien jier lynVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Classificate 1 de 5per Владимир, ien jier lyn
- Classificate 5 de 5per Andy, ien jier lyn
- Classificate 5 de 5per Usator de Firefox 17765782, 2 jierren lyn
- Classificate 5 de 5per ÐarkbloøM, 2 jierren lynEasy 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.
- Classificate 5 de 5per GRACE, 2 jierren lyn
- Classificate 5 de 5per Entite, 2 jierren lyn
- Classificate 5 de 5per Lucy the Pirate, 2 jierren lynThank 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!
- Classificate 3 de 5per RickinMaine, 2 jierren lyn
- Classificate 5 de 5per Zein Adi, 2 jierren lynthis is really powerful tools for someone who can code js.
- Classificate 1 de 5per Usator de Firefox 18047774, 2 jierren lyn
- Classificate 1 de 5per hdircksen, 2 jierren lyn
- Classificate 5 de 5per Adem, 3 jierren lyn
- Classificate 5 de 5per Usator de Firefox 17716521, 3 jierren lynVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Classificate 5 de 5per Usator de Firefox 14536207, 3 jierren lyn
- Classificate 5 de 5per Mass59, 4 jierren lyn
- Classificate 5 de 5per Вартигонт, 4 jierren lyn