mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
18 lines
430 B
TypeScript
18 lines
430 B
TypeScript
import { PluginConfig } from '../../config/dynamic';
|
|
|
|
const config = new PluginConfig('adblocker', { enableFront: true });
|
|
|
|
export const blockers = {
|
|
WithBlocklists: 'With blocklists',
|
|
InPlayer: 'In player',
|
|
};
|
|
|
|
export const shouldUseBlocklists = async () => await config.get('blocker') !== blockers.InPlayer;
|
|
|
|
export default {
|
|
shouldUseBlocklists,
|
|
blockers,
|
|
get: config.get.bind(this),
|
|
set: config.set.bind(this),
|
|
};
|