From c4d18415dec0ebaa11e25291713dea35cccae365 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Fri, 6 Jun 2025 17:36:47 +0800 Subject: [PATCH] Fixed requiem encryption (#1710) --- scripts/multisrc/lightnovelwp/sources.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/multisrc/lightnovelwp/sources.json b/scripts/multisrc/lightnovelwp/sources.json index 721fc25..89d874c 100644 --- a/scripts/multisrc/lightnovelwp/sources.json +++ b/scripts/multisrc/lightnovelwp/sources.json @@ -198,8 +198,8 @@ "options": { "lang": "English", "reverseChapters": true, - "customJs": "\n $('div.entry-content script').remove();\n $('div.entry-content > p').each((_,el) => {\n const url = this.site + chapterPath.slice(0, -1);\n const encode = url.length * url.charCodeAt(url.length - 1) * 2 % 3;\n\n const offsets = new Map([[0, 4223], [1, 12415], [2, 7007]]);\n const offset = offsets.get(encode) ?? 4223;\n\n $(el).text($(el).text().split('').map(char => {\n let code = char.charCodeAt(0);\n return (code < offset || code > offset+255) ? char : String.fromCharCode(code-offset);\n }).join(''));\n });\n", - "versionIncrements": 2 + "customJs": "\n $('div.entry-content script').remove();\n $('div.entry-content > p').each((_,el) => {\n const url = this.site + chapterPath.slice(0, -1);\n const encode = url.length * url.charCodeAt(url.length - 1) * 2 % 3;\n\n const offsets = [[0, 12368, 12462], [1, 6960, 7054], [2, 4176, 4270]];\n const offsetLower = (offsets[encode] ?? offsets[0])[1];\n const offsetCap = (offsets[encode] ?? offsets[0])[2];\n\n $(el).text($(el).text().split('').map(char => {\n let code = char.charCodeAt(0);\n let offset;\n if(code >= offsetLower + 'a'.charCodeAt(0) && code <= offsetLower + 'z'.charCodeAt(0)\n || code >= offsetLower + 'A'.charCodeAt(0) && code <= offsetLower + \"Z\".charCodeAt(0)) {\n offset = offsetLower;\n } else {\n offset = offsetCap;\n }\n return (code < offset || code > offset+255) ? char : String.fromCharCode(code-offset);\n }).join(''));\n });\n", + "versionIncrements": 3 } }, {