סקירות עבור 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, לפני חודשיים
- דירוג 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מאת משתמש Firefox 17765782, לפני שנה
- דירוג 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!
- דירוג 3 מתוך 5מאת RickinMaine, לפני שנתיים
- דירוג 1 מתוך 5מאת משתמש Firefox 18047774, לפני שנתיים
- דירוג 1 מתוך 5מאת 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, לפני 3 שנים
- דירוג 5 מתוך 5מאת Вартигонт, לפני 3 שנים
- דירוג 2 מתוך 5מאת paolo, לפני 3 שנים