mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 07:26:45 +00:00
fix(修复文章内Google AdSense <ins/>处理):
(cherry picked from commit f557c00894c60390123d7f60515d68112190bafe)
This commit is contained in:
@@ -189,7 +189,7 @@ const AdEmbed = () => {
|
|||||||
// 遍历找到的元素
|
// 遍历找到的元素
|
||||||
notionTextElements?.forEach(element => {
|
notionTextElements?.forEach(element => {
|
||||||
// 检查元素的内容是否为 '<ins/>'
|
// 检查元素的内容是否为 '<ins/>'
|
||||||
if (element.innerHTML.trim() === '<ins/>') {
|
if (element.textContent.trim() === '<ins/>') {
|
||||||
// 创建新的 <ins> 元素
|
// 创建新的 <ins> 元素
|
||||||
const newInsElement = document.createElement('ins')
|
const newInsElement = document.createElement('ins')
|
||||||
newInsElement.className = 'adsbygoogle w-full py-1'
|
newInsElement.className = 'adsbygoogle w-full py-1'
|
||||||
|
|||||||
Reference in New Issue
Block a user