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

请问有否防止跳出的功能 #31

Closed
aloasut opened this issue Oct 20, 2022 · 1 comment
Closed

请问有否防止跳出的功能 #31

aloasut opened this issue Oct 20, 2022 · 1 comment

Comments

@aloasut
Copy link

aloasut commented Oct 20, 2022

例如用这个软件打包一个学习网站给小孩,然后用家长管理只允许打开这个app,能够禁止小孩跳出app的网站,当成一个浏览器玩别的。

@tw93
Copy link
Owner

tw93 commented Oct 20, 2022

两种解法

  1. 通过css将不想要出现的元素全部屏蔽掉,可以参考readme文档说明
  2. 注入JS,拦截所有非本域名下的跳转,参考readme文档,同时可以去谷歌一下「js拦截a标签跳转」

@tw93 tw93 closed this as completed Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants