madkarmaa / youtube-downloader

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

Notification pop up every time after history cleanup #10

Closed JonseyJones closed 3 months ago

JonseyJones commented 3 months ago

Hello! I set my browser to clean history on exit and every time I reopen it in youtube I get that popup "Welcome version 3..." I don't care what version it is, I don't want to see any notifications ever, I find it annoying, how can I shut them down forever?

madkarmaa commented 3 months ago

since you set your browser to delete your history, there's really nothing you can do other than modifying the code itself. head to lines 38 to 41 in the script:

    let SHOW_NOTIFICATIONS =
        localStorage.getItem('ytdl-notif-enabled') === null
            ? true
            : String(localStorage.getItem('ytdl-notif-enabled')).toLowerCase() === 'true';

and change it to:

    let SHOW_NOTIFICATIONS = false;