Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=SoerenB] Hi, [b][size=medium]Works now![/size][/b] ...just some spaces & quotes where misplaced. If anybody used this tweak and doesn't know how to mend with the, [b][size=medium]now correct[/size][/b], code below, please feel free to ask. [i][size=x-small]returning to original text:[/size][/i] maybe someone has done this before. Searches for "restartplus" and "restart plus" returned nothing, "restart" returned too much to handle, so I tried it myself. I just hacked a few lines into the restart.kmm, from the one without the button, but you could probably add the same lines there (restart2.7z when downloading, that one should be). Having added these lines, you won't be asked whether or not to load your last session after you restarted via "-> File -> Restart Plus", it IS loaded. So, if you do NOT want the session to load, you'll have to exit & start the standard way - then you'll be asked. I don't manage to color my new lines, so they are [i][size=medium]big italics.[/size][/i] Here is the code: _________________________________________________________________ # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # # ---------- restart kmeleon # # Dependencies : - jaffa cakes, [i]plus the Session Saver[/i] # [i]-kplugin activated in F2 -> K-Meleön Plugins[/i] # Resources : - # Preferences : - # -------------------------------------------------------------------------------- $_tool_path=getfolder(RootFolder)."\\Tools"; $_km_path=getfolder(RootFolder)."\\k-meleon.exe"; _restart_command{ [i][size=medium]setpref(BOOL,"kmeleon.plugins.sessions.ask_autoload",false); [/size][/i] exec($_tool_path."\\restartkm.exe \"".$_km_path."\""); } [b][i][size=medium]_ReTogAsk_command{ setpref(BOOL,"kmeleon.plugins.sessions.ask_autoload",true); [/size] }[/i][/b] _restart_BuildMenu{ # file menu setmenu("CloseWindow",macro,"Restart Plus",_restart_command,4); } # ------------------------------------------------------------ $OnInit=$OnInit."_restart_BuildMenu;"; [i][size=medium]$OnStartup=$OnStartup."_ReTogAsk_command;";[/size][/i] $macroModules=$macroModules."restarter;"; [hr] That's all there is to it.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development