Omtaler for javascript
javascript av chee
Omtale av 991730
Vurdert til 4 ut av 5
av 991730, 4 år sidenIt'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).
Utviklerrespons
postet 4 år siden:) 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 omtaler
- Vurdert til 5 ut av 5av R.J., 20 dager sidenI 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.
- Vurdert til 5 ut av 5av BeLO, 3 måneder sidenYep, this module is to JavaScript what Stylus is for CSS :-)
- Vurdert til 4 ut av 5av Firefox-bruker 16703548, 5 måneder siden
- Vurdert til 5 ut av 5av sexy_pikachu, 9 måneder sidenVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Vurdert til 1 ut av 5av Владимир, ett år siden
- Vurdert til 5 ut av 5av Andy, ett år siden
- Vurdert til 5 ut av 5av Firefox-bruker 17765782, ett år siden
- Vurdert til 5 ut av 5av ÐarkbloøM, ett år sidenEasy 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.
- Vurdert til 5 ut av 5av GRACE, 2 år siden
- Vurdert til 5 ut av 5av Entite, 2 år siden
- Vurdert til 5 ut av 5av Lucy the Pirate, 2 år sidenThank 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!
- Vurdert til 3 ut av 5av RickinMaine, 2 år siden
- Vurdert til 5 ut av 5av Zein Adi, 2 år sidenthis is really powerful tools for someone who can code js.
- Vurdert til 1 ut av 5av Firefox-bruker 18047774, 2 år siden
- Vurdert til 1 ut av 5av hdircksen, 2 år siden
- Vurdert til 5 ut av 5av Adem, 3 år siden
- Vurdert til 5 ut av 5av Firefox-bruker 17716521, 3 år sidenVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Vurdert til 5 ut av 5av Firefox-bruker 14536207, 3 år siden
- Vurdert til 5 ut av 5av Mass59, 3 år siden
- Vurdert til 5 ut av 5av Вартигонт, 3 år siden