Skip to content

Commit b85183c

Browse files
committed
I only pushed this because I booted into Arch.
1 parent 31594ca commit b85183c

File tree

11 files changed

+24
-46
lines changed

11 files changed

+24
-46
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ Steps to reproduce the behavior:
2020
**Screenshots**
2121
If applicable, add screenshots to help explain your problem.
2222

23-
**Debug Info**
24-
Click "Copy debug" in SeriStyle's popup menu and paste the info here. Please remove this placeholder text too. Replace this placeholder with "N/A" if you're unable to copy the debug info.
25-
2623
**Additional context**
2724
Remove this section if there is nothing to add in order to avoid littering the issue up.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.xpi
22
_metadata
33
_metadata/*
4+
pack-xpi.sh

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ This is a **general non-exhaustive** list of SeriStyle's features. Preview & com
6666
3. Fill, wider cross line
6767
4. Hide using Exel
6868
- Expand button in left side menu will now function as both, collapse button will be hidden
69-
- Fix Add to Playlist tooltip being too high
7069
- Old context menus
7170
- Global
7271
- Remove roundings everywhere
@@ -76,7 +75,6 @@ This is a **general non-exhaustive** list of SeriStyle's features. Preview & com
7675
- Convert recommended playlists into videos using noembed or hide them(snip in -general)
7776
- Old playlist & queue panels
7877
- Old control buttons on your channel page
79-
- Extend debug info
8078
- Step in settings sliderbars
8179
- Old channel page top
8280

html/popup.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div id="central-logo">
1616
<img src="../icons/default64.png">
1717
<span id="central-name">SeriStyle</span>
18-
<span class="central-sub">v1.12.2</span>
18+
<span class="central-sub">v1.12.3</span>
1919
<span class="central-sub" id="storage-status"></span>
2020
</div>
2121
<div id="interactions">
@@ -24,7 +24,6 @@
2424
</div>
2525
<footer id="low">
2626
<a href="https://github.com/Alluseri/SeriStyle/issues/new/choose">Report an issue</a>
27-
<a id="low-i-debug">Copy debug</a>
2827
</footer>
2928
</body>
3029

html/popup.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
11
document.addEventListener('DOMContentLoaded', function () {
22
Array.from(document.querySelectorAll('[inject-href]')).forEach(Element => {
3-
/*var OPath = Element.attributes["inject-href"].value;
4-
if (OPath[0] == ':') {
5-
var CPath = document.location.href;
6-
CPath = CPath.substring(0, CPath.lastIndexOf('/'));
7-
OPath = OPath.replace(':', CPath);
8-
}
9-
Element.onclick = () => window.open(OPath);*/
103
Element.onclick = () => window.open(Element.attributes["inject-href"].value);
114
});
12-
document.getElementById("low-i-debug").onclick = async () => {
13-
var DebugInfo = [
14-
"- SeriStyle v1.12.2",
15-
"- " + navigator.userAgent,
16-
"- " + StorageMode
17-
];
18-
try {
19-
await navigator.clipboard.writeText(DebugInfo.join("\r\n"));
20-
alert("Successfully copied debug info to clipboard.");
21-
} catch {
22-
alert("Couldn't copy debug info to clipboard due to an error.");
23-
}
24-
};
255
document.getElementById("storage-status").innerText = StorageMode == 1 ? "Bad browser..." : StorageMode == 2 ? "Firefox Debug Mode" : "";
266
});

manifest.firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "SeriStyle",
44
"author": "Nekoseri",
5-
"version": "1.12.2",
5+
"version": "1.12.3",
66
"description": "Bring the early-2021 UI back to YouTube!",
77
"icons": {
88
"16": "icons/default16.png",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "SeriStyle",
44
"author": "Nekoseri",
5-
"version": "1.12.2",
5+
"version": "1.12.3",
66
"description": "Bring the early-2021 UI back to YouTube!",
77
"icons": {
88
"16": "icons/default16.png",

scripts/defaults.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ this.SeriStyleLocales = {
2424
Advanced: "Advanced settings"
2525
},
2626
Messages: {
27-
UpdateSettings: "SeriStyle was updated to version 1.12.2, which " + this.SeriStyleMetaNotice + "\n\nDo you want to visit the settings page(opens in a new tab)?"
27+
UpdateSettings: "SeriStyle was updated to version 1.12.3, which " + this.SeriStyleMetaNotice + "\n\nDo you want to visit the settings page(opens in a new tab)?"
2828
}
2929
}
3030
};
@@ -195,7 +195,7 @@ this.SeriStyleSettings = {
195195
"en-US": "Force min. content padding"
196196
},
197197
LowerBound: {
198-
"en-US": "Disabled (Recommended)"
198+
"en-US": "Disabled"
199199
},
200200
Value: 0,
201201
Format: {
@@ -400,13 +400,6 @@ this.SeriStyleSettings = {
400400
"en-US": "Legacy(v1.2.0) panel style"
401401
},
402402
Value: false
403-
},
404-
LegacyImation: {
405-
Kind: 0,
406-
Name: {
407-
"en-US": "Legacy(v1.9.1) notification bell"
408-
},
409-
Value: false
410403
}
411404
}
412405
};

scripts/transformer-css.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,15 @@ document.head.appendChild(DomUtils.BuildElement("style", {
4545
"#notification-preference-button button{background:none;padding-right:0px;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button
4646
"#notification-preference-button div.yt-spec-button-shape-next__button-text-content{display:none;}" +
4747
// Fix notification bell
48-
(!SeriStyleSettings.Advanced.LegacyImation.Value ? // TODO: Pending removal
49-
SelSubContainer + "{display:flex;flex-direction:row;}"
50-
: "") +
48+
SelSubContainer + "{display:flex;flex-direction:row;}" +
5149
// Hide channel handles
5250
"p.ytd-c4-tabbed-header-renderer{display:none;}" +
5351
// Hide feedback shapes
5452
(SeriStyleSettings.General.HideFeedback.Value ? "yt-touch-feedback-shape{display:none;}" : "") +
5553
// Old colors fixes
5654
(SeriStyleSettings.General.OldColors.Value ?
57-
// Old background color(no longer available through launch transformer)
58-
"ytd-app,ytd-browse,ytd-two-column-browse-results-renderer[page-subtype='playlist'].ytd-browse,ytd-page-manager{background:#181818;}" +
55+
// Old background color
56+
"ytd-app,ytd-browse,ytd-two-column-browse-results-renderer[page-subtype='playlist'].ytd-browse,ytd-page-manager,#show-hide-button>ytd-button-renderer{background:#181818;}" +
5957
// Old top and left bar colors
6058
"#background.ytd-masthead{background:rgba(33,33,33,0.98);}" +
6159
"#guide-content.ytd-app{background:#212121;}" +
@@ -80,6 +78,9 @@ document.head.appendChild(DomUtils.BuildElement("style", {
8078
(SeriStyleSettings.HomePage.HideSeries.Value ? "ytd-badge-supported-renderer.top-badge.ytd-rich-grid-media{display:none;}" : "") +
8179
// Fix alerts
8280
(SeriStyleSettings.Playlist.TrueOld.Value ? "#alerts.ytd-browse{padding-right:0px;}" : "") +
81+
// Remove jam paddings
82+
"yt-collections-stack{display:none;}" +
83+
"ytd-compact-radio-renderer{margin-top:0px;}" + // Hints for selection: .use-ellipsis; has attr "collections" w/o value; TODO HIGH: Add jam remover
8384

8485
/* Videoplayer */
8586
// Recolor HD

scripts/transformer-videopage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var SelFlexibleButtons = SelFlexibleButtonsBar + ">.style-scope";
1010
var SelContextMenuButtons = "#items>ytd-menu-service-item-renderer";
1111
var SelContextMenuOpen = "#actions #button-shape button";
1212
var SelTopLevelButtons = "#actions-inner #top-level-buttons-computed";
13-
var SelShareBtn = SelTopLevelButtons + ">ytd-button-renderer";
13+
var SelShareBtn = SelTopLevelButtons + ">yt-button-view-model";
1414
var SelLikeButtons = "#actions-inner segmented-like-dislike-button-view-model button";
1515
var SelDescription = "#description.ytd-watch-metadata";
1616
var SelDropdown = "tp-yt-iron-dropdown.ytd-popup-container";
@@ -89,14 +89,14 @@ document.head.appendChild(DomUtils.BuildElement("style", {
8989
// Disable rolling likes
9090
"animated-rolling-character,yt-animated-rolling-number{transition:none;}" +
9191
// Force content centering
92-
(SeriStyleSettings.VideoPage.ForceCentering.Value ? "#columns.ytd-watch-flexy{justify-content:center;}" : "") +
92+
(SeriStyleSettings.VideoPage.ForceCentering.Value ? "#columns.ytd-watch-flexy{justify-content:center;}ytd-watch-flexy[flexy]:not([full-bleed-player][full-bleed-no-max-width-columns]) #columns.ytd-watch-flexy{max-width:unset;}" : "") +
9393
// Force content padding, usually not needed
9494
(FCP ? "#columns.ytd-watch-flexy{padding-left:" + FCP + "px;padding-right:" + FCP + "px;}" : "") + // I don't feel comfortable just enforcing padding to 0 without a reason. Same for verticals.
9595
// Hide donation shelves
9696
(SeriStyleSettings.VideoPage.HideDonationShelves.Value ? "#donation-shelf{display:none;}" : "") +
9797
(!SeriStyleSettings.Advanced.DisableHotfixes.Value ?
9898
// HF #1: Disable small double-icons on action bar since I replace all of them
99-
"#top-level-buttons-computed yt-icon>yt-icon-shape{display:none;}" +
99+
"segmented-like-dislike-button-view-model yt-icon>yt-icon-shape{display:none;}" +
100100
//
101101
""
102102
: "") +

0 commit comments

Comments
 (0)