mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-23 16:08:29 +03:00
Add pride theme
This commit is contained in:
@@ -102,7 +102,7 @@ export const PopupComponent = () => {
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div id="sponsorblockPopup">
|
||||
<div id="sponsorblockPopup" className={Config.config.prideTheme ? "prideTheme" : ""}>
|
||||
{
|
||||
window !== window.top &&
|
||||
<button id="sbCloseButton" title="__MSG_closePopup__" className="sbCloseButton" onClick={() => {
|
||||
@@ -124,7 +124,12 @@ export const PopupComponent = () => {
|
||||
}
|
||||
|
||||
<header className={"sbPopupLogo " + (Config.config.cleanPopup ? "hidden" : "")}>
|
||||
<img src="icons/IconSponsorBlocker256px.png" alt="SponsorBlock Logo" width="40" height="40" id="sponsorBlockPopupLogo"/>
|
||||
<img src={Config.config.prideTheme ? "icons/sb-pride.png" : "icons/IconSponsorBlocker256px.png"}
|
||||
alt="SponsorBlock Logo"
|
||||
width="40"
|
||||
height="40"
|
||||
id="sponsorBlockPopupLogo"
|
||||
/>
|
||||
<p className="u-mZ">
|
||||
SponsorBlock
|
||||
</p>
|
||||
|
||||
@@ -40,6 +40,10 @@ export const YourWorkComponent = () => {
|
||||
setViewCount(userInfo.viewCount);
|
||||
setMinutesSaved(userInfo.minutesSaved);
|
||||
|
||||
if (username === "sponege") {
|
||||
Config.config.prideTheme = true;
|
||||
}
|
||||
|
||||
Config.config!.isVip = userInfo.vip;
|
||||
Config.config!.permissions = userInfo.permissions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user