madkarmaa / youtube-downloader

A simple userscript to download YouTube videos in MAX QUALITY
https://greasyfork.org/scripts/479944
45 stars 4 forks source link

I hoped to set the value at the beginning #8

Closed leadra closed 4 months ago

leadra commented 4 months ago

原本預想,希望能在腳本開頭設定數值,方便修改 沒有JS基礎,大概是類似圖片,這樣,每次更新腳本後,方便手動修改畫質

Originally, I hoped to set the value at the beginning of the script for easy modification. There is no JS foundation, it is probably similar to pictures. In this way, it is convenient to manually modify the image quality every time the script is updated. image

實際實現方式,作者方便就好,只要不增加你的困擾 The implementation method is as long as it is convenient for the author and does not increase your troubles.

madkarmaa commented 4 months ago

do you think it should be an advanced option or a regular setting?

leadra commented 4 months ago

不好意思,我無法理解術語的意義 是指[預設]? Sorry, I can't understand the meaning of the term Does it mean [default]?

madkarmaa commented 4 months ago

should it be another option in this list? image or an "advanced option" only when the advanced settings are enabled? image

leadra commented 4 months ago

regular setting It should be more convenient

madkarmaa commented 4 months ago

done! :)

image

leadra commented 4 months ago

感謝,成功改變畫質並下載了 測試了144p,720p 不過,出現了彈出視窗,不知道是不是晚上網路擁擠的原因 極小機率擋住,不過基本上都可以成功打開api視窗,等約5秒後消失並下載

Thanks, I successfully changed the image quality and downloaded it. Tested 144p, 720p However, a pop-up window appeared. I wonder if it is due to network congestion at night.

There is a very small chance of being blocked, but basically the API window can be opened successfully, and it will disappear after about 5 seconds and downloaded. image image

madkarmaa commented 4 months ago

that's a blocked popup warning. browsers often block those types of behaviors because they're used to show ads or malicious content. the script uses the window.open() method, which gets detected as a potential ad. just allow pop-ups from YouTube and it should be good

leadra commented 4 months ago

alright, thank you very much