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
:)
60 pógódnośenjow
- Z 1 z 5 pógódnośonywót Hax, pred 6 mesiacmi
- Z 5 z 5 pógódnośonywót dabl03, pred 8 mesiacmiVery good. But I'd like to know if it's possible to create a script that runs on all pages. I'd like to implement a dark mode that activates when a button is pressed.
Also, I'd like to know if it's possible to specify the DOM tag when adding the script. I was using a polyfill, but since it runs last, I had to reload the other scripts for them to run without errors. - Z 5 z 5 pógódnośonywót R.J., pred rokomI 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 4 z 5 pógódnośonywót Wužywaŕ Firefox 16703548, pred 2 rokmi
- Z 5 z 5 pógódnośonywót sexy_pikachu, pred 2 rokmiVery 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 2 rokmi
- 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 3 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 3 rokmi
- Z 5 z 5 pógódnośonywót Entite, pred 3 rokmi
- Z 5 z 5 pógódnośonywót Lucy the Pirate, pred 3 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 3 rokmi
- Z 5 z 5 pógódnośonywót Zein Adi, pred 3 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 3 rokmi
- Z 1 z 5 pógódnośonywót hdircksen, pred 3 rokmi
- Z 5 z 5 pógódnośonywót Adem, pred 4 rokmi
- Z 5 z 5 pógódnośonywót Wužywaŕ Firefox 17716521, pred 4 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 4 rokmi