mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
chore(plugins): change default config album-actions, music-together
This commit is contained in:
@ -12,7 +12,7 @@ export default createPlugin({
|
|||||||
description: () => t('plugins.album-actions.description'),
|
description: () => t('plugins.album-actions.description'),
|
||||||
restartNeeded: false,
|
restartNeeded: false,
|
||||||
config: {
|
config: {
|
||||||
enabled: true,
|
enabled: false,
|
||||||
},
|
},
|
||||||
renderer: {
|
renderer: {
|
||||||
observer: null as MutationObserver | null,
|
observer: null as MutationObserver | null,
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export default createPlugin({
|
|||||||
description: () => t('plugins.music-together.description'),
|
description: () => t('plugins.music-together.description'),
|
||||||
restartNeeded: false,
|
restartNeeded: false,
|
||||||
config: {
|
config: {
|
||||||
enabled: true
|
enabled: false
|
||||||
},
|
},
|
||||||
stylesheets: [style],
|
stylesheets: [style],
|
||||||
backend: {
|
backend: {
|
||||||
@ -670,7 +670,7 @@ export default createPlugin({
|
|||||||
const dividers = Array.from(document.querySelectorAll('.music-together-divider'));
|
const dividers = Array.from(document.querySelectorAll('.music-together-divider'));
|
||||||
dividers.forEach((divider) => divider.remove());
|
dividers.forEach((divider) => divider.remove());
|
||||||
|
|
||||||
this.elements.setting.remove();
|
this.elements.setting?.remove();
|
||||||
this.onStop();
|
this.onStop();
|
||||||
if (typeof this.stateInterval === 'number') clearInterval(this.stateInterval);
|
if (typeof this.stateInterval === 'number') clearInterval(this.stateInterval);
|
||||||
if (this.playerApi) this.playerApi.removeEventListener('onStateChange', this.videoStateChangeListener);
|
if (this.playerApi) this.playerApi.removeEventListener('onStateChange', this.videoStateChangeListener);
|
||||||
|
|||||||
Reference in New Issue
Block a user