General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Cookie Monster Macro
Posted by: ndebord
Date: December 04, 2007 08:25PM

I am having trouble setting up Cookie Monster in KM 1.0.2.

This is what I've tried to implement:

OnQuit{
# For Startup Group and Last Session:
&SetLast;
getpref(INT, $monster) == 1 ? exec("c:\\program Files\\KMeleon1\\Cookie Mr\\CookieMonster.exe -auto"): 0;
#}

I get an error message that says something like variable "Monster" not set.

I also noticed that in the Wiki, there is macro code for an early KM macro.

Any ideas much appreciated.

N

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JujuLand
Date: December 04, 2007 09:35PM

@ndebord,

If I remember, you must define the variable in macros.cfg out of a macro (at the beginning for example)

This variable is set ou unset by the menu entry used to activate/unactivate it.

Can you give the link where you macro code, I can't found it. At home also, it seems I have it no more, since I have rebuild my computer. :-(

[edit 22:43]

I have found it on ... my site and on the link is on the wiki (I'm a little asleep).

You must add the macros in macros.cfg from the file plugins_macro.cfg (just copy and paste)

You must also copy and paste from plugins_menus.cfg to menus.cfg

You can notice, as I said just before, that the variables are defined out of macros

For onquit use the wiki version instead of file version.

A+

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 12/04/2007 09:48PM by JujuLand.

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JamesD
Date: December 04, 2007 09:45PM

Are you trying to get Cookie Monster to run each time when KM is closed?

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: ndebord
Date: December 06, 2007 05:06PM

James,

<<Are you trying to get Cookie Monster to run each time when KM is closed?>>

Yup. That's it. Right now I have Cookie Monster on a hot key and run it as a standalone app, but I'd like to do it automatically instead.

N

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: ndebord
Date: December 06, 2007 05:11PM

Alain,

I have this in macros cfg:

==========

OnQuit{
For Startup Group and Last Session:
&SetLast;
# For User Agent:
getpref(BOOL,$uar)==true?delpref($ua):0;
}

#OnQuit{
# For Startup Group and Last Session:
#&SetLast;
#getpref(INT, $monster) == 1 ? exec("c:\\program Files\\KMeleon1\\Cookie #Mr\\CookieMonster.exe -auto"): 0;
#}
============

The former is the default OnQuit statement while the latter is what I added from the code I saw on the Wiki. I have gone back to the former as the latter hasn't worked for me (yet).

as for plugins_Menus.cfg to menus.cfg and Plugins_Macors.cfg to macros.cfg? Am not sure what you want done here.

N

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JujuLand
Date: December 06, 2007 06:10PM

@ndebord,

You must add the content of plugins_macros and plugins_menus to respectively macros.cfg and menus.cfg.

These files are in are in the zip on my site.

I just think that the macro line on the wiki is the onr to use.

I suppose you have use my mackage, and not just use the macro found on the wiki? You must use the tool I made to wait for a complete closure of K-Meleon before cookieMonster can use cookies file.

I just see you have put cookiemonster.exe in the line, and it's not what I made.

For the variable error, you must declare it out of a macro to make it global.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JujuLand
Date: December 06, 2007 06:13PM

@ndebord,

You must add the content of plugins_macros and plugins_menus to respectively macros.cfg and menus.cfg.

These files are in are in the zip on my site.

I just think that the macro line on the wiki is the one to use.

I suppose you have use my package, and not just use the macro found on the wiki, no? You must use the tool I made to wait for a complete closure of K-Meleon before cookieMonster can use cookies file.

I just see you have put cookieMonster.exe in the line, and it's not what I made.

For the variable error, you must declare it out of a macro to make it global.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JamesD
Date: December 07, 2007 01:41AM

I tried this with 1.5a1 under XP SP2 and it ran just fine. I had a half page of cookies to delete. KM 1.5a1 seems to close faster than previous versions.

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- EatCookies.kmm
# ---------- K-Meleon Macro Language see if cookie monster can run auto at close ---------------
#
# Dependencies      : main.kmm, JScript, Windows Scripting Host
# Resources           : -
# Preferences         : -
# Version                : 0.1   2007-12-06
# --------------------------------------------------------------------------------
	
_EatCookies_ExitRun {
	 exec("C:\\Program Files\\Cookie Monster\\CookieMonster.exe  -auto") ;
 	}

$OnQuit=$OnQuit."_EatCookies_ExitRun;";
$macroModules=$macroModules."EatCookies;";


Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: ndebord
Date: December 07, 2007 05:43AM

James,

I see this snippet is designed for KM 1.1xxx. Will it also work with KM 1.0.2?

Tks,

N

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JujuLand
Date: December 07, 2007 11:48AM

No, that's why I tell you to use the code I gave for 0.9, which must work with 1.0.2

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JamesD
Date: December 07, 2007 02:25PM

Quote
ndebord
I see this snippet is designed for KM 1.1xxx. Will it also work with KM 1.0.2?

I don't have a 1.02 loaded to test. I have 1.1.3 and 1.5a1 loaded. I have found that 1.5a1 closes faster than 1.1.3, Sometimes for OnQuit actions that work just fine in 1.5a1, the same action will have a conflict because KM is still writing something in 1.1.3

For things which run in Windows Script Host, I use the WScript.sleep(time) statement to delay actions. However since this is directly calling Cookie Monster I don't have any time delay.

I am not actually going to use the macro in its present form. It runs every time KM is quit. This can by annoying.

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JamesD
Date: December 07, 2007 02:39PM

@ndebord

I tried the macro on 1.1.3 and it worked without problem.

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JujuLand
Date: December 07, 2007 03:53PM

Quote

However since this is directly calling Cookie Monster I don't have any time delay.

Without tempo, you can have problem (locked file).

Quote
I am not actually going to use the macro in its present form. It runs every time KM is quit. This can by annoying.

That's the reason of my macro, and my menu entries, which can toggle a pref to use it or not when quitting.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: ndebord
Date: December 07, 2007 06:55PM

Alain,

Can't locate plugins_menus in the zip file? Is ther another place it is located?

Tks

N

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JujuLand
Date: December 07, 2007 08:27PM

Sorry, it's plugins_toolbars.cfg, not plugins_menus.

Try with this :

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- CookieMonster.kmm ---------------
#
# Needed files : auto_CM.exe (in Tools folder) not in this version
# Dependencies : main.kmm (ExecMacros, OnInit, OnQuit)
# Resources : -
# Preferences : -
# Version : 1.4 2007-12-06
# --------------------------------------------------------------------------------

# ----- Global Variables

$monster = getpref(BOOL,"kmeleon.tools.CookieMonster.activ");

# ----- PUBLIC

CookieMonster_Activate{
menuchecked=$monster;
togglepref(BOOL,"kmeleon.tools.CookieMonster.activ");
statusbar("CookieMonster ".($monster?_("activated"):_(disactivated"));
}

# ----- PRIVATE

_CookieMonster_BuildMenu{
setmenu(PrivacySecurity,macro,"CookieMonster",CookieMonster_Activate);
}

_CookieMonster_OnQuit {
$monster ?exec("C:\\Program Files\\Cookie Monster\\CookieMonster.exe". " -auto"):0;
# the nest line must be commented if you want the setting to be permanent,
# else when checked, Cookie Monster is activated just one time.
setpref(BOOL,"kmeleon.tools.CookieMonster.activ",false);
}

$OnInit=$OnInit."_CookieMonster_BuildMenu;";
$OnQuit=$OnQuit."_CookieMonster_OnQuit;";
# ------------------------------------------------------------------------------
$macroModules=$macroModules."CookieMonster;";

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 12/07/2007 08:28PM by JujuLand.

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: ndebord
Date: December 07, 2007 11:08PM

Alain,

That did it. Cookie Monster is my favorite cookie manager and now it works when I forget to manually invoke it.

Much thanks,

N

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: the professor
Date: September 14, 2008 08:47AM

about:config in url

kmeleon.plugins.privacy.clearCookies
set to 1
if you want to delete cookies on exit

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: ndebord
Date: July 15, 2010 04:28AM

Has anybody tried to update the Cookie Monster macro to work with KM 1.5.4?

Tks

N

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: jsnj
Date: July 15, 2010 06:01AM

Quote
ndebord
Has anybody tried to update the Cookie Monster macro to work with KM 1.5.4?

Tks

Cookie Culler has never deleted unprotected cookies in KM for me, so I still use Cookie Monster. Attached is the macro I've been using for quite awhile now. Been meaning to post it in the extensions forum as a proper extension w/setup file etc...but always forget. It adds menu items under Tools and a menu item in Clear Data within the Privacy menu.

Attachments: CookieMonster.kmm (2 KB)  
Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: caktus
Date: July 15, 2010 03:01PM

I'm not trying to throw a wrench in the works but when I hear about preventing Cookies I have to ask; what is wrong with Cookies? AFAIK Cookies are basically simple text files that tell a web site (not necessarily https sites, of course) if you are a returning visitor, prevents the need to login or answer security questions each time the user returns if the user chooses to permit this, and sometimes prevent the visitor from loosing interactive data such as shopping cart or survey content. I have been using computers and the Internet more than 25 years and do not recall ever having trouble with Cookies, although I do, from time to time delete them during general Desktop cleaning.

While for years a lot of misinformation about Cookies has been circulating throughout the Internet like wildfire, and AFAIK, basically only executable type files can cause bad behavior. Do Cookies perhaps pose any potential problems that I may not be aware of?

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: JamesD
Date: July 15, 2010 04:52PM

@ caktus

I use Cookie Monster just because I can delete all cookies except those where I wish to be tracked. I maintain the cookies for my bank, brokerage, forums, e-bay, etc. I do not maintain them for surfing. I have found that if you were interested in a specific type of topic one day then some sites will push that topic ahead of others when you return. For just surfing, I prefer a level playing field. Other people may not care. It is a personal preference thing.

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: caktus
Date: July 15, 2010 05:10PM

Quote
JamesD
@ caktus

I use Cookie Monster just because I can delete all cookies except those where I wish to be tracked. I maintain the cookies for my bank, brokerage, forums, e-bay, etc. I do not maintain them for surfing. I have found that if you were interested in a specific type of topic one day then some sites will push that topic ahead of others when you return. For just surfing, I prefer a level playing field. Other people may not care. It is a personal preference thing.

Thank you for the info, James.

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: ndebord
Date: July 16, 2010 01:36AM

Quote
jsnj
Quote
ndebord
Has anybody tried to update the Cookie Monster macro to work with KM 1.5.4?

Tks

Cookie Culler has never deleted unprotected cookies in KM for me, so I still use Cookie Monster. Attached is the macro I've been using for quite awhile now. Been meaning to post it in the extensions forum as a proper extension w/setup file etc...but always forget. It adds menu items under Tools and a menu item in Clear Data within the Privacy menu.

jsnj,

Very appreciative. it's been awhile (2008???) since I talked about CookieMonster and I'm glad it's back. Am using it now and it works very nicely.

Wonder if you have figured out a way to add a hotkey to the CookieMonster Manager?

<g>

N

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: jsnj
Date: July 16, 2010 03:03AM

Quote
ndebord
jsnj,

Very appreciative. it's been awhile (2008???) since I talked about CookieMonster and I'm glad it's back. Am using it now and it works very nicely.

Wonder if you have figured out a way to add a hotkey to the CookieMonster Manager?

<g>

You can either go to Edit - Configuration - Accelerators and add the following:

ALT C = macros(_cmonster)

or edit the macro module(CookieMonster.kmm) itself by adding the following bold text anywhere within

_cmonster_BuildMenu{

setaccel("ALT C","macros(_cmonster)");

}

You can change ALT C to whatever you want of course.

Options: ReplyQuote
Re: Cookie Monster Macro
Posted by: ndebord
Date: July 16, 2010 03:50AM

Quote
jsnj
Quote
ndebord
jsnj,

Very appreciative. it's been awhile (2008???) since I talked about CookieMonster and I'm glad it's back. Am using it now and it works very nicely.

Wonder if you have figured out a way to add a hotkey to the CookieMonster Manager?

<g>

You can either go to Edit - Configuration - Accelerators and add the following:

ALT C = macros(_cmonster)

or edit the macro module(CookieMonster.kmm) itself by adding the following bold text anywhere within

_cmonster_BuildMenu{

setaccel("ALT C","macros(_cmonster)");

}

You can change ALT C to whatever you want of course.

jsnj,

Nice, 2 alternatives! Went for inserting into the kmm macro. Seemed more seamless that way. Much appreciated!

N

Options: ReplyQuote


K-Meleon forum is powered by Phorum.