mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Add title text and hide on downvote
This commit is contained in:
@@ -744,6 +744,9 @@
|
|||||||
"fullVideoTooltipWarning": {
|
"fullVideoTooltipWarning": {
|
||||||
"message": "This segment is large. If the whole video is about one topic, then change from \"Skip\" to \"Full Video\". See the guidelines for more information."
|
"message": "This segment is large. If the whole video is about one topic, then change from \"Skip\" to \"Full Video\". See the guidelines for more information."
|
||||||
},
|
},
|
||||||
|
"categoryPillTitleText": {
|
||||||
|
"message": "This entire video is labeled as this category and is too tightly integrated to be able to separate"
|
||||||
|
},
|
||||||
"experiementOptOut": {
|
"experiementOptOut": {
|
||||||
"message": "Opt-out of all future experiments",
|
"message": "Opt-out of all future experiments",
|
||||||
"description": "This is used in a popup about a new experiment to get a list of unlisted videos to back up since all unlisted videos uploaded before 2017 will be set to private."
|
"description": "This is used in a popup about a new experiment to get a list of unlisted videos to back up since all unlisted videos uploaded before 2017 will be set to private."
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ class CategoryPillComponent extends React.Component<CategoryPillProps, CategoryP
|
|||||||
return (
|
return (
|
||||||
<span style={style}
|
<span style={style}
|
||||||
className={"sponsorBlockCategoryPill"}
|
className={"sponsorBlockCategoryPill"}
|
||||||
|
title={chrome.i18n.getMessage("categoryPillTitleText")}
|
||||||
onClick={() => this.state.show && this.setState({ open: !this.state.open })}>
|
onClick={() => this.state.show && this.setState({ open: !this.state.open })}>
|
||||||
<span className="sponsorBlockCategoryPillTitleSection">
|
<span className="sponsorBlockCategoryPillTitleSection">
|
||||||
<img className="sponsorSkipLogo sponsorSkipObject"
|
<img className="sponsorSkipLogo sponsorSkipObject"
|
||||||
@@ -83,7 +84,10 @@ class CategoryPillComponent extends React.Component<CategoryPillProps, CategoryP
|
|||||||
await stopAnimation();
|
await stopAnimation();
|
||||||
|
|
||||||
if (response.successType == 1 || (response.successType == -1 && response.statusCode == 429)) {
|
if (response.successType == 1 || (response.successType == -1 && response.statusCode == 429)) {
|
||||||
this.setState({ open: false });
|
this.setState({
|
||||||
|
open: false,
|
||||||
|
show: type === 1
|
||||||
|
});
|
||||||
} else if (response.statusCode !== 403) {
|
} else if (response.statusCode !== 403) {
|
||||||
alert(GenericUtils.getErrorMessage(response.statusCode, response.responseText));
|
alert(GenericUtils.getErrorMessage(response.statusCode, response.responseText));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user