Shqyrtime për javascript
javascript nga chee
Shqyrtim nga 991730
Vlerësuar me 4 yje nga 5 të mundshëm
nga 991730, 4 vite më parëIt'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).
Përgjigje zhvilluesi
postuar më 4 vite më parë:) 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 shqyrtime
- Vlerësuar me 5 yje nga 5 të mundshëmnga BeLO, një muaj më parëYep, this module is to JavaScript what Stylus is for CSS :-)
- Vlerësuar me 4 yje nga 5 të mundshëmnga 16703548 përdoruesi Firefox-i, 4 muaj më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga sexy_pikachu, 7 muaj më parëVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - Vlerësuar me 1 yje nga 5 të mundshëmnga Владимир, një vit më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga Andy, një vit më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga 17765782 përdoruesi Firefox-i, një vit më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga ÐarkbloøM, një vit më parë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.
- Vlerësuar me 5 yje nga 5 të mundshëmnga GRACE, një vit më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga dulus, një vit më parëi use it to auto load a bookmarklet for readability.
- Vlerësuar me 5 yje nga 5 të mundshëmnga Entite, 2 vite më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga Lucy the Pirate, 2 vite më parë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!
- Vlerësuar me 3 yje nga 5 të mundshëmnga RickinMaine, 2 vite më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga Zein Adi, 2 vite më parëthis is really powerful tools for someone who can code js.
- Vlerësuar me 1 yje nga 5 të mundshëmnga 18047774 përdoruesi Firefox-i, 2 vite më parë
- Vlerësuar me 1 yje nga 5 të mundshëmnga hdircksen, 2 vite më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga Adem, 2 vite më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga 17716521 përdoruesi Firefox-i, 2 vite më parëVery good. It works well. The only little bug I noticed is that the extension doesn't work with local files.
- Vlerësuar me 5 yje nga 5 të mundshëmnga 14536207 përdoruesi Firefox-i, 3 vite më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga Mass59, 3 vite më parë
- Vlerësuar me 5 yje nga 5 të mundshëmnga Вартигонт, 3 vite më parë
- Vlerësuar me 2 yje nga 5 të mundshëmnga paolo, 3 vite më parë