Beoardielingen foar javascript
javascript troch chee
Antwurd fan chee
Antwurd ûntwikkeler
4 jierren lyn pleatst:) 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 beoardielingen
- Wurdearring: 5 fan 5troch BeLO, 16 dagen lynYep, this module is to JavaScript what Stylus is for CSS :-)
- Wurdearring: 4 fan 5troch Firefox-brûker 16703548, 3 moannen lyn
- Wurdearring: 5 fan 5troch sexy_pikachu, 7 moannen lynVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Wurdearring: 1 fan 5troch Владимир, 10 moannen lyn
- Wurdearring: 5 fan 5troch Andy, ien jier lyn
- Wurdearring: 5 fan 5troch Firefox-brûker 17765782, ien jier lyn
- Wurdearring: 5 fan 5troch ÐarkbloøM, ien jier lynEasy 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.
- Wurdearring: 5 fan 5troch GRACE, ien jier lyn
- Wurdearring: 5 fan 5troch Entite, 2 jierren lyn
- Wurdearring: 5 fan 5troch Lucy the Pirate, 2 jierren lynThank 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!
- Wurdearring: 3 fan 5troch RickinMaine, 2 jierren lyn
- Wurdearring: 5 fan 5troch Zein Adi, 2 jierren lynthis is really powerful tools for someone who can code js.
- Wurdearring: 1 fan 5troch Firefox-brûker 18047774, 2 jierren lyn
- Wurdearring: 1 fan 5troch hdircksen, 2 jierren lyn
- Wurdearring: 5 fan 5troch Adem, 2 jierren lyn
- Wurdearring: 5 fan 5troch Firefox-brûker 17716521, 2 jierren lynVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Wurdearring: 5 fan 5troch Firefox-brûker 14536207, 3 jierren lyn
- Wurdearring: 5 fan 5troch Mass59, 3 jierren lyn
- Wurdearring: 5 fan 5troch Вартигонт, 3 jierren lyn
- Wurdearring: 2 fan 5troch paolo, 3 jierren lyn