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

Feature request: Add actions for Shortcuts #54

Open
OscarPalafox opened this issue Sep 14, 2023 · 3 comments
Open

Feature request: Add actions for Shortcuts #54

OscarPalafox opened this issue Sep 14, 2023 · 3 comments

Comments

@OscarPalafox
Copy link

I've been loving the app so far, and it's been great in allowing me to use YouTube without distractions. Recently, I realized that it would be nice to sometimes be able to access some parts of YouTube, depending on the time of the day. This could potentially be done by simply accessing the settings every time, but it would be perfect if this could be done programmatically, i.e. with Shortcuts. It would be great if the settings could be added as actions (enable/disable) to the Shortcuts app. This way, a user can tie focus modes with being able to access some parts of YouTube. I'd be more than happy to help you with this, though I don't have much experience with Swift.

@ulyngs
Copy link
Owner

ulyngs commented Sep 16, 2023

Absolutely agreed -- I think we could do this quite simply by just storing time settings, and then when we inject the JS and CSS for showing or hiding things, we just ask the script to check those times in addition to checking the popup settings

@ulyngs
Copy link
Owner

ulyngs commented Sep 21, 2023

But it would be super cool if this could be tied in with the Screen Time API -- so imagine that when you turn on a focus mode, then you also modify the YouTube appearance. I just don't know how to get started with that, unfortunately, as I also don't have much experience with Swift, which is why the app is mostly just built with standard JS, CSS, HTML

@OscarPalafox
Copy link
Author

I don't have a lot of time in the coming week, but will try to look into it, the following week. Not super sure about the Screen Time API, it seems focus modes and Screen time don't seem to talk to each other

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