You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/routes/changba/user.tsx
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,7 @@ import type { Route } from '@/types';
5
5
import{ViewType}from'@/types';
6
6
importcachefrom'@/utils/cache';
7
7
importgotfrom'@/utils/got';
8
-
9
-
constheaders={'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1'};
Copy file name to clipboardExpand all lines: lib/routes/ddosi/category.ts
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
import{load}from'cheerio';
2
2
3
-
import{config}from'@/config';
4
3
importtype{Route}from'@/types';
5
4
importgotfrom'@/utils/got';
5
+
import{PRESETS}from'@/utils/header-generator';
6
6
import{parseDate}from'@/utils/parse-date';
7
7
8
8
exportconstroute: Route={
@@ -25,22 +25,21 @@ export const route: Route = {
25
25
},
26
26
],
27
27
name: '分类',
28
-
maintainers: [],
28
+
maintainers: ['XinRoom'],
29
29
handler,
30
30
url: 'ddosi.org/',
31
31
};
32
32
33
33
asyncfunctionhandler(ctx){
34
34
consturl='https://www.ddosi.org/category';
35
-
constuserAgent=config.ua||'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1';
Copy file name to clipboardExpand all lines: lib/routes/ddosi/index.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,34 @@
1
1
import{load}from'cheerio';
2
2
3
-
import{config}from'@/config';
4
3
importtype{Route}from'@/types';
5
4
importgotfrom'@/utils/got';
5
+
import{PRESETS}from'@/utils/header-generator';
6
6
import{parseDate}from'@/utils/parse-date';
7
7
8
8
exportconstroute: Route={
9
9
path: '/',
10
+
example: '/ddosi',
10
11
radar: [
11
12
{
12
13
source: ['ddosi.org/'],
13
14
target: '',
14
15
},
15
16
],
16
-
name: 'Unknown',
17
+
name: '首页',
17
18
maintainers: ['XinRoom'],
18
19
handler,
19
20
url: 'ddosi.org/',
20
21
};
21
22
22
23
asyncfunctionhandler(){
23
24
consturl='https://www.ddosi.org/';
24
-
constuserAgent=config.ua||'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1';
constuserAgent='Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1';
Copy file name to clipboardExpand all lines: lib/routes/qidian/author.tsx
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,7 @@ import { load } from 'cheerio';
2
2
3
3
importtype{Route}from'@/types';
4
4
importgotfrom'@/utils/got';
5
-
6
-
constheaders={
7
-
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1',
Copy file name to clipboardExpand all lines: lib/routes/qidian/chapter.ts
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ import { load } from 'cheerio';
3
3
importtype{Route}from'@/types';
4
4
import{ViewType}from'@/types';
5
5
importgotfrom'@/utils/got';
6
+
import{PRESETS}from'@/utils/header-generator';
6
7
import{parseDate}from'@/utils/parse-date';
7
8
8
9
exportconstroute: Route={
@@ -32,18 +33,13 @@ export const route: Route = {
32
33
asyncfunctionhandler(ctx){
33
34
constid=ctx.req.param('id');
34
35
35
-
constuserAgent='Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1';
0 commit comments