Skip to content

Переключатель срабатывания скрипта для веб страницы #118

Discussion options

You must be logged in to vote

кажется кусок Filter.removeTracks(Wow, Wow); неграмотный

Указать пустой массив [] для tracks в saveWithReplace

Поскольку нет обратной связи со страницей, добавил пункт вывода текущего режима в консоль.

// launch.html
{
    action: 'toggleRecomQueueMode',
    title: 'Переключение режима',
    forms: [
        {
            key: 'mode',
            select: [
                { value: 'status', label: 'Узнать текущий режим' },
                { value: 'favorite', label: 'Только избранные плейлисты' },
                { value: 'overall', label: 'Любые плейлисты' },
                { value: 'disabled', label: 'Выключить рекомендации' },
            ]
        },
    ]
},
// обработчик
function t…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Bedmit
Comment options

Comment options

You must be logged in to vote
3 replies
@Bedmit
Comment options

@Chimildic
Comment options

@Bedmit
Comment options

Answer selected by Chimildic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants