Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Download manager (downloads history) menu by JamesD
Posted by: rodocop
Date: April 03, 2015 11:25AM

This macro is created by JamesD in order to give user menu item for Downloads page call.

Attachments: downloads.kmm (705 bytes)  
Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: siria
Date: April 03, 2015 12:11PM

Quote
rodocop
Adding kmm-file errorizes my KM by itself.
I've tried to rename it (and all functions inside), change code opening dl-page - nothing helps!
But removing file or switching macro off in Preferences - both lead to correct work being back.
A sort of magic! (My system is WinXPSP3)
UPD.: Sorry, James - it seems like particular problem of my OS! Testing on the other PC gives no errors! All works fine!

Mystery to me too. File looks fine. Just blind guessing...
Are there also probs when you type about:downloads in urlbar and go there?
Does it helping encoding the kmm in utf-8 (although contains itself no special characters, but no idea if localizations have influence)?
Does it help if you reduce the command to 1 line?

_downloads_BuildMenu{
setmenu("&View",macro,"Downloads","_downloads_History");
}

Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: JamesD
Date: April 03, 2015 12:42PM

Quote
rodocop
I've tried to rename it (and all functions inside), change code opening dl-page - nothing helps!

When you renamed the kmm file, did you also change the name where it is added to this line?
$macroModules=$macroModules."downloads;";

I have an old laptop with XP on it. If I can find the time, I will drag it out and put 75 on it and test.

Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: siria
Date: April 03, 2015 12:51PM

Or perhaps it has to do with the pref they mention here
https://support.mozilla.org/de/questions/909382

PS: would place it higher in the menu, and not make it dependant from fullscreen-plugin:
setmenu(NavEx,macro,"Downloads","_downloads_History");

Or as Dorian mentioned, in macros meant exclusively for new KM versions he'd prefer opentab:
_downloads_History{ opentab("about:downloads") ;}

Or who knows, perhaps this page needs to be opened in a window??
_downloads_History{ opennew("about:downloads") ;}

PS: macromodules has no function to my knowledge, just for info



Edited 1 time(s). Last edit at 04/03/2015 12:52PM by siria.

Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: rodocop
Date: April 03, 2015 02:58PM

As I said - it was like a mystification!

I've renamed file (and ALL instances of 'downloads' inside!), I've changed to opentab, I've commented 'if version' - nothing works!

Any KM instance on my home PC became erroneus with that kmm. And no glitches on my work PC with the same OS version.

It looks like something is corrupted there in system as other things also differ: for example, I can run secons instance of KM there WITHOUT 'new'-parameter :O



Edited 1 time(s). Last edit at 04/03/2015 02:58PM by rodocop.

Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: JamesD
Date: April 03, 2015 06:45PM

Quote
rodocop
It looks like something is corrupted there in system as other things also differ: for example, I can run secons instance of KM there WITHOUT 'new'-parameter

Sounds like your home PC is ready to get nicknamed "strange".

I have my old laptop powered up and now I need to put KM 75 RC2 u1 on it. I will report what I find.

Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: JamesD
Date: April 03, 2015 07:11PM

@ robocop

This post is coming from my old laptop w/XP. I copied my KM from the desktop to this pc. I have just looked at the downloads and then came here to post.

So far, everything seems to work. Your home PC may just be unique.

Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: siria
Date: April 03, 2015 08:04PM

Very weird. And the error console says nothing?
What happens when you type "about:downloads" in urlbar and open from there?

Just in case, but you've probably tried already to download RC2 again with u1 and unzipped them into a new empty folder?



Edited 1 time(s). Last edit at 04/06/2015 02:40PM by siria.

Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: JamesD
Date: April 06, 2015 12:26PM

I added quotes around some items and changed Downloads to Down&loads. I don't know if actually required, but maybe will help on some operating systems.

Attachments: downloads.kmm (717 bytes)  
Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: rodocop
Date: April 06, 2015 09:43PM

This one works fine on my 'buggy' system!

Options: ReplyQuote
Re: Download manager (downloads history) menu by JamesD
Posted by: JamesD
Date: April 07, 2015 01:40AM

Quote
rodocop
This one works fine on my 'buggy' system!

Great! I will report that to the person who suggested the change.

Now if I just knew if it was the added quotes or the & that fixed the problem. Of course it could have required both.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.