FraserChapman / plunger

A Youtube adblock-block-un-blocker browser extension
MIT License
15 stars 2 forks source link

BUG - version 1.0.0 - privacyenhanced applied by default #2

Closed FraserChapman closed 10 months ago

FraserChapman commented 10 months ago

There is an issue with how the settings logic is applied meaning that the "www.youtube-nocookie.com" url is being used by defualt.

This is an oversight with how the default settings are applied in createIframe in content.js.

i.e.

case 'privacyenhanced':
    domain = 'www.youtube-nocookie.com';
break;

Should be

case 'privacyenhanced':
    if (value) {
        domain = 'www.youtube-nocookie.com';
    }
break;