feat(优化文章内Google AdSense <ins/>处理):

(cherry picked from commit ed8983171355976c20d9205665f9a880f0f49dd4)
This commit is contained in:
anime
2024-12-24 15:57:47 +08:00
parent b70c0f4ee7
commit 400e6ed929

View File

@@ -182,8 +182,9 @@ const AdEmbed = () => {
useEffect(() => {
setTimeout(() => {
// 找到所有 class 为 notion-text 且内容为 '<ins/>' 的 div 元素
const notionTextElements = document.querySelectorAll('div.notion-text')
const notionTextElements = document.querySelectorAll(
'#article-wrapper #notion-article div.notion-text'
)
// 遍历找到的元素
notionTextElements?.forEach(element => {
// 检查元素的内容是否为 '<ins/>'