javascript ਲਈ ਸਮੀਖਿਆ
javascript ਵਲੋਂ chee
991730 ਵਲੋਂ ਪੜਤਾਲ
5 ਵਿੱਚੋਂ 4 ਦਰਜਾ ਦਿੱਤਾ
991730੪ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ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).
ਵਿਕਾਸਕਾਰ ਜਵਾਬ
੪ ਸਾਲ ਪਿਛਲੇ ਨੂੰ ਪੋਸਟ ਕੀਤਾ:) 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
:)
56 ਸਮੀਖਿਆਵਾਂ
- 5 ਵਿੱਚੋਂ 4 ਦਰਜਾ ਦਿੱਤਾ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 ਵਿੱਚੋਂ 1 ਦਰਜਾ ਦਿੱਤਾВладимир੯ ਮਹੀਨੇ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾAndyਇੱਕ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾFirefox ਵਰਤੋਂਕਾਰ 17765782ਇੱਕ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾÐarkbloøMਇੱਕ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ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ਇੱਕ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾEntiteਇੱਕ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾLucy the Pirateਇੱਕ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ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!
- 5 ਵਿੱਚੋਂ 3 ਦਰਜਾ ਦਿੱਤਾRickinMaine੨ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾZein Adi੨ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂthis is really powerful tools for someone who can code js.
- 5 ਵਿੱਚੋਂ 1 ਦਰਜਾ ਦਿੱਤਾFirefox ਵਰਤੋਂਕਾਰ 18047774੨ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 1 ਦਰਜਾ ਦਿੱਤਾhdircksen੨ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾAdem੨ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾFirefox ਵਰਤੋਂਕਾਰ 17716521੨ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ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੨ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾMass59੩ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 5 ਦਰਜਾ ਦਿੱਤਾВартигонт੩ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ
- 5 ਵਿੱਚੋਂ 2 ਦਰਜਾ ਦਿੱਤਾpaolo੩ ਸਾਲ ਪਿਛਲੇ ਵਲੋਂ