Update Zelluloza (#1209)

* test

* fix

* Update authortoday.ts

* terser@5.34.1

* foxteller
This commit is contained in:
Rider21
2024-10-15 05:04:37 +03:00
committed by GitHub
parent e9179e957d
commit 56e2f4f949
27 changed files with 40 additions and 332 deletions
+4 -2
View File
@@ -14,7 +14,7 @@ class AuthorToday implements Plugin.PluginBase {
site = 'https://author.today';
apiSite = 'https://api.author.today/v1/';
imageSite = 'https://cm.author.today/content/';
version = '1.1.0';
version = '1.1.1';
async popularNovels(
pageNo: number,
@@ -357,11 +357,13 @@ function decrypt(
userId: number | string = '',
) {
const key = encryptedKey.split('').reverse().join('') + '@_@' + userId;
const keyBytes = key.split('').map(char => char.charCodeAt());
const keyLength = keyBytes.length;
let text = '';
for (let i = 0; i < encrypt.length; i++) {
text += String.fromCharCode(
encrypt.charCodeAt(i) ^ key.charCodeAt(i % key.length),
encrypt.charCodeAt(i) ^ keyBytes[i % keyLength],
);
}