Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
macro Stop&Go (open tabs in back, load content later) v3
Posted by: siria
Date: February 02, 2018 09:27PM

Just a tiny macro, it can open links in background tabs without loading the content.
Such an empty Tab will start loading when you select it.

By default Automatic, but can be toggled off by menu.
Automatic reloading works only in KM76 or newer, in older KM-versions just reload manually.
(Remotely similar to FF-addons Load Tab On Select or Open Link In Silent Tab)

IMPORTANT:
EMPTY tabs are NOT stored by the SESSIONS plugin! If not loaded, they will be LOST in next session.
And this macro can not preload anything, no domain favicons, no titles, not even real URLs

SHORTCUTS (to customize inside kmm-file):
CTRL + Middle-Mouse button on a link / F5 for universal reloading
MENU-1: right-click a LINK > Open In Background + STOP
MENU-2: right-click on Reload-button > Reload (incl. Stop&Go pages) (F5)
MENU-3: right-click on Reload-button (KM76+) > Load Stop&Go pages automatically (Toggle)

K-Meleon versions:
1) KM 77 or newer (Goanna) works immediately and automatically
2) KM 76RC-Gecko: needs a little fix in main.kmm (copy definition for "OnActivateWindow" to "OnSwitchTab"), or easier, remove a comment sign in the kmm-file
3) KM 75.1: works okay but NOT AUTOMATIC, only with manual reloading (F5)
4) KM 74/75.0: as above, plus NO TITLES in tabs menu :-(
5) KM 1.X: as above, plus shortcut prob: Middle-Mouse-Button works only alone. Use SHIFT+RButton instead?

TO DO later:
Perhaps add button to toggle automatic or manual reloading...
Perhaps add menu to reload all inactive tabs at once...
Perhaps add function to store all inactive URLs in a text file in the profile, to restore them in a later session...
Perhaps add function (button?) to toggle shortcuts between MiddleButton with/without CTRL...
Perhaps add function to open this config by menu....


Installation: Copy kmm-file into macros folder + delete in profile/startupCache

UPDATE: version 3 (bugfix, plus a toggle for Auto-Load)

UPDATE: Oops - check back for version 4 soon...
(New findings: KM1.6 works almost fully too, like KM75.1!
But bad BUG in old versions which cannot rename titles(KM1.5/1.8/74/75.0) FIX: Line 62 for OnLoad must be disabled with a comment # sign.)



Edited 5 time(s). Last edit at 02/03/2018 05:52PM by siria.

Attachments: StopAndGo_auto.kmm (6.4 KB)  
Options: ReplyQuote
Re: macro Stop&Go (open tabs in back, load content later)
Posted by: rodocop
Date: February 02, 2018 11:49PM

WOW!!!

It works!

Options: ReplyQuote
Re: macro Stop&Go (open tabs in back, load content later) UPDATE v3
Posted by: siria
Date: February 03, 2018 04:23AM

Thanks for testing!
Update with little bugfix and new function above :cool:

PS @roytam1+Dorian: 2 BUGS in Goanna:

- keyboard shortcut SHIFT+RButton opens the context menu additionally?
- $OnSwitchTab wrongly reports the $URLBAR from the previously active tab, big prob sad smiley



Edited 2 time(s). Last edit at 02/03/2018 04:28AM by siria.

Options: ReplyQuote
Re: macro Stop&Go (open tabs in back, load content later) UPDATE v3
Posted by: roytam1
Date: February 03, 2018 03:25PM

Quote
siria
Thanks for testing!
Update with little bugfix and new function above :cool:

PS @roytam1+Dorian: 2 BUGS in Goanna:

- keyboard shortcut SHIFT+RButton opens the context menu additionally?
- $OnSwitchTab wrongly reports the $URLBAR from the previously active tab, big prob sad smiley

for first point, I can't get what you mean.

for second point, I don't change/touch SwitchTab/OnSwitchTab logic, and such logic is not Goanna-related. Maybe it is already bugged in 76RC?

Options: ReplyQuote
Re: macro Stop&Go (open tabs in back, load content later) UPDATE v3
Posted by: siria
Date: February 03, 2018 07:04PM

KM-bugs:

1) keyboard shortcut SHIFT+RButton opens the context menu additionally

For example take this macro, enable inside around line-40 the shortcut for "SHIFT RButton" and restart. Then SHIFT+Rightclick on any link. The macro opens a background tab as intended, but additionally the page context menu shows up. Older KM-versions incl. KM76RC2 do not show the menu if the shortcut shall do something else.
Have also tested with defining the shortcut not by macro but manually in accels.cfg => same prob.

2) $OnSwitchTab wrongly reports the $URLBAR from the previously active tab

Update: Even a normal $OnLoad has the same prob, when triggered by a loaded BACKGROUND tab. Wrong $URLBAR content reported. And yes, this is an older prob, not special Goanna (=no chance for fix in foreseeable future, with Dorian absent)



Edited 1 time(s). Last edit at 02/03/2018 08:58PM by siria.

Options: ReplyQuote
Re: macro Stop&Go (open tabs in back, load content later) v3
Posted by: FARAO
Date: February 04, 2018 11:31PM

Hear me! This is exactly what I needed! Thank You for the macro! Good work!

Options: ReplyQuote


K-Meleon forum is powered by Phorum.