Extensions :  K-Meleon Forum
All about K-Meleon extensions. 
Pages: Previous12
Current Page: 2 of 2
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)  
Options: ReplyQuote
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

Options: ReplyQuote
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.


Latest Release KM75.0 Latest beta KM75.1RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: K-Meleon-1.6db+NS // KM-16-S2014 // 1.6beta2.6 // K-Meleon Twin+

RECOMMENDED! K-Meleon 75 Pro: Download portable =//= Discuss on forum

Options: ReplyQuote
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...


Latest Release KM75.0 Latest beta KM75.1RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: K-Meleon-1.6db+NS // KM-16-S2014 // 1.6beta2.6 // K-Meleon Twin+

RECOMMENDED! K-Meleon 75 Pro: Download portable =//= Discuss on forum

Options: ReplyQuote
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

Options: ReplyQuote
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'.

Options: ReplyQuote
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)  
Options: ReplyQuote
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)  
Options: ReplyQuote
Re: About functions
Posted by: adodupan
Date: December 05, 2013 09:56AM

GUI Appearance fix.

Attachments: GUI Appearance.7z (6.7 KB)  
Options: ReplyQuote
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)  
Options: ReplyQuote
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.

Options: ReplyQuote
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)  
Options: ReplyQuote
Re: About functions
Posted by: adodupan
Date: August 07, 2015 03:19PM

This addon is useful for coders and probably for some end-users.
Edit:
Bold text should be translated:
install.rdf
<em:localized>
  <Description>
    <em:locale>en-US</em:locale>
    <em:creator>adodupan</em:creator>
    <em:name>cRestart</em:name>
    <em:description>Small tool for coders and K-Meleon developers. Tool will restart K-Meleon and clean up startupCache.</em:description>
    <em:translator>adodupan (English)</em:translator>
  </Description>
</em:localized>

crestart.dtd
<!ENTITY clean.startupCache "Clean up startupCache">
<!ENTITY clean.startupCache.desc "cRestart will clean up startupCache or user can disable this feature (macro coders do not need this).">
<!ENTITY clean.profileManager "Prevent Profile Manager">
<!ENTITY clean.profileManager.desc "cRestart will prevent Profile Manager to ask at startup.">

crestart.properties
menuDescription=&Restart %S
statusbarMessage=Clear startup cache and restart %S
Note:
Known km's bug - on xp restart does not work as expected.
If user open a 'about' window in addon manager and if user closes or if restarts km, km crashes.
Km need improvement, jsbridge plugin need a way to unregister accel.
Also, km has trouble with buttons in restartless addon, but i will explain it later, that's irrelevant here.



Edited 2 time(s). Last edit at 08/07/2015 06:37PM by adodupan.

Attachments: cRestart.v.3.5.restartless@adodupan.xpi (42.2 KB)  
Options: ReplyQuote
Re: About functions
Posted by: rodocop
Date: August 11, 2015 01:28AM

How could this be installed?

K-Meleon doesn't recognize this file nor through about:addons option to install addon from saved file neither through 'open file'.

Manual adding xpi to extensions folder also doesn't seem to work.


Latest Release KM75.0 Latest beta KM75.1RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: K-Meleon-1.6db+NS // KM-16-S2014 // 1.6beta2.6 // K-Meleon Twin+

RECOMMENDED! K-Meleon 75 Pro: Download portable =//= Discuss on forum

Options: ReplyQuote
Re: About functions
Posted by: adodupan
Date: August 12, 2015 06:03AM

cRestart addon is written exclusively for kmeleon and it is 100% compatible with kmeleon 75.*
What a paradox, kmeleon can not recognize addon 100% compatible with kmeleon as such :)

You are set a preference 'kmeleon.install_firefox_extension' to true in your kmeleon and your kmeleon sends a firefox id.
Kmeleon id is {944df56f-c0ec-4d7b-94b6-f625c8cc96ea}

That's why users are confused here, on the kmeleon forum. I did not pay attention to these posts.
Now i've read, guenter teaches users how to make kmeleon compatible addons:

Quote
guenter
You need help from the creator of the extension.
He must update the extension.

<!-- Firefox
3.5 is Gecko 1.9.1
3.6 is Gecko 1.9.2
4.0 is Gecko 2.0
5.0 is Gecko 5.0
x.0 is Gecko x.0, where x is greater than 5 -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>3.5</em:minVersion>
<em:maxVersion>35.*</em:maxVersion>
</Description>
</em:targetApplication>

Following guenter's instructions,
i need to rewrite cRestart addon for a firefox, after that cRestart will be compatible with kmeleon.
What a bunch of nonsense :)
A disgrace which could cause serious damage to kmeleon.

I have shared this addon mostly because this addon is best example of how latest improvements in kmeleon should be used.
Btw, you are welcome to translate cRestart addon, there are missing translations for other languages.
Edit: and menu item can appear only if default language is english. - kmeleon bug
Good luck guys :)



Edited 1 time(s). Last edit at 08/14/2015 08:18AM by adodupan.

Options: ReplyQuote
Re: About functions
Posted by: adodupan
Date: August 14, 2015 08:16AM

Strange behavior.
After installing a addon in which is included only en-US locale, all languages included in kmeleon can use en-US locale except spanish language.
Tested on win7 64bit and virtual xp.

Options: ReplyQuote
Re: About functions
Posted by: desga2
Date: August 14, 2015 02:25PM

@adodupan:

What K-Meleon version are you using?
Can you test it with last es-ES translation:
locale_es-ES_75_plus1.7z (208.1 KB)


Greetings.

K-Meleon in Spanish

Options: ReplyQuote
Re: About functions
Posted by: adodupan
Date: August 14, 2015 05:49PM

Perhaps my sentence above is not clear.
After installing a cRestart addon, on the File menu should appear item Restart K-Meleon. This happens in all languages included in kmeleon except in spanish language.
This happens in both kmeleon, in the last release and in the last beta.
If no one can confirm this, then my machine behaves strangely.
My OS uses en-US (virtual xp also).

Options: ReplyQuote
Re: About functions
Posted by: rodocop
Date: August 14, 2015 08:17PM

Do confirm the disappearance of the menu item with es-ES locale (if KM was loaded with espaƱol)...


Latest Release KM75.0 Latest beta KM75.1RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: K-Meleon-1.6db+NS // KM-16-S2014 // 1.6beta2.6 // K-Meleon Twin+

RECOMMENDED! K-Meleon 75 Pro: Download portable =//= Discuss on forum

Options: ReplyQuote
Re: About functions
Posted by: JamesD
Date: August 14, 2015 09:51PM

Quote
Adodupan
Following guenter's instructions,
i need to rewrite cRestart addon for a firefox, after that cRestart will be compatible with kmeleon.
What a bunch of nonsense smiling smiley
A disgrace which could cause serious damage to kmeleon.

Can you not use KM native restart or the restart2 macro for this? I am completely ignorant about addons, so my question may not make sense.

Options: ReplyQuote
Re: About functions
Posted by: desga2
Date: August 15, 2015 12:57AM

Can someone post where I can download cRestart addon to test this problem?

Thanks.

K-Meleon in Spanish

Options: ReplyQuote
Re: About functions
Posted by: adodupan
Date: August 15, 2015 01:36AM

This is not a harmless bug. Even when it is added es-ES locale in addon and when it is registered in chrome.manifest, addon can not use es-ES locale at all.

cRestart download

Options: ReplyQuote
Re: About functions
Posted by: rodocop
Date: August 15, 2015 04:02AM

Well, I should to clarify once again that you need the pref
kmeleon.install_firefox_extension
being set to false in order to install KM-specific addons like this - as adodupan said.


Latest Release KM75.0 Latest beta KM75.1RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: K-Meleon-1.6db+NS // KM-16-S2014 // 1.6beta2.6 // K-Meleon Twin+

RECOMMENDED! K-Meleon 75 Pro: Download portable =//= Discuss on forum

Options: ReplyQuote
Re: About functions
Posted by: adodupan
Date: August 15, 2015 04:13PM

You should use the attached file.

Attachments: brand.properties (324 bytes)  
Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


K-Meleon forum is powered by Phorum.