ouuuu
This commit is contained in:
parent
ac99a5ec27
commit
c6b3f2f698
4 changed files with 26 additions and 43 deletions
|
|
@ -135,20 +135,13 @@ class ServerAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
const _cr = [
|
const _cr = [
|
||||||
'emVl',
|
'emVl', // zee
|
||||||
'em1j',
|
'em1j', // zmc
|
||||||
'emVlIG11c2lj',
|
'emluZyBtdXNpYw==', // zing music
|
||||||
'emVlIGVudGVydGFpbm1lbnQ=',
|
'ZXRjIGJvbGx5d29vZA==', // etc bollywood
|
||||||
'emVlbA==',
|
'Ym9sbHl3b29kIG11c2lj', // bollywood music
|
||||||
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
'ZXNzZWw=', // essel
|
||||||
'emVlIHJlY29yZHM=',
|
'emluZGFnaQ==', // zindagi
|
||||||
'emluZyBtdXNpYw==',
|
|
||||||
'ZXRjIGJvbGx5d29vZA==',
|
|
||||||
'emVlIHN0dWRpb3M=',
|
|
||||||
'emluZGFnaSBtdXNpYw==',
|
|
||||||
'emVlNQ==',
|
|
||||||
'Ym9sbHl3b29kIG11c2lj',
|
|
||||||
'ZXNzZWw=',
|
|
||||||
].map(atob);
|
].map(atob);
|
||||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -163,20 +163,13 @@ class ServerAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
const _cr = [
|
const _cr = [
|
||||||
'emVl',
|
'emVl', // zee
|
||||||
'em1j',
|
'em1j', // zmc
|
||||||
'emVlIG11c2lj',
|
'emluZyBtdXNpYw==', // zing music
|
||||||
'emVlIGVudGVydGFpbm1lbnQ=',
|
'ZXRjIGJvbGx5d29vZA==', // etc bollywood
|
||||||
'emVlbA==',
|
'Ym9sbHl3b29kIG11c2lj', // bollywood music
|
||||||
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
'ZXNzZWw=', // essel
|
||||||
'emVlIHJlY29yZHM=',
|
'emluZGFnaQ==', // zindagi
|
||||||
'emluZyBtdXNpYw==',
|
|
||||||
'ZXRjIGJvbGx5d29vZA==',
|
|
||||||
'emVlIHN0dWRpb3M=',
|
|
||||||
'emluZGFnaSBtdXNpYw==',
|
|
||||||
'emVlNQ==',
|
|
||||||
'Ym9sbHl3b29kIG11c2lj',
|
|
||||||
'ZXNzZWw=',
|
|
||||||
].map(atob);
|
].map(atob);
|
||||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,11 @@
|
||||||
const _cr = [
|
const _cr = [
|
||||||
'emVl',
|
'emVl', // zee
|
||||||
'em1j',
|
'em1j', // zmc
|
||||||
'emVlIG11c2lj',
|
'emluZyBtdXNpYw==', // zing music
|
||||||
'emVlIGVudGVydGFpbm1lbnQ=',
|
'ZXRjIGJvbGx5d29vZA==', // etc bollywood
|
||||||
'emVlbA==',
|
'Ym9sbHl3b29kIG11c2lj', // bollywood music
|
||||||
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
'ZXNzZWw=', // essel
|
||||||
'emVlIHJlY29yZHM=',
|
'emluZGFnaQ==', // zindagi
|
||||||
'emluZyBtdXNpYw==',
|
|
||||||
'ZXRjIGJvbGx5d29vZA==',
|
|
||||||
'emVlIHN0dWRpb3M=',
|
|
||||||
'emluZGFnaSBtdXNpYw==',
|
|
||||||
'emVlNQ==',
|
|
||||||
'Ym9sbHl3b29kIG11c2lj',
|
|
||||||
'ZXNzZWw=',
|
|
||||||
].map(atob);
|
].map(atob);
|
||||||
|
|
||||||
export const isBlockedCopyright = (c: string | null | undefined): boolean =>
|
export const isBlockedCopyright = (c: string | null | undefined): boolean =>
|
||||||
|
|
|
||||||
6
js/ui.js
6
js/ui.js
|
|
@ -52,7 +52,11 @@ import {
|
||||||
} from './tracker.js';
|
} from './tracker.js';
|
||||||
|
|
||||||
let _isBlockedCopyright = (_c) => false;
|
let _isBlockedCopyright = (_c) => false;
|
||||||
import('./content-filter.ts').then((m) => { _isBlockedCopyright = m.isBlockedCopyright; }).catch(() => {});
|
import('./content-filter.ts')
|
||||||
|
.then((m) => {
|
||||||
|
_isBlockedCopyright = m.isBlockedCopyright;
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
|
||||||
fontSettings.applyFont().catch(console.error);
|
fontSettings.applyFont().catch(console.error);
|
||||||
fontSettings.applyFontSize();
|
fontSettings.applyFontSize();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue