# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# --  ---------------------------------------------------------------------
#
# Dependencies	: -
# Resources		: -
# Preferences	: -
#
# -----------------------------------------------------------------------------------
#
Download__{
#open("about:downloads");
$OpenURL="chrome://browser/content/places/places.xul"; &OpenURL_InNewWindow;

}

settings__{
opentab("about:preferences");

}

NewTab__{
opentab("about:newtab");

}

OldToolBar__{
$oldstylestate=getpref(BOOL,"kmeleon.oldstyle.state");
setpref(BOOL,"kmeleon.toolband.&Privacy Bar.visibility", $oldstylestate);
setpref(BOOL,"kmeleon.toolband.&Save Page As....visibility", $oldstylestate);
setpref(BOOL,"kmeleon.toolband.&Zoom Buttons.visibility", $oldstylestate);
setpref(BOOL,"kmeleon.toolband.Bookmarks.visibility", $oldstylestate);
setpref(BOOL,"kmeleon.toolband.JavaScript &Console.visibility", $oldstylestate);
setpref(BOOL,"kmeleon.toolband.Menu.visibility", $oldstylestate);
setpref(BOOL,"kmeleon.toolband.Reload All Images.visibility", $oldstylestate);
if($oldstylestate){
id(ID_TOOLBARS_LOCK);
setpref(INT,"kmeleon.toolband.&Go Buttons.break", 0);
setpref(INT,"kmeleon.toolband.&Go Buttons.index", 2);
setpref(INT,"kmeleon.toolband.&Go Buttons.size", 59);
setpref(INT,"kmeleon.toolband.&Main Bar.break", 1);
setpref(INT,"kmeleon.toolband.&Main Bar.index", 4);
setpref(INT,"kmeleon.toolband.&Main Bar.size", 199);
setpref(INT,"kmeleon.toolband.&Privacy Bar.break", 0);
setpref(INT,"kmeleon.toolband.&Privacy Bar.index", 11);
setpref(INT,"kmeleon.toolband.&Privacy Bar.size", 994);
setpref(INT,"kmeleon.toolband.&Save Page As....break", 0);
setpref(INT,"kmeleon.toolband.&Save Page As....index", 10);
setpref(INT,"kmeleon.toolband.&Save Page As....size", 463);
setpref(INT,"kmeleon.toolband.&Zoom Buttons.break", 0);
setpref(INT,"kmeleon.toolband.&Zoom Buttons.index", 5);
setpref(INT,"kmeleon.toolband.&Zoom Buttons.size", 75);
setpref(INT,"kmeleon.toolband.Bookmarks.break", 0);
setpref(INT,"kmeleon.toolband.Bookmarks.index", 12);
setpref(INT,"kmeleon.toolband.Bookmarks.size", 501);
setpref(INT,"kmeleon.toolband.Browser Con&figuration.break", 0);
setpref(INT,"kmeleon.toolband.Browser Con&figuration.index", 8);
setpref(INT,"kmeleon.toolband.Browser Con&figuration.size", 106);
setpref(INT,"kmeleon.toolband.JavaScript &Console.break", 0);
setpref(INT,"kmeleon.toolband.JavaScript &Console.index", 9);
setpref(INT,"kmeleon.toolband.JavaScript &Console.size", 75);
setpref(INT,"kmeleon.toolband.Menu.break", 0);
setpref(INT,"kmeleon.toolband.Menu.index", 0);
setpref(INT,"kmeleon.toolband.Menu.size", 460);
setpref(INT,"kmeleon.toolband.Reload All Images.break", 0);
setpref(INT,"kmeleon.toolband.Reload All Images.index", 6);
setpref(INT,"kmeleon.toolband.Reload All Images.size", 84);
setpref(INT,"kmeleon.toolband.Throbber.break", 0);
setpref(INT,"kmeleon.toolband.Throbber.index", 3);
setpref(INT,"kmeleon.toolband.Throbber.size", 23);
setpref(INT,"kmeleon.toolband.URL Bar.break", 0);
setpref(INT,"kmeleon.toolband.URL Bar.index", 1);
setpref(INT,"kmeleon.toolband.URL Bar.size", 468);
setpref(Bool,"kmeleon.oldstyle.state", false);
}else{
setpref(Bool,"kmeleon.oldstyle.state", true);
}
alert("Please Restart K-meleon");


}





