mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 04:41:47 +00:00
@ -17,7 +17,3 @@ export const startingPages: Record<string, string> = {
|
|||||||
'Uploaded Albums': 'FEmusic_library_privately_owned_releases',
|
'Uploaded Albums': 'FEmusic_library_privately_owned_releases',
|
||||||
'Uploaded Artists': 'FEmusic_library_privately_owned_artists',
|
'Uploaded Artists': 'FEmusic_library_privately_owned_artists',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
|
||||||
startingPages,
|
|
||||||
};
|
|
||||||
|
|||||||
@ -35,7 +35,7 @@ async function listenForApiLoad() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface YouTubeMusicAppElement extends HTMLElement {
|
interface YouTubeMusicAppElement extends HTMLElement {
|
||||||
navigate_(page: string): void;
|
navigate(page: string): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onApiLoaded() {
|
async function onApiLoaded() {
|
||||||
@ -167,7 +167,7 @@ async function onApiLoaded() {
|
|||||||
if (startingPage && startingPages[startingPage]) {
|
if (startingPage && startingPages[startingPage]) {
|
||||||
document
|
document
|
||||||
.querySelector<YouTubeMusicAppElement>('ytmusic-app')
|
.querySelector<YouTubeMusicAppElement>('ytmusic-app')
|
||||||
?.navigate_(startingPages[startingPage]);
|
?.navigate(startingPages[startingPage]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove upgrade button
|
// Remove upgrade button
|
||||||
|
|||||||
Reference in New Issue
Block a user