Re: About functions
Posted by: naruman
Date: October 19, 2013 09:18AM

rodocop,

Here is the file .

--

And about reduce the memory : preferences>Cache uncheck 'cache file in memory ' reduce 'some ' of the memory (sometimes it's make km Hang Up ).



Edited 1 time(s). Last edit at 10/19/2013 09:20AM by naruman.

Attachments: Kill_IMG-CSS.rar (2 KB)  
Re: About functions
Posted by: adodupan
Date: October 21, 2013 06:23AM

Quote
naruman
Is it possible for km to sense of the change of tabs , or it will need kplugin?
I mean something like:
$OnChangeTab=$OnChangeTab."Do_Something;";

naruman, as you probably already know, you need to edit the macros.dll file.
Sorry, but i still don't understand what you want. I suppose you want to intercept the loading site, you can read about it here.

Regards

Re: About functions
Posted by: rodocop
Date: October 25, 2013 01:47AM

naruman wants all the active contents (flash, js, etc.) from inactive (background) tabs being so to say 'frozen' (technically - killed or stopped) until tab becomes active again (selected by user) - at least it looks so to me.

This is great idea as the possibility to stop background javascripts and flashes (which are working now in KM on every background tab making KM very high-loaded) could make KM much more usable on the older hardware.

_____________________________________
Using K-Meleon-1.6db+NS by dugbug / KM-16-S2014
1.6beta2.6 by JamesD
_____________________________________
Recommending K-Meleon Twin+`||`Discuss it!!!
_____________________________________
New KM74 for test and feedback! Get It!

Re: About functions
Posted by: rodocop
Date: November 08, 2013 08:42PM

adodupan,

is there a chance to make your useragent switcher working in v.74?

It seems like it cannot find nsUserAgent.js now - not in root 'components' folder neither into omni.ja file.

So the extension 'switches' UA only in interface but not in real settings...

_____________________________________
Using K-Meleon-1.6db+NS by dugbug / KM-16-S2014
1.6beta2.6 by JamesD
_____________________________________
Recommending K-Meleon Twin+`||`Discuss it!!!
_____________________________________
New KM74 for test and feedback! Get It!

Re: About functions
Posted by: adodupan
Date: November 10, 2013 01:32AM

rodocop, about your UA question, the answer is no and yes.
No, in km79, profile chrome and components folders are not usable (in km16 only profile components folder is not usable). So, all chrome or components extensions are not usable.
Also yes, probably, i can write this directly in omni, but it is the last option. We need try to solve this.
Dorian's km74 is in the experimental stage. As dorian wrote, not known how km74 is usable at the moment.
After gecko 1.9.2 there have been a many changes. From mozilla's pages:
Starting with Gecko 2.0, the root chrome.manifest is the only manifest used. You can add manifest commands to that file to load secondary manifests.


For example, i tried flashblock, and i have a message in error console:
No chrome package registered for chrome://flashblock/content/options.xul
Also, one more of my observation, after first run waterfox creates two files in profile folder xpti.dat and compreg.dat. In km79 i don't see anywhere these two files.
Also, xulrunner appears now as an new factor with his differences.
At this moment i don't know whether they profile folders completely unusable (dorian's action needed), or may need to change or add a new line in manifest file or files.
These days i have a hundred jobs to finish before the winter season. You and naruman are constructive guys, if you can spend your time on this experiment, my suggestion is to play with manifest file(s). Try to find a way to register the chrome inside the profile folder, if possible at all.
Do not use console2, use chrome://global/content/console.xul

Regards to all

Re: About functions
Posted by: naruman
Date: November 10, 2013 10:21AM

To remove the massage "No chrome package registered for ....." Try that :


Add The ini 'application.ini' in K-meleon folder with the value :

[App]
Vendor=k-meleon
Name=k-meleon
Version=74
BuildID=20100901
ID=k-meleon@k-meleon.org

[Gecko]
MinVersion=1.8
MaxVersion=200.*
[XRE ]
EnableExtensionManager=1
EnableProfileMigrator=1

it will Accepts the new chormes .

Also to remove the massage "No chrome package registered for chrome://navigator-region/locale/region.properties" change the home page .

'chrome://navigator-region/..' is the default home page in 'kmeleon.js' in 'k-meleon\defaults\pref'.

Re: About functions
Posted by: adodupan
Date: December 04, 2013 11:56AM

History fix - ovrl-history.xul, ovrl-history.dtd, kmprefs.js

Preference 'browser.history_expire_days' was removed.
nsIBrowserHistory.count attribute was removed in gecko 15.0.
Update for k-meleon gecko 25.0

Replace these two files in kmprefs.jar:
Download: ovrl-history.xul
Download: ovrl-history.dtd

Open the file kmprefs.js in root\defaults\pref\ and add this line:
pref("places.history.enabled", true);

F2 > History > in Global History groupbox > Now it will appear different option:
Remember user's browsing history



Edited 1 time(s). Last edit at 12/07/2013 04:52PM by adodupan.

Attachments: ovrl-history.xul (4.3 KB)   ovrl-history.dtd (1 KB)  
Re: About functions
Posted by: adodupan
Date: December 04, 2013 05:07PM

New: Button Clear URL Bar History

Update: Now it works fine. File ovrl-urlbar.xul is untouched.



Edited 1 time(s). Last edit at 12/05/2013 09:44AM by adodupan.

Attachments: prefs.7z (40.2 KB)  
Re: About functions
Posted by: adodupan
Date: December 05, 2013 09:56AM

GUI Appearance fix.

Attachments: GUI Appearance.7z (6.7 KB)  
Re: About functions
Posted by: adodupan
Date: December 23, 2013 11:25PM

pref-kgestures.xul fix

Problem is that the file pref-kgestures.xul does not want to read data from a file
chrome://kmprefs/content/kplugins/gestures.xml
for reasons unknown to me. I changed a few lines and now works fine.
Also, file pref-kgestures.xul uses the alert function, i just disabled it.

Attachments: pref-kgestures.xul (14.3 KB)  
Re: About functions
Posted by: adodupan
Date: January 19, 2014 06:38PM

New in the latest version of kmeleon:
New possibility is to open a new tab using jsbridge plugin. This relates to a javascript.

Constants:
OPEN_NORMAL
OPEN_NEW
OPEN_BACKGROUND
OPEN_NEWTAB
OPEN_BACKGROUNDTAB
OPEN_CLONE

Example:
const Cc = Components.classes;
const Ci = Components.interfaces;

var jsbridge = Cc['@kmeleon/jsbridge;1'].getService(Ci.nsIJSBridge);
jsbridge.Open(url, jsbridge.OPEN_NEWTAB);
//jsbridge.Open('http://kmeleon.sourceforge.net/forum/', jsbridge.OPEN_NEWTAB);

/*End of example*/


Also, i saw the possibility of using the plugin commands, but i would like to ask Dorian for info and example.
Maybe someone could update the documentation.

Re: About functions
Posted by: JamesD
Date: January 21, 2014 10:15AM

Local documentation is available. Open the attached file in a work area and follow the instructions.

Attachments: Local_Docs.7z (30 KB)  
K-Meleon forum is powered by Phorum.