mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
feat(优化文章内Google AdSense <ins/>处理):
(cherry picked from commit ed8983171355976c20d9205665f9a880f0f49dd4)
This commit is contained in:
@@ -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/>'
|
||||
|
||||
Reference in New Issue
Block a user