Відгуки для javascript
javascript автор chee
Відповідь від chee
Відповідь розробника
оприлюднено 5 років тому:) 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
:)
59 відгуків
- Оцінка 5 з 5від dabl03, 2 дні томуVery 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. - Оцінка 5 з 5від R.J., 6 місяців томуI 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.
- Оцінка 4 з 5від Користувач Firefox 16703548, рік тому
- Оцінка 5 з 5від sexy_pikachu, рік томуVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Оцінка 5 з 5від Andy, 2 роки тому
- Оцінка 5 з 5від Користувач Firefox 17765782, 2 роки тому
- Оцінка 5 з 5від ÐarkbloøM, 2 роки томуEasy 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.
- Оцінка 5 з 5від GRACE, 2 роки тому
- Оцінка 5 з 5від Entite, 2 роки тому
- Оцінка 5 з 5від Lucy the Pirate, 2 роки томуThank 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!
- Оцінка 3 з 5від RickinMaine, 2 роки тому
- Оцінка 1 з 5від Користувач Firefox 18047774, 2 роки тому
- Оцінка 1 з 5від hdircksen, 3 роки тому
- Оцінка 5 з 5від Adem, 3 роки тому
- Оцінка 5 з 5від Користувач Firefox 17716521, 3 роки томуVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Оцінка 5 з 5від Користувач Firefox 14536207, 3 роки тому
- Оцінка 5 з 5від Mass59, 4 роки тому