查看网页源代码,如果没有 apple-touch-icon ,写个猴子脚本修改一下页面
先删除原来的书签,退出一下 Safari ,再重新打开网站,加载完后,检查元素,看<head></head>之间是不是已经有了 apple-touch-icon ,有了的话说明脚本已经生效,重新添加书签。
```
(function () {
'use strict';
// Check if the meta tag for the Apple touch icon already exists
if (!document.querySelector('link[rel="apple-touch-icon"]')) {
// Create a new link element
const link = document.createElement('link');
link.rel = 'apple-touch-icon';
link.href = '
https://is1-ssl.mzstatic.com/image/thumb/Purple221/v4/65/42/04/65420419-1b22-588b-2f55-da8a6d1a9ab0/AppIcon-0-0-1x_U007emarketing-0-0-0-11-0-0-0-85-220.png/180x180.png'; // Add the link to the head of the document
document.head.appendChild(link);
}
})();
```