fix(修复文章内Google AdSense <ins/>处理):

(cherry picked from commit f557c00894c60390123d7f60515d68112190bafe)
This commit is contained in:
anime
2024-12-24 16:42:13 +08:00
parent 5c0c02bcfb
commit 5f610d5a4e

View File

@@ -189,7 +189,7 @@ const AdEmbed = () => {
// 遍历找到的元素
notionTextElements?.forEach(element => {
// 检查元素的内容是否为 '<ins/>'
if (element.innerHTML.trim() === '&lt;ins/&gt;') {
if (element.textContent.trim() === '<ins/>') {
// 创建新的 <ins> 元素
const newInsElement = document.createElement('ins')
newInsElement.className = 'adsbygoogle w-full py-1'