
How to disable fullscreen permission and window.onbeforeunload popup permamently?
I never want to see the fullscreen permission dialog or the "are you sure you want to leave this page" dialog popups. They are only annoying.
被選擇的解決方法
You can set the dom.disable_beforeunload pref to true on the about:config page to disable this alert.
- dom.disable_beforeunload = true
The only choices for full screen permissions are "Always Ask" and "Block". You can manage the full screen permission via "Tools > Page Info > Permissions" or via the about:permissions page.
You can toggle this pref that is aimed at developers to false if you want to suppress this dialog.
- full-screen-api.approval-required = false
You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.
從原來的回覆中察看解決方案 👍 10所有回覆 (2)
選擇的解決方法
You can set the dom.disable_beforeunload pref to true on the about:config page to disable this alert.
- dom.disable_beforeunload = true
The only choices for full screen permissions are "Always Ask" and "Block". You can manage the full screen permission via "Tools > Page Info > Permissions" or via the about:permissions page.
You can toggle this pref that is aimed at developers to false if you want to suppress this dialog.
- full-screen-api.approval-required = false
You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.
cor-el said
You can set the dom.disable_beforeunload pref to true on the about:config page to disable this alert.
- dom.disable_beforeunload = true
The only choices for full screen permissions are "Always Ask" and "Block". You can manage the full screen permission via "Tools > Page Info > Permissions" or via the about:permissions page.
You can toggle this pref that is aimed at developers to false if you want to suppress this dialog.
- full-screen-api.approval-required = false
You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.
THANK. YOU. SO. MUCH.