บทวิจารณ์สำหรับ javascript
javascript โดย chee
บทวิจารณ์โดย 991730
ได้รับการจัดอันดับ 4 จาก 5
โดย 991730, 4 ปีที่แล้ว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).
การตอบกลับของนักพัฒนา
โพสต์เมื่อ 4 ปีที่แล้ว:) 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 บทวิจารณ์
- ได้รับการจัดอันดับ 4 จาก 5โดย ผู้ใช้ Firefox 16703548, 2 เดือนที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย sexy_pikachu, 6 เดือนที่แล้วVery convenient tool. I use this to trigger auto-scrolling.
```js
setInterval(() => window.scrollBy({
top: 100,
behavior: "smooth",
}), 100)
``` - ได้รับการจัดอันดับ 1 จาก 5โดย Владимир, 9 เดือนที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย Andy, 1 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย ผู้ใช้ Firefox 17765782, 1 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย ÐarkbloøM, 1 ปีที่แล้ว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, 1 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย dulus, 1 ปีที่แล้วi use it to auto load a bookmarklet for readability.
- ได้รับการจัดอันดับ 5 จาก 5โดย Entite, 1 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย Lucy the Pirate, 1 ปีที่แล้ว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 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย Zein Adi, 2 ปีที่แล้วthis is really powerful tools for someone who can code js.
- ได้รับการจัดอันดับ 1 จาก 5โดย ผู้ใช้ Firefox 18047774, 2 ปีที่แล้ว
- ได้รับการจัดอันดับ 1 จาก 5โดย hdircksen, 2 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย Adem, 2 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย ผู้ใช้ Firefox 17716521, 2 ปีที่แล้ว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, 2 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย Mass59, 3 ปีที่แล้ว
- ได้รับการจัดอันดับ 5 จาก 5โดย Вартигонт, 3 ปีที่แล้ว
- ได้รับการจัดอันดับ 2 จาก 5โดย paolo, 3 ปีที่แล้ว