update mangas
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
async function searchContent(keyword,page=0){
|
||||
async function searchResults(keyword,page=0){
|
||||
const headers = {
|
||||
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
"X-Requested-With": "XMLHttpRequest",
|
||||
@@ -25,7 +25,7 @@ async function searchContent(keyword,page=0){
|
||||
return results;
|
||||
}
|
||||
|
||||
async function getContentData(url) {
|
||||
async function extractDetails(url) {
|
||||
function parseHtmlData(htmlContent) {
|
||||
const tagsRegex = /<span>标\s+签:\s*<\/span>\s*([\s\S]*?)<span>状/;
|
||||
const descRegex = /<p class="content">([\s\S]+?)<\/p>/;
|
||||
@@ -53,7 +53,7 @@ async function getContentData(url) {
|
||||
return parseHtmlData(data);
|
||||
}
|
||||
|
||||
async function getChapters(url) {
|
||||
async function extractChapters(url) {
|
||||
function parseHtmlData(htmlContent) {
|
||||
const chapterRegex = /<a href="([^"]+)"><li>([^<]+)<\/li><\/a>/g;
|
||||
const chapters = [];
|
||||
@@ -86,7 +86,7 @@ async function getChapters(url) {
|
||||
return parseHtmlData(data);
|
||||
}
|
||||
|
||||
async function getChapterImages(url) {
|
||||
async function extractImages(url) {
|
||||
function parseHtmlData(htmlContent) {
|
||||
const scriptRegex = /<script[^>]*type=['"]text\/javascript['"][^>]*>([\s\S]*?)<\/script>/g;
|
||||
let obfuscatedScript = null;
|
||||
|
||||
Reference in New Issue
Block a user