当前位置:网站首页>忽略微信设置字体
忽略微信设置字体
2022-07-29 01:16:00 【kilito_01】
// 忽略微信设置字体
function ignoreWechatFontSize() {
if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
handleFontSize();
} else {
if (document.addEventListener) {
document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
} else if (document.attachEvent) {
document.attachEvent("WeixinJSBridgeReady", handleFontSize);
document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
}
}
}
function handleFontSize() {
// 设置网页字体为默认大小
WeixinJSBridge.invoke('setFontSizeCallback', {
'fontSize': 0
});
// 重写设置网页字体大小的事件
WeixinJSBridge.on('menu:setfont', function() {
WeixinJSBridge.invoke('setFontSizeCallback', {
'fontSize': 0
});
});
}
边栏推荐
- What is a proxy server? [2022 guide]
- 【7.21-26】代码源 - 【好序列】【社交圈】【namonamo】
- Mathematical modeling -- heat conduction of subgrade on Permafrost
- Mathematical modeling -- cold proof simulation of low temperature protective clothing with phase change materials
- Sigma-DSP-OUTPUT
- Secret skill winter tide branding skill matching
- Wonderful use of data analysis
- Come on, handwritten RPC S2 serialization exploration
- [observation] ranked first in SaaS of pure public cloud in three years, and yonsuite's "flywheel effect"
- 使用本地缓存+全局缓存实现小型系统用户权限管理
猜你喜欢

基于 ICA 与 DL 的语音信号盲分离

LeetCode 113:路径总和 II

Web crawler API Quick Start Guide

E-commerce keyword research helps data collection

数学建模——永冻土层上关于路基热传导问题

The solution of reducing the sharpness of pictures after inserting into word documents

DSP vibration seat

Dynamic memory and smart pointer

Use POI to export excel file, image URL to export file, image and excel file to export compressed package

【流放之路-第六章】
随机推荐
StoneDB 邀请您参与开源社区月会!
Where will Jinan win in hosting the first computing power conference?
Lxml web page capture the most complete strategy
【流放之路-第六章】
StoneDB 为何敢称业界唯一开源的 MySQL 原生 HTAP 数据库?
Planning mathematics final simulation exam I
Process -- user address space and kernel address space
MPEG音频编码三十年
数据平台数据接入实践
基于 ICA 与 DL 的语音信号盲分离
What are the common cyber threats faced by manufacturers and how do they protect themselves
Leetcode/0 and 1 consecutive subarrays with the same number
【流放之路-第八章】
Random talk on distributed development
Minimalist thrift+consumer
StoneDB 邀请您参与开源社区月会!
Have you ever encountered the situation that the IP is blocked when crawling web pages?
(arxiv-2018) reexamine the time modeling of person Reid based on video
[golang] use select {}
JVM learning minutes