mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-09 01:31:46 +00:00
14 lines
373 B
JavaScript
14 lines
373 B
JavaScript
const { PluginConfig } = require('../../config/dynamic');
|
|
|
|
const config = new PluginConfig('adblocker', { enableFront: true });
|
|
|
|
const blockers = {
|
|
WithBlocklists: 'With blocklists',
|
|
InPlayer: 'In player',
|
|
};
|
|
|
|
const shouldUseBlocklists = async () =>
|
|
(await config.get('blocker')) !== blockers.InPlayer;
|
|
|
|
module.exports = { shouldUseBlocklists, blockers, ...config };
|