For faster navigation, this Iframe is preloading the Wikiwand page for User:Guywan/Scripts/ConfirmLogout.

User:Guywan/Scripts/ConfirmLogout



User script
Confirm Logout
DescriptionProvides a HTML prompt to confirm a logout.
Author(s)Guywan
StatusBeta
First releasedMarch 21, 2020; 4 years ago (2020-03-21)
Version22.03.20
UpdatedMarch 22, 2020; 4 years ago (2020-03-22)
Skin supportGreen tickY All skins supported.
SourceUser:Guywan/Scripts/ConfirmLogout.js

Confirm Logout

[edit]

If you click on a logout link, Confirm Logout provides an HTML prompt that asks for confirmation. The prompt may be customised to a certain extent. If you would like further customisation, you may make a copy of this script (and please add a backlink). With default settings, here is what it looks like:

You clicked on a log-out link. Do you want to continue?
NoLog out

Customisation

[edit]

The following attributes allow you to customise the logout prompt. Note: both the prompt and the buttons are affected by these.

Attribute Comments Defaults
window.us_conlog_font-weight "bold" or "normal". "bold"
window.us_conlog_font-size "86%"
window.us_conlog_background Named colour or hex code, e.g. "honeydew". "#FFDBDB"
window.us_conlog_color Same as above. "#000"
window.us_conlog_border Border width, type, and colour. "2px solid #BB7070"

Set these attributes wherever you're importing the script, e.g:

window.us_conlog_color = "red";
mw.loader.getScript( ... ); // ConfirmLogout

Installation

[edit]

Hint: It's much easier if you get ScriptInstaller, then navigate to User:Guywan/Scripts/ConfirmLogout.js and click "Install" at the top.

To use this script, add the following to your common.js (or other):

mw.loader.getScript("/w/index.php?title=User:Guywan/Scripts/ConfirmLogout.js&action=raw&ctype=text/javascript"); // Backlink: [[User:Guywan/Scripts/ConfirmLogout.js]]

Credits

[edit]
{{bottomLinkPreText}} {{bottomLinkText}}
User:Guywan/Scripts/ConfirmLogout
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?