taylortuta.blogg.se

Stop chrome from reopening last session
Stop chrome from reopening last session





stop chrome from reopening last session stop chrome from reopening last session

Other Chromium-derived browsers, like the excellent Brave (which I heartily recommend as an alternative to Chrome), do the same thing. With this setting enabled - and it’s on by default - you have to hold ⌘Q to quit Chrome. If you press and release ⌘Q in Chrome, with default settings, instead of quitting, Chrome displays a message in a temporary notification banner: “Hold ⌘Q to Quit”. When windows come back, sometimes you lose your place on a page, or you get logged out, or a dozen other potential hiccups.Ĭhrome addresses this by blocking ⌘Q by default. Quitting Safari and closing tabs are completely discrete, and it’s clear to me that’s the correct design.īut, even with this automatic session restoration, it can still be disruptive if you quit your browser accidentally. The only choices in Safari’s General preferences tab for “Safari opens with” are “All windows from last session” and “All non-private windows from last session”. This restoration of previously open windows and tabs is so useful that in the current version of Safari, there isn’t even an option not to do it. How do you quit accidentally? Typically, by pressing ⌘Q by mistake when you meant to press Q’s neighbor W to close the current tab.Ī few years ago all modern browsers added a feature that restores your previously-open windows and tabs automatically upon relaunching. This sucked if you needed to restart, and it really sucked if you quit your browser accidentally. In the old days, quitting a browser closed all windows, so when you relaunched your browser, you were sitting there staring at a new empty browser window. Whatever windows and tabs are open, boom, they just go away. Here’s a quick little AppleScript I wrote recently that I’ve found helpful.īackstory: When you quit a web browser on MacOS, they just quit. And as an added bonus if you have a Google account this bookmark will carry over to any device you have that is connected to it.Quit Confirmation for Safari on MacOS Friday, 10 January 2020 If you intend to use this script to delete one specific cookie in one specific environment you can hard-code the cookie name and location, thus minimizing the required code even further and removing the user interaction element. Create a new bookmark in Chrome and add the code below as the URL: javascript:(function())()ĭo note that while the script works immediately upon clicking it, if the cookies tab was your active console tab while running the script you will need to switch to another tab and return to the cookies tab to see the visual representation of the cookie being deleted. I wrote this little script that will prompt you for the cookie's name and then delete it. Since you need this clearing method specifically for one browser may I suggest the use of a bookmark script?







Stop chrome from reopening last session