yup
This commit is contained in:
parent
117d0265ae
commit
ac99a5ec27
4 changed files with 25 additions and 15 deletions
|
|
@ -147,6 +147,8 @@ const _cr = [
|
|||
'emVlIHN0dWRpb3M=',
|
||||
'emluZGFnaSBtdXNpYw==',
|
||||
'emVlNQ==',
|
||||
'Ym9sbHl3b29kIG11c2lj',
|
||||
'ZXNzZWw=',
|
||||
].map(atob);
|
||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||
|
||||
|
|
|
|||
|
|
@ -175,6 +175,8 @@ const _cr = [
|
|||
'emVlIHN0dWRpb3M=',
|
||||
'emluZGFnaSBtdXNpYw==',
|
||||
'emVlNQ==',
|
||||
'Ym9sbHl3b29kIG11c2lj',
|
||||
'ZXNzZWw=',
|
||||
].map(atob);
|
||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||
|
||||
|
|
|
|||
19
js/content-filter.ts
Normal file
19
js/content-filter.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const _cr = [
|
||||
'emVl',
|
||||
'em1j',
|
||||
'emVlIG11c2lj',
|
||||
'emVlIGVudGVydGFpbm1lbnQ=',
|
||||
'emVlbA==',
|
||||
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
||||
'emVlIHJlY29yZHM=',
|
||||
'emluZyBtdXNpYw==',
|
||||
'ZXRjIGJvbGx5d29vZA==',
|
||||
'emVlIHN0dWRpb3M=',
|
||||
'emluZGFnaSBtdXNpYw==',
|
||||
'emVlNQ==',
|
||||
'Ym9sbHl3b29kIG11c2lj',
|
||||
'ZXNzZWw=',
|
||||
].map(atob);
|
||||
|
||||
export const isBlockedCopyright = (c: string | null | undefined): boolean =>
|
||||
!!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||
17
js/ui.js
17
js/ui.js
|
|
@ -51,21 +51,8 @@ import {
|
|||
createTrackFromSong,
|
||||
} from './tracker.js';
|
||||
|
||||
const _cr = [
|
||||
'emVl',
|
||||
'em1j',
|
||||
'emVlIG11c2lj',
|
||||
'emVlIGVudGVydGFpbm1lbnQ=',
|
||||
'emVlbA==',
|
||||
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
||||
'emVlIHJlY29yZHM=',
|
||||
'emluZyBtdXNpYw==',
|
||||
'ZXRjIGJvbGx5d29vZA==',
|
||||
'emVlIHN0dWRpb3M=',
|
||||
'emluZGFnaSBtdXNpYw==',
|
||||
'emVlNQ==',
|
||||
].map(atob);
|
||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||
let _isBlockedCopyright = (_c) => false;
|
||||
import('./content-filter.ts').then((m) => { _isBlockedCopyright = m.isBlockedCopyright; }).catch(() => {});
|
||||
|
||||
fontSettings.applyFont().catch(console.error);
|
||||
fontSettings.applyFontSize();
|
||||
|
|
|
|||
Loading…
Reference in a new issue