Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Add page to hotlinks via right click menu
Posted by: Mello
Date: July 26, 2018 12:41AM

I used to be able to do this with unofficial ccfme k-m how would I do this now please? Right click on a page and add it to hotlinks

Options: ReplyQuote
Re: Add page to hotlinks via right click menu
Posted by: siria
Date: July 26, 2018 03:23AM

Quote
Mello
I used to be able to do this with unofficial ccfme k-m how would I do this now please? Right click on a page and add it to hotlinks

Wondering, why not menu Tools > Hotlinks?
Do you change them so often? Remember all by memory? In which way do you use it...?

Options: ReplyQuote
Re: Add page to hotlinks via right click menu
Posted by: hermes
Date: July 26, 2018 01:22PM

@Mello

I recommend will study this commands and modify necessary to you menu
(for example, a context menu BROWSER \ DEFAULTs \ settings \ menus.cfg ):
http://krypton.x10host.com/lizard/commands.html#p_favoritos



Edited 1 time(s). Last edit at 07/26/2018 02:17PM by hermes.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu
Posted by: Mello
Date: July 26, 2018 07:29PM

Thanks I'll look at that hermes

This is what I used to do many years ago in 2005 siria. I doubled the number of hotlinks and yes I often change them.

I finally remembered my old username here Arrow and did a search for my old questions, here's the configuration, but layout of KM is different now:

Quote
[quote=Arrow]
For those interested and learning this stuff like me

In accel.cfg I assigned the alt+4 shortcut to another key

and in the Hotkeys section I added

ALT 1 = macros(ALT1)
ALT 2 = macros(ALT2)
ALT 3 = macros(ALT3)
ALT 4 = macros(ALT4)
ALT 5 = macros(ALT5)
ALT 6 = macros(ALT6)
ALT 7 = macros(ALT7)
ALT 8 = macros(ALT8)
ALT 9 = macros(ALT9)


In the menus.cfg I added

macros(SETALT1,Set address for Alt+1);
macros(SETALT2,Set address for Alt+2);
macros(SETALT3,Set address for Alt+3);
macros(SETALT4,Set address for Alt+4);
macros(SETALT5,Set address for Alt+5);
macros(SETALT6,Set address for Alt+6);
macros(SETALT7,Set address for Alt+7);
macros(SETALT8,Set address for Alt+8);
macros(SETALT9,Set address for Alt+9);


to make set address for alt 1-9 appear in the Tools/Hotkeys menu


and macro.cfg shortcut key section now looks like this

#--- Shotcut Key macros ----------#

SETCTRL1{
$ctrl1=prompt("Enter Address for CTRL + 1", "CTRL + 1");
setpref(STRING, "Web.address.CTRL1", $ctrl1);
}
SETCTRL2{
$ctrl2=prompt("Enter Address for CTRL + 2", "CTRL + 2");
setpref(STRING, "Web.address.CTRL2", $ctrl2);
}
SETCTRL3{
$ctrl3=prompt("Enter Address for CTRL + 3", "CTRL + 3");
setpref(STRING, "Web.address.CTRL3", $ctrl3);
}
SETCTRL4{
$ctrl4=prompt("Enter Address for CTRL + 4", "CTRL + 4");
setpref(STRING, "Web.address.CTRL4", $ctrl4);
}
SETCTRL5{
$ctrl5=prompt("Enter Address for CTRL + 5", "CTRL + 5");
setpref(STRING, "Web.address.CTRL5", $ctrl5);
}
SETCTRL6{
$ctrl6=prompt("Enter Address for CTRL + 6", "CTRL + 6");
setpref(STRING, "Web.address.CTRL6", $ctrl6);
}
SETCTRL7{
$ctrl7=prompt("Enter Address for CTRL + 7", "CTRL + 7");
setpref(STRING, "Web.address.CTRL7", $ctrl7);
}
SETCTRL8{
$ctrl8=prompt("Enter Address for CTRL + 8", "CTRL + 8");
setpref(STRING, "Web.address.CTRL8", $ctrl8);
}
SETCTRL9{
$ctrl9=prompt("Enter Address for CTRL + 9", "CTRL + 9");
setpref(STRING, "Web.address.CTRL9", $ctrl9);
}
SETALT1{
$alt1=prompt("Enter Address for ALT + 1", "ALT + 1");
setpref(STRING, "Web.address.ALT1", $alt1);
}
SETALT2{
$alt2=prompt("Enter Address for ALT + 2", "ALT + 2");
setpref(STRING, "Web.address.ALT2", $alt2);
}
SETALT3{
$alt3=prompt("Enter Address for ALT + 3", "ALT + 3");
setpref(STRING, "Web.address.ALT3", $alt3);
}
SETALT4{
$alt4=prompt("Enter Address for ALT + 4", "ALT + 4");
setpref(STRING, "Web.address.ALT4", $alt4);
}
SETALT5{
$alt5=prompt("Enter Address for ALT + 5", "ALT + 5");
setpref(STRING, "Web.address.ALT5", $alt5);
}
SETALT6{
$alt6=prompt("Enter Address for ALT + 6", "ALT + 6");
setpref(STRING, "Web.address.ALT6", $alt6);
}
SETALT7{
$alt7=prompt("Enter Address for ALT + 7", "ALT + 7");
setpref(STRING, "Web.address.ALT7", $alt7);
}
SETALT8{
$alt8=prompt("Enter Address for ALT + 8", "ALT + 8");
setpref(STRING, "Web.address.ALT8", $alt8);
}
SETALT9{
$alt9=prompt("Enter Address for ALT + 9", "ALT + 9");
setpref(STRING, "Web.address.ALT9", $alt9);
}
CTRL1{
$ctrl1=getpref(STRING,"Web.address.CTRL1");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl1) : opennew($ctrl1);
}
CTRL2{
$ctrl2=getpref(STRING,"Web.address.CTRL2");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl2) : opennew($ctrl2);
}
CTRL3{
$ctrl3=getpref(STRING,"Web.address.CTRL3");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl3) : opennew($ctrl3);
}
CTRL4{
$ctrl4=getpref(STRING,"Web.address.CTRL4");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl4) : opennew($ctrl4);
}
CTRL5{
$ctrl5=getpref(STRING,"Web.address.CTRL5");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl5) : opennew($ctrl5);
}
CTRL6{
$ctrl6=getpref(STRING,"Web.address.CTRL6");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl6) : opennew($ctrl6);
}
CTRL7{
$ctrl7=getpref(STRING,"Web.address.CTRL7");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl7) : opennew($ctrl7);
}
CTRL8{
$ctrl8=getpref(STRING,"Web.address.CTRL8");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl8) : opennew($ctrl8);
}
CTRL9{
$ctrl9=getpref(STRING,"Web.address.CTRL9");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $ctrl9) : opennew($ctrl9);
}
ALT1{
$alt1=getpref(STRING,"Web.address.ALT1");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt1) : opennew($alt1);
}
ALT2{
$alt2=getpref(STRING,"Web.address.ALT2");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt2) : opennew($alt2);
}
ALT3{
$alt3=getpref(STRING,"Web.address.ALT3");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt3) : opennew($alt3);
}
ALT4{
$alt4=getpref(STRING,"Web.address.ALT4");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt4) : opennew($alt4);
}
ALT5{
$alt5=getpref(STRING,"Web.address.ALT5");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt5) : opennew($alt5);
}
ALT6{
$alt6=getpref(STRING,"Web.address.ALT6");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt6) : opennew($alt6);
}
ALT7{
$alt7=getpref(STRING,"Web.address.ALT7");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt7) : opennew($alt7);
}
ALT8{
$alt8=getpref(STRING,"Web.address.ALT8");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt8) : opennew($alt8);
}
ALT9{
$alt9=getpref(STRING,"Web.address.ALT9");
getpref(BOOL, $layers) == "true" ? pluginmsg(layers, "OpenURL", $alt9) : opennew($alt9);
}
#--------------End-------------------------#


Options: ReplyQuote
Re: Add page to hotlinks via right click menu
Posted by: siria
Date: July 26, 2018 11:29PM

Whow... you've used KM since 2005, 13 years ago? Cool smiling smiley
And even doubled the number of shortcuts, making it 18 websites to remember by heart? Creating those again is still rather easy, but before deciding how to best match your needs with a new macro and menu, I'm still struggling to understand why you prefer to input new ones "blind", overwriting the previous URL, instead of using the list overview in Tools>Hotlinks. If saving 1sec of time is so important, that seems you change those shortcut-URLs very often, all the time. But how in the world do you remember so many entries without a list? That would already be near impossible with a static set of 18 URLs, but completely out of my imagination when even changing those all the time. Photographic memory?? grinning smiley There must be something I'm missing...

Options: ReplyQuote
Re: Add page to hotlinks via right click menu
Posted by: Mello
Date: July 29, 2018 10:59PM

If I had double the amount of hotlinks I'd rotate approx. six of them siria. Not difficult to remember the numbers of the remainder after many years.

I've never signed up to Twitter but I like to view the postings of various experts in their fields, and as I discover new interesting accounts - which is often - from their cross-references I relegate ones I want to rest into bookmarks.

EDIT
I found a download link for Hao's ccf-me 0.963 (2008/9) and he had assigned numbers to each hotlink: ctrl+1 = 1 etc. These numbers didn't appear in the browser preference dialog boxes however.
So....open context menu / select add to hotlinks (hotkeys) / enter a number... 1, 2,3 etc That's it.

https://sourceforge.net/projects/k-meleonccfme/files/k-meleonccfme/0.096.3/K-MeleonCCFME0.096.3.7z/download
(For some reason sourceforge reckon it might contain malware - coolwulf was Hao's alter ego)



Edited 6 time(s). Last edit at 07/29/2018 11:33PM by Mello.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: siria
Date: July 30, 2018 10:26PM

New Macro: hotlinks20

Okay, attached is a new macro, and couldn't resist playing with the menus a bit (if you find it too long, it also contains your wished mini-menu, the toggle for long/short is at the bottom in the kmm :coolsmiling smiley

(But I still find my own home-page much easier, which contains just a little link list, unfortunately ever growing, as usual... grinning smiley)

Updated to version-4: fixed line position after URL-changes in buggy KM75+newer
http://kmeleonbrowser.org/forum/file.php?9,file=1779,filename=hotlinks20.kmm

Description inside the file.
Tip: hotlinks can also be used for bookmarklets.

Installation: copy the kmm-file into your macros folder and restart.

(last update 2018-03-08, later just fixed the broken link after topic was moved into extensions forum)



Edited 9 time(s). Last edit at 12/05/2018 05:45PM by siria.

Attachments: hotlinks20.kmm (6.8 KB)  
Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: siria
Date: July 31, 2018 05:23PM

How it looks at the moment:





Edited 2 time(s). Last edit at 12/05/2018 05:41PM by siria.

Attachments: hotlinks20_screen.png (12.7 KB)  
Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: Mello
Date: August 01, 2018 12:21AM

Hey! that's brilliant siria. All those hotlinks, immediately visible too.

And...very simple to install.

Thank you.

ps.
Like you I do have a custom home page as well with clickable images.
file:///C:/Program%20Files/_Homepage/index.htm
I saved a web page that had the layout I wanted and then replaced
the images and links. I don't understand html.



Edited 1 time(s). Last edit at 08/01/2018 12:23AM by Mello.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: siria
Date: August 01, 2018 06:36AM

Great that it meets your needs smiling smiley
Have now uploaded version3 above, the menu now shows a checkmark if the current page is already stored in a hotlink.

Quote
Mello
Like you I do have a custom home page as well with clickable images.
file:///C:/Program%20Files/_Homepage/index.htm
I saved a web page that had the layout I wanted and then replaced
the images and links. I don't understand html.

Yeah am not really html-savvy either, just occasionally have to learn enough for current tasks, then sadly forget it again, until next time :/
Adding pictures is nice but too much work if the list grows longer. My initial text-links homepage had just about a dozen links, and didn't expect it to grow so large, but meanwhile contains over 100, oh well. Most are 'temporary' links meant to check later when having more time, or meant to visit regularly only for awhile when finding a new temporary interest. Then of course to be removed again later or stored in bookmarks, am just a bit slow at cleaning up :cool:
Anyway, just as html syntax example, have attached a little textlinks page. When I want to add a new link or edit an old one, can just hit the "View Source" function in KM, that opens the page in the text editor defined in KM-prefs for source viewing. Then can just copy the lines of another link and adjust the target and name (The input boxes etc. can be ignored or deleted, are just inherited from creation with the tablistia macro)

Attachments: tablist_EXAMPLE - browser homepage.html.7z (1.7 KB)  
Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: Mello
Date: August 02, 2018 08:02PM

Thanks again.

One question: I updated a hotlink to a different page on the same domain but then it shifted position in the context menu list to the bottom, is it possible for sites to remain in a static position in the context list because I now have CTRL + 6 below ALT + 9

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: siria
Date: August 03, 2018 06:30AM

Quote
Mello
One question: I updated a hotlink to a different page on the same domain but then it shifted position in the context menu list to the bottom, is it possible for sites to remain in a static position in the context list because I now have CTRL + 6 below ALT + 9

Ah right, that stupid setmenu bug in modern KM-versions sad smiley
Don't remember at the moment when exactly it started (74? 75?), but in the past, when creating a menu line with macrolanguage, and a line for the same function existed already and just had another description, the old line was replaced in the same spot. Then came the probs with migrating to newer engines and that didn't work anymore, instead there were now 2 lines showing up in the menu! Dorian made a workaround that first deletes the old line and then adds the new one, but that means the position is lost, the updated line moved to the bottom.

Wonder if roytam1 can fix this too, as he managed with broken injectJS-return and site-UAs? :cool:

For the moment, in THIS macro, I can add a workaround myself, that's also necessary for middle-aged KM versions, but this is only possible because the menu structure is so rigid here. First remove the old menu line by macro, then add the new line again by macro, and place it right above the next hotlink number.
But for most other macros that's not possible, because there's usually no way to know the current position number or next neighbor below sad smiley
Hmm, thinking about it... in other macros perhaps first insert a dummy command above the old line, then delete the old line, then add the updated one above the dummy line, then remove the dummy line again... may work, but grmpff!



Edited 1 time(s). Last edit at 08/03/2018 06:37AM by siria.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: siria
Date: August 03, 2018 05:11PM

Have now checked that menuline position bug in
KM74: still okay. 1 setmenu line is enough, updates for the same command land automatically in the same spot again.
KM75: worst version: changed menulines appear now double, the old one remains unchanged in place, the updated version lands at bottom
KM75.1+newer: updated menulines land at bottom
(KM74-Goanna win98: Crash when opening a changed menu again :-(

Luckily in THIS macro the menuline positions are known with fix numbers, that means 1x delete and 1x new create is enough.
Please download again:
http://kmeleonbrowser.org/forum/file.php?1,file=1779,filename=hotlinks20.kmm

What I keep thinking:
it would be handy to have 2 full menus, for "Open hotlink..." and for "Store hotlink..."
Am thinking about doing it, just a bit uneasy with exploding a tiny cute 2-4 lines macro to over 40 menu lines :-/



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

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: Mello
Date: August 03, 2018 06:27PM

Thank you, I had no idea what was involved.

I'll try the new one.

BUT: I did notice when I rebooted my laptop today that the original
order of hotlinks had restored itself.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: siria
Date: August 03, 2018 06:51PM

Yes that menu bug affects only in-session changes of menus.
At every browser startup all menus get created all fresh again, in this case from the prefs 0-9 in counting order.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: luk3Z
Date: August 13, 2018 06:32AM

Quote
siria
New Macro: hotlinks20

(...)

Description inside the file.
Tip: hotlinks can also be used for bookmarklets.

Installation: copy the kmm-file into your macros folder and restart.

This is awsome. I loved KM even more now.
Anyway hotlinks are the greatest (and most useful) function in KM imho.
Thanks siria for this macro.
BTW does anyone try to add about:addons button to toolbar or in Tools menu (I have currently 2 additional buttons: AdB. and Ext. Manager) ?

__________________________________________
How to install Firefox addons in KM 76 RC:
http://kmeleonbrowser.org/forum/read.php?9,141979
Icons for Goanna KM/SM:
http://kmeleonbrowser.org/forum/read.php?10,150634
K-Meleon Quick Reference:
http://kmeleonbrowser.org/docs.php
Basilisk/KM/SM xpi converter:
https://www.addonconverter.fotokraina.com/
Best regards.



Edited 1 time(s). Last edit at 08/13/2018 06:38AM by luk3Z.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: Mello
Date: August 14, 2018 03:11AM

I have about:addons as a hotlink lol

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: siria
Date: August 18, 2018 09:55PM

Wow, two users! Glad you like smiling smiley

Quote
luk3Z
Anyway hotlinks are the greatest (and most useful) function in KM imho.

So has everyone their favorites. For me the privacy/bandwith buttons are. And macros plugin of course! grinning smiley And mouse gestures. And configurability in general, and... LOL!
(But without the privbuttons I really couldn't live. Since last year am forced to use Retrozilla/FF2 browser more and more often, due to the https-mania everywhere with TLS1.2, and KM74goanna-alpha is far too often crashing yet. And what am I doing now?! Crazy, started dabbling with building an FF2-addon to get those darn buttons created, argh. Works now, but far too much time wasted.)

Quote
luk3Z
BTW does anyone try to add about:addons button to toolbar or in Tools menu (I have currently 2 additional buttons: AdB. and Ext. Manager) ?

Ah I see you've found it smiling smiley And yes, it was inspired by your post above.
http://kmeleonbrowser.org/forum/read.php?9,147082,147249#msg-147249


Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: luk3Z
Date: August 19, 2018 07:01AM

Thanks for the info about Retrozilla/FF2. I'll try it. Anyway it looks like SeaMonkey. I like old Geck browsers - I still have on disk: FF 47.0.2, IceCat 38.8.0, Mozilla 1.7.13, Netscape 9 and SeaMonkey. Now I add Retrozilla to my browsers smiling smiley They're fully customizable thus I like them.

__________________________________________
How to install Firefox addons in KM 76 RC:
http://kmeleonbrowser.org/forum/read.php?9,141979
Icons for Goanna KM/SM:
http://kmeleonbrowser.org/forum/read.php?10,150634
K-Meleon Quick Reference:
http://kmeleonbrowser.org/docs.php
Basilisk/KM/SM xpi converter:
https://www.addonconverter.fotokraina.com/
Best regards.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: siria
Date: August 19, 2018 09:53AM

LOL, you sure don't really need Retrozilla for connecting to TLS1.2, since you can run newer browsers too. But if you collect them as hobby grinning smiley Retrozilla exists in various flavours, as I just learned these day myself, RZ2 is Firefox2 with TLS1.2 for Windows95, and roytams RZ2.2 actually *is* Seamonkey, also plus TLS1.2 for Win95. The thread for them is over at the MSFN forum.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: roytam1
Date: August 19, 2018 03:41PM

Quote
siria
LOL, you sure don't really need Retrozilla for connecting to TLS1.2, since you can run newer browsers too. But if you collect them as hobby grinning smiley Retrozilla exists in various flavours, as I just learned these day myself, RZ2 is Firefox2 with TLS1.2 for Windows95, and roytams RZ2.2 actually *is* Seamonkey, also plus TLS1.2 for Win95. The thread for them is over at the MSFN forum.

to be clear, rzbrowser-*.7z is "RetroZilla Browser" which is in Firefox-alike form, while rz-suite-*.7z is "RetroZilla Suite" which is in Seamonkey-alike form.

Options: ReplyQuote
Re: Add page to hotlinks via right click menu (macro hotlinks20)
Posted by: Mello
Date: October 23, 2018 06:11PM

Can even add pictures or files to hotlinks, this is great.

Drag jpg or txt, doc, html file etc into k-m then right click and hotlink.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.