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

通过自定义顶栏隐藏元素后,脚本无法启动 #3029

Closed
ccyykkcyk opened this issue Feb 18, 2022 · 1 comment
Closed

通过自定义顶栏隐藏元素后,脚本无法启动 #3029

ccyykkcyk opened this issue Feb 18, 2022 · 1 comment
Labels

Comments

@ccyykkcyk
Copy link

对应功能

image
自定义顶栏
Commit: f48fdb0
内部名称: customNavbar

问题描述

布局设置中隐藏一个元素,然后刷新页面,脚本失效

脚本版本

v2.1.4-preview-1-gbb92efd85

浏览器版本

chrome 98.0.4758.102

播放器版本

No response

播放策略

No response

错误信息

Uncaught (in promise) TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2849)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at d (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:3200)
    at Module.7724 (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:3362)
content.js:1 Unable to check top-level optout: Blocked a frame with origin "https://s1.hdslb.com" from accessing a cross-origin frame.
(anonymous) @ content.js:1
vendor.01bfa29a.js:1 Uncaught (in promise) Error: Could not load URL at //s1.hdslb.com/bfs/seed/blive/blfe-link-shortassets/dist/component.statistics/log-reporter.js
    at HTMLScriptElement.e.onerror (s1.hdslb.com/bfs/static/laputa-home/client/assets/vendor.01bfa29a.js:1:506665)
content.js:1 Unable to check top-level optout: Blocked a frame with origin "https://message.bilibili.com" from accessing a cross-origin frame.
(anonymous) @ content.js:1
userscript.html?name=Bilibili%20Evolved%20(Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197 Uncaught (in promise) TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2849)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at n (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:2907)
    at d (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:3200)
    at Module.7724 (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Bilibili%2520Evolved%2520(/Preview).user.js&id=470a0b1e-91a2-4ead-b205-df852e65c034:197:3362)
www.bilibili.com/:1 The resource https://s1.hdslb.com/bfs/static/laputa-home/client/assets/vip-default-banner.6db4a7ed.png was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

附加截图

image

@the1812
Copy link
Owner

the1812 commented Feb 19, 2022

#2928

@the1812 the1812 closed this as completed Feb 19, 2022
@the1812 the1812 added the duplicate 重复 label Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants