mod: remove ios ua

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-04 18:20:52 +08:00
parent 7bd481b090
commit 7009c3400a
4 changed files with 2 additions and 12 deletions

View File

@@ -278,13 +278,8 @@ class Request {
static String headerUa({type = 'mob'}) { static String headerUa({type = 'mob'}) {
return switch (type) { return switch (type) {
'mob' => Platform.isIOS 'mob' =>
? 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 BiliApp/62000200'
: 'Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36',
'android' =>
'Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36', 'Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36',
'ios' =>
'Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 BiliApp/62000200',
_ => _ =>
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15' 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15'
}; };

View File

@@ -29,7 +29,6 @@ class FavNoteItem extends StatelessWidget {
Utils.handleWebview( Utils.handleWebview(
item['web_url'], item['web_url'],
inApp: true, inApp: true,
parameters: {'uaType': 'android'},
); );
}, },
onLongPress: () { onLongPress: () {

View File

@@ -111,7 +111,6 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
onPressed: () { onPressed: () {
_key.currentState?.showBottomSheet( _key.currentState?.showBottomSheet(
(context) => WebviewPageNew( (context) => WebviewPageNew(
uaType: 'android',
oid: widget.oid, oid: widget.oid,
title: widget.title, title: widget.title,
url: url:

View File

@@ -65,10 +65,7 @@ class Utils {
static void reportVideo(int aid) { static void reportVideo(int aid) {
Get.toNamed( Get.toNamed(
'/webview', '/webview',
parameters: { parameters: {'url': 'https://www.bilibili.com/appeal/?avid=$aid'},
'uaType': 'android',
'url': 'https://www.bilibili.com/appeal/?avid=$aid'
},
); );
} }