Skip to content

Commit 7cc3e81

Browse files
author
tingyuan
committed
-
1 parent 8b8effa commit 7cc3e81

7 files changed

Lines changed: 82 additions & 21 deletions

File tree

app/(drawer)/zhihu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default function Zhihu() {
2323
'datahub.zhihu.com',
2424
'apm.zhihu.com',
2525
'www.zhihu.com/oia/answers/',
26+
'www.zhihu.com/oia/people/',
2627
]}
2728
css={`
2829
.OpenInAppButton,

app/(drawer)/zidingyi6.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import CustomPage from '@/components/CustomPage'
2+
import { TabsName } from '@/constants/Tabs'
3+
4+
export default function Zidingyi6() {
5+
return <CustomPage name={TabsName.zidingyi6} />
6+
}

app/(drawer)/zidingyi7.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import CustomPage from '@/components/CustomPage'
2+
import { TabsName } from '@/constants/Tabs'
3+
4+
export default function Zidingyi7() {
5+
return <CustomPage name={TabsName.zidingyi7} />
6+
}

app/(drawer)/zidingyi8.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import CustomPage from '@/components/CustomPage'
2+
import { TabsName } from '@/constants/Tabs'
3+
4+
export default function Zidingyi8() {
5+
return <CustomPage name={TabsName.zidingyi8} />
6+
}

app/(drawer)/zidingyi9.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import CustomPage from '@/components/CustomPage'
2+
import { TabsName } from '@/constants/Tabs'
3+
4+
export default function Zidingyi9() {
5+
return <CustomPage name={TabsName.zidingyi9} />
6+
}

components/WebView/inject.js

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ function __$inject() {
3636
margin-left: 5px;
3737
border-radius: 10px;
3838
}
39-
.tgme_widget_message_wrap.js-widget_message_wrap {
40-
margin-top: 10px;}
39+
.tgme_widget_message_wrap.js-widget_message_wrap {
40+
margin-top: 15px;
41+
42+
}
43+
.tgme_widget_message_text.js-message_text {
44+
font-size: 16px;
45+
line-height: 24px;
46+
}
47+
48+
4149
`
4250
window.document.head?.append(noDragCss)
4351
window.__waitBody = callback => {
@@ -157,25 +165,25 @@ margin-top: 10px;}
157165
})
158166
}
159167

160-
window.setInterval(() => {
161-
if (!window.document.body) {
162-
return
163-
}
164-
if (window.document.getElementById('__keep-alive__')) {
165-
window.document.getElementById('__keep-alive__')?.remove()
166-
} else {
167-
const div = window.document.createElement('div')
168-
div.id = '__keep-alive__'
169-
div.innerHTML = window.document.body.clientHeight + 'px'
170-
div.style.width = '1px'
171-
div.style.height = '1px'
172-
div.style.fontSize = '0'
173-
div.style.position = 'fixed'
174-
if (window.document.body) {
175-
window.document.body.appendChild(div)
176-
}
177-
}
178-
}, 4000)
168+
// window.setInterval(() => {
169+
// if (!window.document.body) {
170+
// return
171+
// }
172+
// if (window.document.getElementById('__keep-alive__')) {
173+
// window.document.getElementById('__keep-alive__')?.remove()
174+
// } else {
175+
// const div = window.document.createElement('div')
176+
// div.id = '__keep-alive__'
177+
// div.innerHTML = window.document.body.clientHeight + 'px'
178+
// div.style.width = '1px'
179+
// div.style.height = '1px'
180+
// div.style.fontSize = '0'
181+
// div.style.position = 'fixed'
182+
// if (window.document.body) {
183+
// window.document.body.appendChild(div)
184+
// }
185+
// }
186+
// }, 4000)
179187

180188
window.__handleShare = function () {
181189
const url =

constants/Tabs.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export enum TabsName {
1414
zidingyi3 = 'zidingyi3',
1515
zidingyi4 = 'zidingyi4',
1616
zidingyi5 = 'zidingyi5',
17+
zidingyi6 = 'zidingyi6',
18+
zidingyi7 = 'zidingyi7',
19+
zidingyi8 = 'zidingyi8',
20+
zidingyi9 = 'zidingyi9',
1721
}
1822

1923
export const TabsList = [
@@ -111,6 +115,30 @@ export const TabsList = [
111115
url: '',
112116
show: false,
113117
},
118+
{
119+
name: TabsName.zidingyi6,
120+
title: '自定义6',
121+
url: '',
122+
show: false,
123+
},
124+
{
125+
name: TabsName.zidingyi7,
126+
title: '自定义7',
127+
url: '',
128+
show: false,
129+
},
130+
{
131+
name: TabsName.zidingyi8,
132+
title: '自定义8',
133+
url: '',
134+
show: false,
135+
},
136+
{
137+
name: TabsName.zidingyi9,
138+
title: '自定义9',
139+
url: '',
140+
show: false,
141+
},
114142
]
115143

116144
export const getTabUrl = (name: string) => {

0 commit comments

Comments
 (0)