Pógódnośenja za javascript
javascript wót chee
Pógódnośenja wót 991730
Z 4 z 5 pógódnośony
wót 991730, pred 5 rokmiIt'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).
Wótegrono wuwijarja
jo se napisał pred 5 rokmi:) 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 pógódnośenjow
- Z 5 z 5 pógódnośonywót R.J., pred 5 mesiacmiI 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.
- Z 5 z 5 pógódnośonywót BeLO, pred 7 mesiacmiYep, this module is to JavaScript what Stylus is for CSS :-)
- Z 4 z 5 pógódnośonywót Wužywaŕ Firefox 16703548, pred 10 mesiacmi
- Z 5 z 5 pógódnośonywót sexy_pikachu, pred rokomVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Z 1 z 5 pógódnośonywót Владимир, pred rokom
- Z 5 z 5 pógódnośonywót Andy, pred 2 rokmi
- Z 5 z 5 pógódnośonywót Wužywaŕ Firefox 17765782, pred 2 rokmi
- Z 5 z 5 pógódnośonywót ÐarkbloøM, pred 2 rokmiEasy 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.
- Z 5 z 5 pógódnośonywót GRACE, pred 2 rokmi
- Z 5 z 5 pógódnośonywót Entite, pred 2 rokmi
- Z 5 z 5 pógódnośonywót Lucy the Pirate, pred 2 rokmiThank 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!
- Z 3 z 5 pógódnośonywót RickinMaine, pred 2 rokmi
- Z 5 z 5 pógódnośonywót Zein Adi, pred 2 rokmithis is really powerful tools for someone who can code js.
- Z 1 z 5 pógódnośonywót Wužywaŕ Firefox 18047774, pred 2 rokmi
- Z 1 z 5 pógódnośonywót hdircksen, pred 2 rokmi
- Z 5 z 5 pógódnośonywót Adem, pred 3 rokmi
- Z 5 z 5 pógódnośonywót Wužywaŕ Firefox 17716521, pred 3 rokmiVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Z 5 z 5 pógódnośonywót Wužywaŕ Firefox 14536207, pred 3 rokmi
- Z 5 z 5 pógódnośonywót Mass59, pred 4 rokmi
- Z 5 z 5 pógódnośonywót Вартигонт, pred 4 rokmi