mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
QOL: Move source code under the src directory. (#1318)
This commit is contained in:
21
src/plugins/adblocker/menu.ts
Normal file
21
src/plugins/adblocker/menu.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import config from './config';
|
||||
|
||||
import { blockers } from './blocker-types';
|
||||
|
||||
import { MenuTemplate } from '../../menu';
|
||||
|
||||
export default (): MenuTemplate => {
|
||||
return [
|
||||
{
|
||||
label: 'Blocker',
|
||||
submenu: Object.values(blockers).map((blocker: string) => ({
|
||||
label: blocker,
|
||||
type: 'radio',
|
||||
checked: (config.get('blocker') || blockers.WithBlocklists) === blocker,
|
||||
click() {
|
||||
config.set('blocker', blocker);
|
||||
},
|
||||
})),
|
||||
},
|
||||
];
|
||||
};
|
||||
Reference in New Issue
Block a user