Skip to content

Instantly share code, notes, and snippets.

@oblank
Created February 26, 2024 03:59
Show Gist options
  • Save oblank/d88324dc06eabf50ad911ab09825c5a0 to your computer and use it in GitHub Desktop.
Save oblank/d88324dc06eabf50ad911ab09825c5a0 to your computer and use it in GitHub Desktop.
removeAd
// 获取要移除的 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