Skip to content

Commit

Permalink
Microfix for new YouTube styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Alluseri committed Oct 13, 2023
1 parent dd993c1 commit db67fab
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div id="central-logo">
<img src="../icons/default64.png">
<span id="central-name">SeriStyle</span>
<span class="central-sub">v1.11.2</span>
<span class="central-sub">v1.11.3</span>
<span class="central-sub" id="storage-status"></span>
</div>
<div id="interactions">
Expand Down
2 changes: 1 addition & 1 deletion html/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', function () {
});
document.getElementById("low-i-debug").onclick = async () => {
var DebugInfo = [
"- SeriStyle v1.11.2",
"- SeriStyle v1.11.3",
"- " + navigator.userAgent,
"- " + StorageMode
];
Expand Down
2 changes: 1 addition & 1 deletion manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "SeriStyle",
"author": "Nekoseri",
"version": "1.11.2",
"version": "1.11.3",
"description": "Bring the early-2021 UI back to YouTube!",
"icons": {
"16": "icons/default16.png",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "SeriStyle",
"author": "Nekoseri",
"version": "1.11.2",
"version": "1.11.3",
"description": "Bring the early-2021 UI back to YouTube!",
"icons": {
"16": "icons/default16.png",
Expand Down
2 changes: 1 addition & 1 deletion scripts/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ this.SeriStyleLocales = {
Advanced: "Advanced settings"
},
Messages: {
UpdateSettings: "SeriStyle was updated to version 1.11.2, which introduced new settings!\n\nDo you want to visit the settings page(opens in a new tab)?"
UpdateSettings: "SeriStyle was updated to version 1.11.3, which introduced new settings!\n\nDo you want to visit the settings page(opens in a new tab)?"
}
}
};
Expand Down
11 changes: 6 additions & 5 deletions scripts/transformer-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var SelSubPassiveBtn = "#subscribe-button yt-button-shape>button";
var SelSubContainer = "yt-smartimation.ytd-subscribe-button-renderer"; // Alt: #subscribe-button yt-smartimation
var SelMeta = "#meta.ytd-c4-tabbed-header-renderer";
var SelMetaSpan = SelMeta+">span.meta-item";
var SelMetaSpan = SelMeta + ">span.meta-item";

// TODO: Merge general button styles
document.head.appendChild(DomUtils.BuildElement("style", {
Expand Down Expand Up @@ -44,7 +44,8 @@ document.head.appendChild(DomUtils.BuildElement("style", {
"#notification-preference-button div.cbox{display:none;}" + // widest: "#notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.cbox.yt-spec-button-shape-next--button-text-content"
"#notification-preference-button div.yt-spec-button-shape-next__secondary-icon{display:none;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.yt-spec-button-shape-next__secondary-icon
"#notification-preference-button div.yt-spec-button-shape-next__icon{margin-right:0px;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.yt-spec-button-shape-next__icon
"#notification-preference-button button{background:none;padding-right:0px;}" // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button
"#notification-preference-button button{background:none;padding-right:0px;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button
"#notification-preference-button div.yt-spec-button-shape-next__button-text-content{display:none;}"
: "") +
// Fix notification bell
(!SeriStyleSettings.Advanced.LegacyImation.Value ?
Expand Down Expand Up @@ -145,15 +146,15 @@ document.head.appendChild(DomUtils.BuildElement("style", {
SelMetaSpan + "{margin:0;}" +
SelMetaSpan + ">#channel-handle{display:none;}" +
SelMetaSpan + ">#videos-count{display:none;}" +
SelMeta+">#channel-tagline{display:none;}" +
SelMeta + ">#channel-tagline{display:none;}" +
"#channel-header-container.ytd-c4-tabbed-header-renderer{padding-top:0px;align-items:center;}" +
"#channel-header-container.ytd-c4-tabbed-header-renderer>#avatar{width:80px;height:80px;margin-bottom:0px;}" +
"#inner-header-container.ytd-c4-tabbed-header-renderer{margin-top:0px;}"
: "") +
: "") +
(SeriStyleSettings.General.OldColors.Value ?
"#channel-header.ytd-c4-tabbed-header-renderer, #tabs-inner-container.ytd-c4-tabbed-header-renderer{background:#181818;}" +
"ytd-browse[page-subtype='channels'] {background:#0F0F0F;}"
: "") +
: "") +
(SeriStyleSettings.ChannelPage.NoSponsors.Value ? "ytd-recognition-shelf-renderer{display:none;}" : "") +
""
).replaceAll(/(?<!!important);/g, "!important;"),
Expand Down
9 changes: 9 additions & 0 deletions update.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@
"strict_min_version": "109"
}
}
},
{
"version": "1.11.3",
"update_link": "https://github.com/Alluseri/SeriStyle/releases/download/1.11.3/SeriStyle-1.11.3.xpi",
"applications": {
"gecko": {
"strict_min_version": "109"
}
}
}
]
}
Expand Down

0 comments on commit db67fab

Please sign in to comment.