Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
NewsFox 1.0.9.1 works with K-Mleon 74 Addon Manager
Posted by: George Hall
Date: August 15, 2014 12:50PM

Newfox 1.0.9.1 Fiefox Addon works with K-Meleon 74 for versions with the the Addon Manager like K-Meleon 74.0RC.

Here are the steps to make the firefox NewsFox Addon wotk with K-Meleon 74.0Reta4 and above wth the Addon Manager.

1. Download the Newsfox Addon newsfox-1.0.9.1-fx+sm.xpi at https://addons.cdn.mozilla.net/user-media/addons/629/newsfox-1.0.9.1-fx+sm.xpi

2. You rename newsfox-1.0.9.1-fx+sm.xpi to {899DF1F8-2F43-4394-8315-37F6744E6319}.xpi

3. For thhe NewsFox Addon to enabled kmeleon.install_firefox_extension must be added as a boolean value set to true. As mentioned in http://kmeleonbrowser.org/forum/read.php?8,127809,128529#msg-128529 by Dorian

To view the newsfox feeds to the address chrome://newsfox/content/newsfox.xul.

Also the K-Meleon NewsFox Macro is not necesary when the Addon Manager is used with this extension.

That K-Meleon macro has the addess chrome://newsfox/content/newsfox-overlay.xul to view NewsFox Feeds.

This Macro was for NewFox extension modifed for K-Melon 1.1 and above.The address above is not in the Firefox NewsFox Addon.

Options: ReplyQuote
NewsFox 1.0.9.1.1 Minor Update
Posted by: guenter
Date: September 07, 2014 05:13PM

Minor release: NewsFox 1.0.9.1.1
10. June 2014 23:57:38

Languages: bg-BG, cs-CZ, da, de, en-US, es-ES, et-EE, fr, hu-HU, it, ja-JP, nl, pl, ru, sk-SK, sv-SE, zh-CN, zh-TW.

(The Newsfox version 1.0.9.1 from addons.mozilla.org is older.)

NewsFox 1.0.9.1.1 is released. Minor changes from 1.0.9.1 to 1.0.9.1.1:

Shift to right on ctrl-right arrow from text pane removed.
Minor
Removed .setAttribute("oncommand",... constructions.

When using the keyboard with the focus in the text pane(this only way to use NewsFox properly smiling smiley), the view would shift to the right on a wide page when using ctrl-right arrow to select the next item after using ctrl-down arrow. This has bugged me for a long time, and I finally looked at it.

KMM update: If You use a kmm You have to activate it in K-meleon Plugins -> Macros -> Newsfox and restart.

(You can also use a bookmark of chrome://newsfox/content/newsfox.xul
as suggested above by George Hall. That is usable immidiately.)

Name: newsfox.kmm


# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- NewsFox Extension (RSS News Feed Aggregator) ----------------------------------------------------------
#
# Dependencies	: main.kmm (ExecMacros, OpenURL), mail.kmm (menus)
# Resources	: -
# Preferences	: -
#
# ------------------------------------------------------------------------------------------------------------------

NewsFox{
# For K-Meleon 1.5 and newer
macroinfo=_("Open NewsFox for reading news feeds"); &NewsFox11;
}
NewsFox11{
# For K-Meleon 74 (NewsFox 1.0.9.1 and newer)
$OpenURL="chrome://newsfox/content/newsfox.xul"; $ExecMacros="OpenURL_InNew"; &ExecMacros_Frames;
}

# ----- PRIVATE

_NewsFox_BuildMenu{
$__m=index($KM_Version,"74")==0?NewsFox11:NewsFox;
# tools menu
index($macroModules,";Mail;")>-1?setmenu(_Mail_News,macro,"Read &RSS Feeds",$__m):setmenu(MailNews,macro,"NewsFo&x",$__m);
# toolbar button
$RSS=$__m;
}
$OnInit=$OnInit."_NewsFox_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."NewsFox;";



Edited 1 time(s). Last edit at 09/07/2014 06:13PM by guenter.

Options: ReplyQuote
Re: NewsFox 1.0.9.1.1 Minor Update
Posted by: George Hall
Date: September 08, 2014 07:10PM

Quote
guenter
Minor release: NewsFox 1.0.9.1.1
10. June 2014 23:57:38

Languages: bg-BG, cs-CZ, da, de, en-US, es-ES, et-EE, fr, hu-HU, it, ja-JP, nl, pl, ru, sk-SK, sv-SE, zh-CN, zh-TW.

(The Newsfox version 1.0.9.1 from addons.mozilla.org is older.)

NewsFox 1.0.9.1.1 is released. Minor changes from 1.0.9.1 to 1.0.9.1.1:

Shift to right on ctrl-right arrow from text pane removed.
Minor
Removed .setAttribute("oncommand",... constructions.

When using the keyboard with the focus in the text pane(this only way to use NewsFox properly smiling smiley), the view would shift to the right on a wide page when using ctrl-right arrow to select the next item after using ctrl-down arrow. This has bugged me for a long time, and I finally looked at it.

KMM update: If You use a kmm You have to activate it in K-meleon Plugins -> Macros -> Newsfox and restart.

(You can also use a bookmark of chrome://newsfox/content/newsfox.xul
as suggested above by George Hall. That is usable immidiately.)

Name: newsfox.kmm


# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- NewsFox Extension (RSS News Feed Aggregator) ----------------------------------------------------------
#
# Dependencies	: main.kmm (ExecMacros, OpenURL), mail.kmm (menus)
# Resources	: -
# Preferences	: -
#
# ------------------------------------------------------------------------------------------------------------------

NewsFox{
# For K-Meleon 1.5 and newer
macroinfo=_("Open NewsFox for reading news feeds"); &NewsFox11;
}
NewsFox11{
# For K-Meleon 74 (NewsFox 1.0.9.1 and newer)
$OpenURL="chrome://newsfox/content/newsfox.xul"; $ExecMacros="OpenURL_InNew"; &ExecMacros_Frames;
}

# ----- PRIVATE

_NewsFox_BuildMenu{
$__m=index($KM_Version,"74")==0?NewsFox11:NewsFox;
# tools menu
index($macroModules,";Mail;")>-1?setmenu(_Mail_News,macro,"Read &RSS Feeds",$__m):setmenu(MailNews,macro,"NewsFo&x",$__m);
# toolbar button
$RSS=$__m;
}
$OnInit=$OnInit."_NewsFox_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."NewsFox;";

K-Meleon Extensions Central has a newsfox for K-Meleon 74 with an update newssfox
macro

http://kmext.sourceforge.net/km74/newsfox-km74.7z is download location of the extenson. Yus have to copy that macro over K-Meleon 74 mscros.

Options: ReplyQuote
Re: NewsFox Fix
Posted by: siria
Date: January 04, 2016 12:48PM

Did a lot of research yesterday, and it's really incredible:
ever since Newsfox was broken in KM1.5, for no reason except a changed and now wrong xul-path, it was always considered too boring to officially fix this fatal bug again - just because that fix was known and too baby simple, taking a minute sad smiley All those years since 2008!!

Then in KM74 the newsfox "addon" wasn't contained anymore - but KM still contained the "newsfox.kmm", creating the menu and button command. Result: menu and button did nothing. Addon was missing.

Now since KM75, exactly the opposite: the addon is contained again, updated and - working in theory, but now the newsfox.kmm was deleted! Result: no menu anymore and the button still does nothing!

And even if the old newsfox.kmm would be added again now with the corrected xul-path - menu and button would still do NOTHING, show an empty white page!
Because out-of-box ALL Firefox addons are still blocked, even this native one. Just because the new firefox_install pref is still missing by default. Not even hidden away in about:config, without menu, but completely missing. So no normal user and even not advanced ones have a chance to figure this out, only a few KM experts in this forum.
Then again, who cares about running addons anyway, considering there's also still no menu for addon-onfigurations at all? A simple link to "about:addons" still missing in menus too (not to mention custom useragents were removed without any reason either, although still badly needed, and frames are now blocked for no reason either, min-font size is still unreadable zero, the ancient gui for link color settings etc. still broken, etc. etc.)

Sorry, just frustrated since so many years about all sorts of baby fixes never happening just because they are too easy, and so much a pity that KM remains a browser for a few experts only sad smiley
The GUI would still be complicated enough by design, but some complications are so unnecessary. We need a second main dev again, like kko or desga :-/

Options: ReplyQuote
Re: NewsFox FIX (path in kmm)
Posted by: siria
Date: January 04, 2016 12:54PM

Anyway, couldn't resist and update the old newsfox.kmm with those gimmicks now:
(- fixed xul-path, known bugfix since many years, same as above)
- RSS command now checks the permission for Firefox addons, if not working offers to fix it
- newsfox opens in a standalone WINDOW again, because vertical space really is critical for it
- that window opens maximized (using settimer as bug-workaround, needs KM75+)
- users can still chose to open it in a TAB instead, if 'courageous' enough to open the kmm in a text editor
- code cosmetics, removed code fork for KM1.1 (!), added more info in kmm-header

This macro is also attached below, just download and throw into the macros folder.
If an older newsfox.kmm is already there, rename it to "newsfox_old_kmm"

# ---------------------------------- newsfox75.kmm -------------------------------------------------

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)

# ---------- NewsFox Extension (RSS News Feed Aggregator) --------------
# (Version 2016-01-03 for K-Meleon 75+, Newsfox is included out-of-box)
#
# Resources : Newsfox Addon (KM75+: .../browser/extensions/{899DF1F8-2F43-4394-8315-37F6744E6319}.xpi)
# Preferences : "kmeleon.install_firefox_extension"=TRUE ; browser.frames.enabled=TRUE
# Dependencies : main.kmm (ExecMacros, OpenURL)
# Menu : Tools > Mail And News > Read RSS Feeds (If mails-macro disabled: Tools > NewsFox)
# Button : RSS-button on toolbar "Mail/News Buttons"
# Newsfox Homepage: http://newsfox.mozdev.org (KM uses the normal xpi now)
# ----------------------------------------------------------------------------------

# Open in new "tab" or in new "window" (without toolbars, size maximized in KM75+):
$NewsFox_size= "window" ;
# ----------------------------------------------------------------------------------

NewsFox{
macroinfo=_("Open NewsFox for reading news feeds");
$OpenURL="chrome://newsfox/content/newsfox.xul";
if ($NewsFox_size=="tab") $ExecMacros="OpenURL_InNew";
else { $ExecMacros="OpenURL_InNewWindow"; settimer("_NF_maxWindow",1,free); }
getpref(BOOL,"kmeleon.install_firefox_extension")? &ExecMacros_Frames : &_NF_FFAddonsBlocked;
}

_NF_FFAddonsBlocked{
confirm(_("Firefox-Addons are currently disabled. They must be enabled to use this feature.\nWill only work after next K-Meleon start.")."\n\n"._("Enable Firefox-Addons and continue?"),_("Firefox-Addons Support Disabled"),YESNO,EXCLAIM)=="YES" ? setpref(BOOL,"kmeleon.install_firefox_extension",true) : 0;
}

_NF_maxWindow{
# bug workaround: not called by $OnLoadOnce but by settimer (KM75+), because ID_MAXIMIZE_WINDOW does not work OnLoad for WINDOWS (or xul only?), and meanwhile the JS-sizeTo workaround is broken too)
id(ID_MAXIMIZE_WINDOW);
}

_NewsFox_BuildMenu{
# tools menu
index($macroModules,";Mail;")>-1?setmenu(_Mail_News,macro,"Read &RSS Feeds","NewsFox"):setmenu(MailNews,macro,"NewsFo&x","NewsFox");
# RSS-button in toolbars.cfg calls macro "RSS", which is defined in main.kmm, which redirects to macroname $RSS, which is empty without this:
$RSS="NewsFox";
}

# ----------------------------------------------------------------------------------
$OnInit=$OnInit."_NewsFox_BuildMenu;";
$macroModules=$macroModules."NewsFox;";


Attachments: newsfox75.kmm (2.4 KB)  
Options: ReplyQuote
Re: NewsFox FIX (path in kmm)
Posted by: rodocop
Date: January 05, 2016 01:02AM

Dorian has inserted macro-related part into Newsfox's xpi-file when getting it back to KM75 (it was his new technique of adapting FF-addons for KM).

And Newsfox in my 1.6 was fully working as I can remember.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.