Removed illustration pre-processing(#1144)

This commit is contained in:
Rider21
2024-08-18 13:52:14 +03:00
committed by GitHub
parent 7e98a91ef6
commit eb5522b066
7 changed files with 3 additions and 46 deletions
-9
View File
@@ -135,15 +135,6 @@ class AuthorToday implements Plugin.PluginBase {
}
const chapterText = decrypt(result.text, result.key, this.user?.userId);
if (chapterText.includes('<img')) {
return chapterText.replace(/src="(.*?)"/g, (match, url) => {
if (!url.startsWith('http')) {
return `src="${this.site}${url}"`;
}
return `src="${url}"`;
});
}
return chapterText;
}