Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension menu doesn't open #10

Open
ElmorenohWTF opened this issue Jun 19, 2022 · 9 comments
Open

Extension menu doesn't open #10

ElmorenohWTF opened this issue Jun 19, 2022 · 9 comments

Comments

@ElmorenohWTF
Copy link

ElmorenohWTF commented Jun 19, 2022

The menu that should open when you left-click on the extension to log in with your Google account and use the extension, simply does not open, when I left-click on it, it just shows this:
image

@hallzy
Copy link
Owner

hallzy commented Jun 19, 2022

Not sure what page you are on, but the extension only does something when you are on a playlist page, but also I have absolutely no idea if this extension works on Edge to begin with, which is what it looks like you are using. I know that Google has been screwing around with the ability to authenticate from non Google Chrome browsers for extensions that use Google APIs.

@ElmorenohWTF
Copy link
Author

Not sure what page you are on, but the extension only does something when you are on a playlist page, but also I have absolutely no idea if this extension works on Edge to begin with, which is what it looks like you are using. I know that Google has been screwing around with the ability to authenticate from non Google Chrome browsers for extensions that use Google APIs.

I've tried using Chrome and the same thing happens to me

@ElmorenohWTF
Copy link
Author

Ok, it's my problem, I got it to work in Chrome. Maybe it would be nice to add something in case you click on the extension on another page than a playlist, so you don't think it doesn't work, as it happened to me. On another note, would it be possible to get this extension to work in Edge Chromium somehow? It only says: “Error: couldn't retrieve YouTube API Auth Token” when I click on the extension being in a playlist and having added my client ID.

@hallzy
Copy link
Owner

hallzy commented Jun 21, 2022

it's probably possible to add something for that case, I'd have to look into it at some point.

I have never used edge before, and so I don't know what kind of settings it has... I know for a while the Brave browser had a setting somewhere called "Allow Google login for extensions" which you had to enable to get this extension to work, so there might be something similar, but it doesn't work in Brave anymore even with that setting set. Google purposefully made a change to their APIs so that (as far as I know) only Google Chrome can use their APIs, and unless that has changed there is absolutely nothing that I can do about it unfortunately. Which also sucks for me, because the only browser I use is Brave, but now I use Chrome when I need to search for something with this extension.

@ElmorenohWTF
Copy link
Author

As far as I know, there is no similar option for Edge.

@ElmorenohWTF
Copy link
Author

I was researching and apparently Edge does not support getAuthToken, according to this page: https://docs.microsoft.com/en-us/microsoft-edge/extensions-chromium/developer-guide/api-support#additional-considerations-for-supported-apis, they suggest using launchWebAuthFlow instead of getAuthToken, would it be possible to do that for this extension? Maybe with that it would work in other browsers than Chrome but based on Chromium?

@hallzy
Copy link
Owner

hallzy commented Jun 21, 2022

Interesting... I have no idea if it will work, but it would be worth trying. If I have time after work today I'll give it a try.

I'll come back here and let you know what I find.

Thanks for the suggestion :)

@ElmorenohWTF
Copy link
Author

Thanks to you for creating this fascinating extension which is so necessary :D

@hallzy
Copy link
Owner

hallzy commented Jun 22, 2022

So, unless I am an idiot (an observation I am not willing to rule out just yet...) launchWebAuthFlow seems more complicated and seems to require a whole separate setup in the dev console... It requires redirect URLs (the purpose for which is a mystery... I have no idea why an extension needs these or even what they are supposed to be) which you can only do if you set it up as a web app instead of a chrome app, which seems weird, and from what some people have said online, it sounds like it may not even send back the token that I need to use the youtube api.

So, it is entirely possible that this also doesn't work.

I tried a few things and nothing so far has worked, so I might try setting up a "web app" in the google dev console and see if I can somehow get it to work despite what others say online.

I also came across a YouTube video and supposedly the launchWebAuthFlow logs you out after an hour or something. idk... I'll need to look at it more.

Why Google can't just make anything simple, I don't know... This shouldn't exactly be rocket surgery 🚀👨‍⚕️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants