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

Confirm on video that is not public [TESTING] #210

Closed
wants to merge 19 commits into from
Closed

Confirm on video that is not public [TESTING] #210

wants to merge 19 commits into from

Conversation

NDevTK
Copy link
Contributor

@NDevTK NDevTK commented Dec 28, 2019

Summary

  • Added confirmPrivacy message to en
  • Changed videoIDChange to async so that it can now use await
  • Added Privacy utils in the content script
  • return videoIDChange if user clicks cancel (Does not apply to /embed/)

@NDevTK NDevTK changed the title Added Privacy utils [INDEV] Added privacy utils [INDEV] Dec 28, 2019
@NDevTK NDevTK changed the title Added privacy utils [INDEV] Confirm on video that is not public [INDEV] Dec 28, 2019
@NDevTK
Copy link
Contributor Author

NDevTK commented Dec 28, 2019

isPublic does not work for embedded videos

@ajayyy
Copy link
Owner

ajayyy commented Dec 28, 2019

Does this appear right away or is it lazy loaded? If so, is a promise needed?

@ajayyy
Copy link
Owner

ajayyy commented Dec 28, 2019

Maybe add a "always check for sponsors" button to the dialog. Is this possible with vanilla confirmation menus?

@ajayyy
Copy link
Owner

ajayyy commented Dec 28, 2019

Does this create any noticeable extra delay when pulling sponsors? Also, does this work for the old YouTube theme?

@NDevTK NDevTK changed the title Confirm on video that is not public [INDEV] Confirm on video that is not public [TESTING] Dec 28, 2019
@NDevTK
Copy link
Contributor Author

NDevTK commented Dec 28, 2019

@ajayyy I have tested it for the normal theme :D

@NDevTK
Copy link
Contributor Author

NDevTK commented Dec 28, 2019

Please review the code changes. the UI can be added later just want to warn users currently

content.js Outdated Show resolved Hide resolved
@ajayyy
Copy link
Owner

ajayyy commented Dec 29, 2019

Confirmed to slow sponsor checking. This will have to be optional I guess. Then it can be removed in favour of ajayyy/SponsorBlockServer#25

@NDevTK
Copy link
Contributor Author

NDevTK commented Dec 29, 2019

@ajayyy It is slower now but I dont know how to make it faster without using a hashed substring or a synced local database to get the times

@ajayyy
Copy link
Owner

ajayyy commented Dec 29, 2019

@officialnoob yea, there is no way. Hashed substring is the best option. That can be added after this.

@NDevTK
Copy link
Contributor Author

NDevTK commented Dec 29, 2019

I think this is done until the new api endpoint is available

@ajayyy
Copy link
Owner

ajayyy commented Dec 30, 2019

Does this video break it: https://www.youtube.com/watch?v=tO8aJ-TUtJY&list=PL96C35uN7xGJu6skU4TBYrIWxggkZBrF5&index=1 ("Learning playlist")?

@NDevTK
Copy link
Contributor Author

NDevTK commented Dec 30, 2019

@ajayyy it did I have now added an exception for that type.
Im not sure if I should use a blacklist or a whitelist for detection

@NDevTK
Copy link
Contributor Author

NDevTK commented Dec 31, 2019

Switched to only alerting on "Private" and "Unlisted"

@ajayyy
Copy link
Owner

ajayyy commented Dec 31, 2019

It is really only unlisted that is concerning

@NDevTK
Copy link
Contributor Author

NDevTK commented Jan 9, 2020

Will recreate PR due to code changes

@NDevTK NDevTK closed this Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants