Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Macro "OnCloseLastTab" (load homepage if LAST TAB CLOSED)
Posted by: siria
Date: July 03, 2019 12:09AM

K-Meleon is missing an option to load your home page when closing the LAST TAB.
That's what this macro does, automatically:
If you've set a start page for K-Meleon, it will load this page when you close the last tab.
Provided you have one of those enabled, and of course Tabs must be enabled too.

Little side-effect (Feature not bug :coolsmiling smiley
If K-Meleon is set to load the Home page at startup, this macro will load the Home page in every new window which is opened empty (if no URL and no newtab-page is defined)



If you CHANGE your start page, this macro will automatically show that updated page too.
If you DISABLE your start page and open new tabs empty too, this macro will do nothing.
The last closed tab will remain empty too.
(Detailed explanations inside, open kmm-file with a text editor)

Catch!
Try to REMEMBER you installed this macro, because the Preferences sheets (F2) now look misleading. Cannot update those.

MENU:
Toggle On/Off in Edit > Configuration > OnCloseLastTab - Load Start Page

INSTALLATION: copy the attached kmm-file into a macros folder (global one, or create it manually in profile)
Uninstall: delete the kmm file again

K-Meleon version: KM1.5.4 + newer



Edited 2 time(s). Last edit at 07/03/2019 12:12AM by siria.

Attachments: OnCloseLastTab_F2.png (37.4 KB)   OnCloseLastTab.kmm (7.5 KB)  
Options: ReplyQuote
Re: Macro "OnCloseLastTab" (load homepage if LAST TAB CLOSED)
Posted by: Anonym
Date: July 04, 2019 03:47AM

@siria thanks!

Options: ReplyQuote
Re: Macro "OnCloseLastTab" (load homepage if LAST TAB CLOSED)
Posted by: Borut
Date: July 06, 2019 04:50PM

Wonderful, thanks siria! :cool:

Options: ReplyQuote
Re: Macro "OnCloseLastTab" (load homepage if LAST TAB CLOSED)
Posted by: siria
Date: July 06, 2019 10:49PM

Thank you, great if it's useful smiling smiley

Options: ReplyQuote


K-Meleon forum is powered by Phorum.