refactor!: switched comments to be using the desktop web api

This commit is contained in:
Alex 2022-04-21 17:29:50 +12:00
parent 0ed974e577
commit 2ad58fbed4
4 changed files with 5 additions and 4 deletions

View File

@ -21,7 +21,7 @@
<div class="comment-content--header">
<h3 class="author-name--wrapper">
<span class="font-weight-bold subtitle-2 pr-1 author-name" emoji>
{{ commentRenderer.authorText.runs[0].text }}
{{ commentRenderer.authorText.simpleText }}
</span>
</h3>
<span

View File

@ -13,7 +13,8 @@ const ytApiVal = {
VERSION: "16.25",
CLIENTNAME: "ANDROID",
VERSION_WEB: "2.20220411.09.00",
CLIENT_WEB: 2,
CLIENT_WEB_M: 2,
CLIENT_WEB_D: 1,
};
const filesystem = {

View File

@ -159,7 +159,7 @@ class Innertube {
...{
context: {
client: {
clientName: constants.YT_API_VALUES.CLIENT_WEB,
clientName: constants.YT_API_VALUES.CLIENT_WEB_M,
clientVersion: constants.YT_API_VALUES.VERSION_WEB,
},
},

View File

@ -152,7 +152,7 @@ const innertubeModule = {
...contextAdditional,
...{
client: {
clientName: constants.YT_API_VALUES.CLIENT_WEB,
clientName: constants.YT_API_VALUES.CLIENT_WEB_D,
clientVersion: constants.YT_API_VALUES.VERSION_WEB,
},
},