K-Meleon

Privacy_Clear_All_Except_Signon_File_If_Master_Password?

Submitted by: O.Ballandras

Notes:

lang:en-GB

Replace the default K-Meleon 1.1 command "Tools>Privacy>Clear All". The new command clears Cache, Cookies, History and URL Bar History. If the "Sign On" file is ENCRYPTED using a master password, then the passwords are NOT cleared and a message is emitted (one time per session) to remind it to the user. Otherwise the passwords are silently cleared.

lang:fr-FR

Replace la commande par défaut de K-Meleon 1.1 "Outils>Confidentialité>Tout effacer". La nouvelle commande efface toujours Cache, Cookies, Historique et Adresses tapées. Si le fichier "Sign On" est ENCRYPTE par un mot de passe principal, alors les mots de passe NE sont PAS effacés et un message apparait (une fois seulement par session) pour rappeler ce fait à l'utilisateur. Sinon les mots de passe sont effacés de manière silencieuse.


In Macros:



$_firstRun=true;

my_kPrivacy_ClearAll{
plugin(privacy,ClearCache?);
plugin(privacy,ClearCookies?);
plugin(privacy,ClearHistory?);
plugin(privacy,ClearMRU);

$_msg_FR="Les mots de passe n'ont pas été effacés\ncar un mot de passe principal a été défini.";
$_msg_EN="Passwords have not been cleared\nsince a master password has been set.";
$_msg=($KM_Locale?=="fr-FR")?$_msg_FR:$_msg_EN;
getpref(BOOL,"wallet.crypto")==true?($_firstRun==true?alert($_msg,"K-Meleon Privacy",INFO):0):plugin(privacy,ClearSignon?);
$_firstRun=false;
}

my_kPrivacy_BuildMenu{
$kPrivacy=getpref(BOOL,"kmeleon.plugins.privacy.load");
$kPrivacy==true?setmenu(kPrivacy,macro,"Clear A&ll",""):0;
$kPrivacy==true?setmenu(kPrivacy,macro,"Clear A&ll",my_kPrivacy_ClearAll):0;
}

$OnInit?=$OnInit?."my_kPrivacy_BuildMenu;";


In Menus:

lang:en-GB

Nothing to do : all is included in the macro

lang:fr-FR

RAS : tout est inclus dans la macro

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.