K-Meleon
KMeleonWiki > Resources > MacroLibrary > Cookie Warning
Submitted by: Johnny Sim-Bravenboer
Notes:
This simple macro allows you to enable and disable cookie warnings from the menu.
Cookie warnings allow you to (permanently) accept or reject cookies from the websites you visit.
Note: To have the cookie warning working you need to allow K-meleon to accept cookies first:
In Edit\Preferences\Privacy, check either the option to accept all cookies, or session cookies.
To have the options properly checked on startup, add to the following macro:
Sync{
setcheck("macros(cookiewarn)", getpref(BOOL, "network.cookie.warnAboutCookies") == "true" ? true:false);
}
Add the following macros as a whole:
# Toggle Cookie Warnings cookiewarn{ menu = "Enable Cookie Warnings" togglepref(BOOL, "network.cookie.warnAboutCookies"); &Sync; $warn = "enabled"; getpref(BOOL, "network.cookie.warnAboutCookies") == true? :$warn = "disabled"; alert("Cookie warnings have been ".$warn."!"); }
Add to the existing function:
Permissions{
macros(cookiewarn)