This commit is contained in:
edideaur 2026-04-14 22:53:35 +03:00
parent 117d0265ae
commit ac99a5ec27
4 changed files with 25 additions and 15 deletions

View file

@ -147,6 +147,8 @@ const _cr = [
'emVlIHN0dWRpb3M=',
'emluZGFnaSBtdXNpYw==',
'emVlNQ==',
'Ym9sbHl3b29kIG11c2lj',
'ZXNzZWw=',
].map(atob);
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));

View file

@ -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
View 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));

View file

@ -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();