Open mohanraj-r opened 9 years ago
I haven't looked at the source code, but maybe you could look at the src of embedded videos. Here is the pseudo code I was thinking:
Sidenote: Maybe you could use document.getElementByTagName("iframe");
or document.getAnonymousElementByAttribute(iframe, src, "youtube.com"+
"");
to determine the src.
( is a wildcard but I'm not sure if you can use it like this)
If((src string begins with "https://www.youtube.com") && (iframe has been clicked)){
pause pandora;
}
Would be great if the extension permissions can only be restricted to pandora.com (and maybe youtube.com). If the feature to autopause pandora when youtube (embedded) videos are playing is what is requiring the perms to read from all sites - I would rather not have that feature. Not sure if chrome allows to elevate perms based on features selected by user after installation - guess the option is to split it into 2 extensions - one which require perms only on pandora.com and other which requires read perms on all sites.
Uninstalling until this can be fixed. Great effort though - appreciate it.