Files
damai-wx/hook.js
MagicalKudzu 8079e6c819 首次提交
2025-12-12 10:35:12 +08:00

136 lines
3.2 KiB
JavaScript

function setup() {
hook();
}
function hook() {
wx.version = {
updateTime: "2025.12.4 19:05:22",
version: "3.12.1"
}
wx.getRendererUserAgent = function() {
return new Promise((resolve) => {
resolve("Mozilla/5.0 (iPad; CPU OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.66(0x1800422a) NetType/WIFI Language/zh_CN MiniProgramEnv/iOS")
})
}
wx.getSystemInfoSync = function() {
return {
SDKVersion: "3.12.1",
albumAuthorized: true,
appName: "weixin",
batteryLevel: 20,
benchmarkLevel: -1,
bluetoothAuthorized: true,
bluetoothEnabled: true,
brand: "iPhone",
cameraAuthorized: true,
deviceOrientation: "portrait",
devicePixelRation: 2,
enableDebug: false,
fontSizeScaleFactor: 0.9411764705882353,
fontSizeSetting: 16,
host: {
appId: "wx938b41d0d7e8def0",
env: "WeChat",
version: 402670122
},
language: "zh_CN",
locationAuthorized: true,
locationEnabled: true,
locationReducedAccuracy: false,
memorySize: 2940,
microphoneAuthorized: true,
microphoneEnable: true,
mode: "default",
model: "iPad (9th generation) Wi-Fi",
notificationAlertAuthorized: true,
notificationAuthorized: true,
notificationBadgeAuthorized: true,
notificationSoundAuthorized: true,
phoneCalendarAuthorized: false,
pixelRation: 2,
platform: "ios",
safeArea: {
bottom: 1080,
height: 1060,
left: 0,
right: 810,
top: 20,
width: 810
},
screenHeight: 1080,
screenTop: 0,
screenWidth: 810,
statusBarHeight: 20,
system: "iOS 18.5",
translateLanguage: "zh_CN",
version: "8.0.66",
wifiEnabled: true,
windowHeight: 1014,
windowWidth: 810
}
}
wx.getDeviceInfo = function() {
return {
benchmarkLevel: -1,
brand: "iPhone",
memorySize: 2940,
model: "iPad (9th generation) Wi-Fi",
platform: "ios",
system: "iOS 18.5"
}
}
wx.getWindowInfo = function() {
return {
pixelRation: 2,
safeArea: {
bottom: 1080,
height: 1060,
left: 0,
right: 810,
top: 20,
width: 810
},
screenHeight: 1080,
screenWidth: 810,
statusBarHeight: 20,
windowHeight: 1014,
windowWidth: 810
}
}
wx.getAppBaseInfo = function() {
return {
SDKVersion: "3.12.1",
appName: "weixin",
enableDebug: false,
fontSizeScaleFactor: 0.9411764705882353,
fontSizeSetting: 16,
host: {
appId: "wx938b41d0d7e8def0",
env: "WeChat",
version: 402670122
},
language: "zh_CN",
mode: "default",
translateLanguage: "zh_CN",
version: "8.0.66",
}
}
wx.getAccountInfoSync = function() {
return {
miniProgram: {
appId: "wx938b41d0d7e8def0",
envVersion: "release",
version: ""
}
}
}
}
setup();