-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
add feature to toggle on/off sponsorblock with a single key press #101
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,33 @@ | |
padding: 0 1em; | ||
line-height: 0; | ||
} | ||
|
||
.ytaf-remote-button { | ||
display: inline-block; | ||
width: 21.34px; | ||
height: 21.34px; | ||
Comment on lines
+66
to
+67
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where did you get There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it was the computed height of the text before button. And I wanted to keep the height of the button same as text, so it doesn't look weird. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm. I think it must have originally been 16pt (21.3333...px). |
||
} | ||
|
||
.ytaf-remote-button::before { | ||
content: '\00a0'; | ||
} | ||
|
||
.ytaf-remote-button.ytaf-remote-button-red { | ||
background-color: #b30000; | ||
color: #b30000; | ||
} | ||
|
||
.ytaf-remote-button.ytaf-remote-button-green { | ||
background-color: #006600; | ||
color: #006600; | ||
} | ||
|
||
.ytaf-remote-button.ytaf-remote-button-yellow { | ||
background-color: #e0e000; | ||
color: #e0e000; | ||
} | ||
|
||
.ytaf-remote-button.ytaf-remote-button-blue { | ||
background-color: #0000cc; | ||
color: #0000cc; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the SponsorBlock object always created now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I think I see. It's always running, but if it's not enabled,
getSkippableCategories()
just returns an empty list.