Skip to content

Commit dd993c1

Browse files
committed
Fix time param in Share URLs
1 parent 25f33e2 commit dd993c1

File tree

7 files changed

+20
-13
lines changed

7 files changed

+20
-13
lines changed

html/popup.html

Lines changed: 1 addition & 1 deletion
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.11.1</span>
18+
<span class="central-sub">v1.11.2</span>
1919
<span class="central-sub" id="storage-status"></span>
2020
</div>
2121
<div id="interactions">

html/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', function () {
1111
});
1212
document.getElementById("low-i-debug").onclick = async () => {
1313
var DebugInfo = [
14-
"- SeriStyle v1.11.1",
14+
"- SeriStyle v1.11.2",
1515
"- " + navigator.userAgent,
1616
"- " + StorageMode
1717
];

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.11.1",
5+
"version": "1.11.2",
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.11.1",
5+
"version": "1.11.2",
66
"description": "Bring the early-2021 UI back to YouTube!",
77
"icons": {
88
"16": "icons/default16.png",

scripts/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ this.SeriStyleLocales = {
1818
Advanced: "Advanced settings"
1919
},
2020
Messages: {
21-
UpdateSettings: "SeriStyle was updated to version 1.11.1, which introduced new settings!\n\nDo you want to visit the settings page(opens in a new tab)?"
21+
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)?"
2222
}
2323
}
2424
};

scripts/transformer-general.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@ setInterval(function() { // It's not my problem that everyone is stupid enough n
3636

3737
var ShareUrl;
3838
var OldU;
39-
var FixShareIntv = setInterval(function() {
40-
/*var Wax = $("body > ytd-app > ytd-popup-container > tp-yt-paper-dialog");
41-
if (Wax) {
42-
Wax.querySelector("ytd-unified-share-panel-renderer").querySelector("#contents").firstElementChild.querySelector("#copy-link").firstElementChild.firstElementChild.firstElementChild.value = "thighs";
43-
}*/
44-
39+
var FixShareIntv = setInterval(function() { // I hate the fact that you can't use intervals for checking value change, and on god I will not use Reflection for this
4540
if (!ShareUrl) if (!(ShareUrl = document.getElementById("share-url"))) return; // It's a singleton from my observations at least
4641
var SuVal = ShareUrl.value;
47-
if (SuVal != OldU && SuVal.includes("?si=")) {
48-
ShareUrl.value = OldU = SuVal.split("?si=")[0];
42+
if (SuVal != OldU && SuVal.includes("si=")) {
43+
// ShareUrl.value = OldU = SuVal.split("?si=")[0];
44+
OldU = SuVal.replace(/&{0,1}si=.+?(&|$)/, "");
45+
if (OldU.endsWith("?")) OldU = OldU.substr(0, OldU.length - 1); // Oh no, cringe
46+
ShareUrl.value = OldU;
4947
}
5048
}, SeriStyleSettings.Advanced.ShareFixInterval.Value);
5149

update.firefox.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@
6464
"strict_min_version": "109"
6565
}
6666
}
67+
},
68+
{
69+
"version": "1.11.2",
70+
"update_link": "https://github.com/Alluseri/SeriStyle/releases/download/1.11.2/SeriStyle-1.11.2.xpi",
71+
"applications": {
72+
"gecko": {
73+
"strict_min_version": "109"
74+
}
75+
}
6776
}
6877
]
6978
}

0 commit comments

Comments
 (0)