Created
February 26, 2024 03:59
-
-
Save oblank/d88324dc06eabf50ad911ab09825c5a0 to your computer and use it in GitHub Desktop.
removeAd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 获取要移除的 meta 元素 | |
var metaToRemove = document.querySelector('meta[name="apple-itunes-app"]'); | |
// 检查是否存在该 meta 元素 | |
if (metaToRemove) { | |
// 从其父元素中移除该 meta 元素 | |
metaToRemove.parentNode.removeChild(metaToRemove); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment