Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

看一会就会弹出关注作者的小弹窗,希望去掉 #53

Open
ghost opened this issue Apr 21, 2022 · 3 comments
Open

看一会就会弹出关注作者的小弹窗,希望去掉 #53

ghost opened this issue Apr 21, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Apr 21, 2022

IMG_20220421_201848

@shatyuka shatyuka added the enhancement New feature or request label Apr 21, 2022
@valleyss
Copy link

是的,这个小框真是

@tsukatsuki
Copy link

这个功能做出来了吗好像没有找到

@DeltaFlyerW
Copy link

在知了设置中的"注入JS脚本"中添加以下代码,应该可以隐藏底部弹出的关注弹窗.

let keyword = 'transform-origin: center bottom; margin-top: -8px; position: fixed;'
let popup = document.querySelector("[style~='" + keyword + "']")
if (popup) {
    popup.style.display = 'none'
}
document.addEventListener("DOMNodeInserted", function (event) {
    let html = event.target.outerHTML
    if (html.includes("关注") && html.includes(keyword)) {
        event.target.style.display = 'none'
    }
})

完整的弹窗内容:

<div><div class="css-1t4z5cu" style="transform-origin: center bottom; margin-top: -8px; position: fixed; border-radius: 12px; border: none; box-shadow: rgba(0, 0, 0, 0.16) 0px 2px 10px 0px; opacity: 0; transform: translateY(10px);"><div class="css-11cny4a"><div class="css-1ftr1hf"><svg width="24" height="24" viewBox="0 0 24 24" class="ZDI ZDI--Xmark24 css-2h8pk7" fill="currentColor"><path fill-rule="evenodd" d="M18.22 19.28a.75.75 0 1 0 1.06-1.06L13.06 12l6.22-6.22a.75.75 0 0 0-1.06-1.06L12 10.94 5.78 4.72a.75.75 0 0 0-1.06 1.06L10.94 12l-6.22 6.22a.75.75 0 1 0 1.06 1.06L12 13.06l6.22 6.22Z" clip-rule="evenodd"></path></svg></div><div><div class="css-zkfaav"><div href="fakeurl://personal_info" class="css-hlqgyi"><img src="https://picx.zhimg.com/v2-7923c5840ca66c6be71d836c6721ed14_l.jpg?source=1940ef5c" alt="作者头像" class="css-2x1mgb"><div class="css-vurnku"><div class="css-13prwvv">余鹏</div><div class="css-1br3tt7">你关注的 @胡远东(等 2 人)也关注了TA</div></div></div><button class="css-kkd3la" type="button"><span style="display: inline-flex; align-items: center;"><svg width="12" height="12" viewBox="0 0 24 24" class="ZDI ZDI--PlusFill24" fill="currentColor"><path fill-rule="evenodd" d="M13.25 3.25a1.25 1.25 0 1 0-2.5 0v7.5h-7.5a1.25 1.25 0 1 0 0 2.5h7.5v7.5a1.25 1.25 0 1 0 2.5 0v-7.5h7.5a1.25 1.25 0 0 0 0-2.5h-7.5v-7.5Z" clip-rule="evenodd"></path></svg></span><span class="css-14gt3bc">关注</span></button></div></div></div></div></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants