How to stop the warning: Leave site? Changes may not be saved.
-
Is there a way to stop warning popups saying "Leave site? Changes may not be saved."?
I'm new to Vivaldi, and I'm loving it so far, but these warnings are driving me crazy. I print shipping labels throughout the day. I print the label, then close the tab, but every time I have to close the warning first (yes the page is fully loaded). Also, I set one tab that I check regularly to refresh every 30 minute, but that doesn't work because every time it tries to refresh itself, the warning stops it.
-
@leothwyn Itβs a beforeunload event that triggers when you try to leave. This is not Vivaldi specific. Either disable Javascript for the page, or try to set beforeunload to nil manually (e.g. with an extension).
-
@luetage Thanks, I'll try that. It does seem like a vivaldi thing though. I've used these same exact sites in chrome and firefox, and never had this problem. Those browsers give the warning when it's a site where I'm filling in a form or something, but vivaldi seems to give the warning on any kind of site.
-
@leothwyn
Hi, I got those messages only pages with forms, may an extension influence it. Check in a guest profile, it exclude all settings and extensions.https://help.vivaldi.com/article/guest-view/
Cheers, mib
-
@leothwyn Hello and Welcome to the Vivaldi Community
This is called "OnBeforeUnload" and is a standard part of the Javascript Web API.
https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunloadFor some sites it might be useful, like some online editors can warn you if you're trying to close or reload a tab without saving first. Problem is as always that many sites have also started abusing it to nag users. One case I can think of is Youtube Music where there's zero reason why it should need to warn before closing.
I use a Userscript:
https://greasyfork.org/en/scripts/4279-disable-page-close-confirmationYou also need a userscript manager, I use Tampermonkey:
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo -
@leothwyn said in How to stop the warning: Leave site? Changes may not be saved.:
vivaldi seems to give the warning on any kind of site.
That should not happen. Do you have an example?
Also, after a couple of tries it should show an option to turn the dialogs off:
However how to enable the dialogs should you need them again is not so simple...
-
@mib2berlin said in How to stop the warning: Leave site? Changes may not be saved.:
@leothwyn
Hi, I got those messages only pages with forms, may an extension influence it. Check in a guest profile, it exclude all settings and extensions.https://help.vivaldi.com/article/guest-view/
Cheers, mib
Thanks everyone! I don't know what's causing this. I loaded up one of my shipping labels, and I don't get the warning in a guest profile. I tried turning off the three extensions in my main profile, but that didn't change anything. I looked around in settings to see if I had something set in my main profile that would cause this problem, but didn't see anything. I'm glad to find out that this isn't normal behavior, so I assume it can be fixed.
-
@leothwyn
Sometimes it is not enough to disable extensions, you have to remove it.
With 3 extensions it is not much work, some user use 30 or something.
Worst case is a broken profile, I hope it is not the case.Cheers, mib
-
Ok, thanks. I'll try removing the extensions later when I get some time. If that doesn't do it I guess I could look into resetting my profile.
-
Thank you for the help! I really appreciate it. All is working fine now. It was an extension called Tab Modifier.