Substack:隐藏「Subscribe」弹窗
关闭打断阅读的订阅弹窗,并恢复页面滚动。
可复制的代码
/* Force-close the "Subscribe" pop-up modal that hijacks reading */
.subscribe-dialog,
.subscribe-modal,
[class*="SubscribeDialog"],
[class*="subscribePrompt"],
[role="dialog"]:has([class*="subscribe"]),
[aria-label*="Subscribe" i][role="dialog"] {
display: none !important;
}
/* Restore page scroll that the modal locks */
html.modal-open,
body.modal-open,
body[style*="overflow"] {
overflow: auto !important;
}
如何使用此示例
- 用上方按钮复制代码。
- 安装 JustZix(2 分钟),在目标页面打开扩展。
- 添加一条匹配该页面的新规则。
- 将代码粘贴到规则的 CSS 面板并保存 — 效果立即生效。
为此示例评分
暂无评分 — 成为第一个。