mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
14 lines
370 B
JavaScript
14 lines
370 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 };
|