Ulasan untuk javascript
javascript oleh chee
Tinjauan oleh 991730
Diberi peringkat 4 dari 5
oleh 991730, 4 tahun yang laluIt'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).
Balasan pengembang
dikirim 4 tahun yang lalu:) 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
:)
57 ulasan
- Diberi peringkat 5 dari 5oleh BeLO, 8 hari yang laluYep, this module is to JavaScript what Stylus is for CSS :-)
- Diberi peringkat 4 dari 5oleh Pengguna Firefox 16703548, 3 bulan yang lalu
- Diberi peringkat 5 dari 5oleh sexy_pikachu, 6 bulan yang laluVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Diberi peringkat 1 dari 5oleh Владимир, 10 bulan yang lalu
- Diberi peringkat 5 dari 5oleh Andy, setahun yang lalu
- Diberi peringkat 5 dari 5oleh Pengguna Firefox 17765782, setahun yang lalu
- Diberi peringkat 5 dari 5oleh ÐarkbloøM, setahun yang laluEasy 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.
- Diberi peringkat 5 dari 5oleh GRACE, setahun yang lalu
- Diberi peringkat 5 dari 5oleh dulus, setahun yang lalui use it to auto load a bookmarklet for readability.
- Diberi peringkat 5 dari 5oleh Entite, 2 tahun yang lalu
- Diberi peringkat 5 dari 5oleh Lucy the Pirate, 2 tahun yang laluThank 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!
- Diberi peringkat 3 dari 5oleh RickinMaine, 2 tahun yang lalu
- Diberi peringkat 5 dari 5oleh Zein Adi, 2 tahun yang laluthis is really powerful tools for someone who can code js.
- Diberi peringkat 1 dari 5oleh Pengguna Firefox 18047774, 2 tahun yang lalu
- Diberi peringkat 1 dari 5oleh hdircksen, 2 tahun yang lalu
- Diberi peringkat 5 dari 5oleh Adem, 2 tahun yang lalu
- Diberi peringkat 5 dari 5oleh Pengguna Firefox 17716521, 2 tahun yang laluVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Diberi peringkat 5 dari 5oleh Pengguna Firefox 14536207, 3 tahun yang lalu
- Diberi peringkat 5 dari 5oleh Mass59, 3 tahun yang lalu
- Diberi peringkat 5 dari 5oleh Вартигонт, 3 tahun yang lalu
- Diberi peringkat 2 dari 5oleh paolo, 3 tahun yang lalu