Pohódnoćenja za javascript
javascript wot chee
Pohódnoćenje wot 991730
Z 4 z 5 pohódnoćeny
wot 991730, 5 lat temuIt'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).
Wotmołwa wuwiwarja
je so 5 lat temu napisał:) 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 pohódnoćenjow
- Z 5 z 5 pohódnoćenywot R.J., 5 miesięcy temuI 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 pohódnoćenywot BeLO, 7 miesięcy temuYep, this module is to JavaScript what Stylus is for CSS :-)
- Z 4 z 5 pohódnoćenywot Wužiwar Firefox 16703548, 10 miesięcy temu
- Z 5 z 5 pohódnoćenywot sexy_pikachu, rok temuVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Z 5 z 5 pohódnoćenywot Andy, 2 lata temu
- Z 5 z 5 pohódnoćenywot Wužiwar Firefox 17765782, 2 lata temu
- Z 5 z 5 pohódnoćenywot ÐarkbloøM, 2 lata temuEasy 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 pohódnoćenywot GRACE, 2 lata temu
- Z 5 z 5 pohódnoćenywot Entite, 2 lata temu
- Z 5 z 5 pohódnoćenywot Lucy the Pirate, 2 lata temuThank 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 pohódnoćenywot RickinMaine, 2 lata temu
- Z 5 z 5 pohódnoćenywot Zein Adi, 2 lata temuthis is really powerful tools for someone who can code js.
- Z 1 z 5 pohódnoćenywot Wužiwar Firefox 18047774, 2 lata temu
- Z 1 z 5 pohódnoćenywot hdircksen, 2 lata temu
- Z 5 z 5 pohódnoćenywot Adem, 3 lata temu
- Z 5 z 5 pohódnoćenywot Wužiwar Firefox 17716521, 3 lata temuVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Z 5 z 5 pohódnoćenywot Wužiwar Firefox 14536207, 3 lata temu
- Z 5 z 5 pohódnoćenywot Mass59, 4 lata temu
- Z 5 z 5 pohódnoćenywot Вартигонт, 4 lata temu