Skip to content

Commit

Permalink
fix avdb
Browse files Browse the repository at this point in the history
  • Loading branch information
Yswag committed Jan 8, 2025
1 parent a551c6d commit 2505f2c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/avdb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const UA = 'okhttp/3.12.11'
const UA = 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_2 like Mac OS X) AppleWebKit/604.1.14 (KHTML, like Gecko)'
const config = argsify($config_str)

let appConfig = {
Expand Down
2 changes: 1 addition & 1 deletion js/novipnoad.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const cheerio = createCheerio()

const UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36'
const UA = 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_2 like Mac OS X) AppleWebKit/604.1.14 (KHTML, like Gecko)'

let appConfig = {
ver: 1,
Expand Down
24 changes: 23 additions & 1 deletion js/taohuazu.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,37 @@ let appConfig = {
ver: 1,
title: '桃花族',
// 40thz.com
site: 'http://7340hsck.cc',
// site: 'http://7340hsck.cc',
home: 'http://hscangku.com',
site: 'http://920ck.us',
}

async function getConfig() {
// await getNewDomain()
let config = appConfig
config.tabs = await getTabs()
return jsonify(config)
}

async function getNewDomain() {
let url = appConfig.home
const { data } = await $fetch.get(url, {
headers: {
'User-Agent': UA,
},
})

let redirect = data.match(/r strU="(https:\/\/.*?)\/\?u=/)[1]
$print(redirect)
redirect = redirect + `/?u=${appConfig.home}/&p=/`
const res = await $fetch.get(redirect, {
headers: {
'User-Agent': UA,
},
})
$print(JSON.stringify(res, null, 2))
}

async function getTabs() {
let list = []

Expand Down

0 comments on commit 2505f2c

Please sign in to comment.