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 = [
|
||||
'emVl',
|
||||
'em1j',
|
||||
'emVlIG11c2lj',
|
||||
'emVlIGVudGVydGFpbm1lbnQ=',
|
||||
'emVlbA==',
|
||||
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
||||
'emVlIHJlY29yZHM=',
|
||||
'emluZyBtdXNpYw==',
|
||||
'ZXRjIGJvbGx5d29vZA==',
|
||||
'emVlIHN0dWRpb3M=',
|
||||
'emluZGFnaSBtdXNpYw==',
|
||||
'emVlNQ==',
|
||||
'Ym9sbHl3b29kIG11c2lj',
|
||||
'ZXNzZWw=',
|
||||
'emVl', // zee
|
||||
'em1j', // zmc
|
||||
'emluZyBtdXNpYw==', // zing music
|
||||
'ZXRjIGJvbGx5d29vZA==', // etc bollywood
|
||||
'Ym9sbHl3b29kIG11c2lj', // bollywood music
|
||||
'ZXNzZWw=', // essel
|
||||
'emluZGFnaQ==', // zindagi
|
||||
].map(atob);
|
||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||
|
||||
|
|
|
|||
|
|
@ -163,20 +163,13 @@ class ServerAPI {
|
|||
}
|
||||
|
||||
const _cr = [
|
||||
'emVl',
|
||||
'em1j',
|
||||
'emVlIG11c2lj',
|
||||
'emVlIGVudGVydGFpbm1lbnQ=',
|
||||
'emVlbA==',
|
||||
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
||||
'emVlIHJlY29yZHM=',
|
||||
'emluZyBtdXNpYw==',
|
||||
'ZXRjIGJvbGx5d29vZA==',
|
||||
'emVlIHN0dWRpb3M=',
|
||||
'emluZGFnaSBtdXNpYw==',
|
||||
'emVlNQ==',
|
||||
'Ym9sbHl3b29kIG11c2lj',
|
||||
'ZXNzZWw=',
|
||||
'emVl', // zee
|
||||
'em1j', // zmc
|
||||
'emluZyBtdXNpYw==', // zing music
|
||||
'ZXRjIGJvbGx5d29vZA==', // etc bollywood
|
||||
'Ym9sbHl3b29kIG11c2lj', // bollywood music
|
||||
'ZXNzZWw=', // essel
|
||||
'emluZGFnaQ==', // zindagi
|
||||
].map(atob);
|
||||
const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s));
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,11 @@
|
|||
const _cr = [
|
||||
'emVl',
|
||||
'em1j',
|
||||
'emVlIG11c2lj',
|
||||
'emVlIGVudGVydGFpbm1lbnQ=',
|
||||
'emVlbA==',
|
||||
'Ym9sbHl3b29kIG11c2ljIGluZGlh',
|
||||
'emVlIHJlY29yZHM=',
|
||||
'emluZyBtdXNpYw==',
|
||||
'ZXRjIGJvbGx5d29vZA==',
|
||||
'emVlIHN0dWRpb3M=',
|
||||
'emluZGFnaSBtdXNpYw==',
|
||||
'emVlNQ==',
|
||||
'Ym9sbHl3b29kIG11c2lj',
|
||||
'ZXNzZWw=',
|
||||
'emVl', // zee
|
||||
'em1j', // zmc
|
||||
'emluZyBtdXNpYw==', // zing music
|
||||
'ZXRjIGJvbGx5d29vZA==', // etc bollywood
|
||||
'Ym9sbHl3b29kIG11c2lj', // bollywood music
|
||||
'ZXNzZWw=', // essel
|
||||
'emluZGFnaQ==', // zindagi
|
||||
].map(atob);
|
||||
|
||||
export const isBlockedCopyright = (c: string | null | undefined): boolean =>
|
||||
|
|
|
|||
6
js/ui.js
6
js/ui.js
|
|
@ -52,7 +52,11 @@ import {
|
|||
} from './tracker.js';
|
||||
|
||||
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.applyFontSize();
|
||||
|
|
|
|||
Loading…
Reference in a new issue