General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Pages: 12Next
Current Page: 1 of 2
A working userscripts macro (greasemonkey)
Posted by: jk-
Date: November 08, 2006 01:49PM

I threw together a macro for using greasemonkey user scripts. It seems to work with most of my userscripts. You can check it out here:

http://www.digivill.net/~joykillr/kmeleon/kmeleon_userscripts.html

I'd like to clean it up so there aren't as many variables created but since userscript functionality is supposedly coming with the next release of K-Meleon I figure this will suffice for now. Be sure to see the directions for setting the correct variables at the top of that page.

Also, I've only been working on this for 2 days so there might be some issues with it that I've yet to encounter.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: jk-
Date: November 23, 2006 03:43AM

If anyone is using the greasify module for the KM alphga build they may want to update it to the one that is on the website now. In the earlier versions I had forgotten to append OnLoad unto itself. winking smiley

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: George Dorn
Date: November 24, 2006 10:41PM

Does the website need updating? I wanted to get greasemonkey scripts working on kmeleon, but the site says to put that file in the macros directory, which doesn't exist.

Maybe a step-by-step guide?

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: jk-
Date: November 25, 2006 06:59AM

The kmm file is only for the newsest alpha release. If you are still using 1.02 then you need to copy/paste the text into your config files. I do need to get better instructions up there.. all in good time smiling smiley

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: Anders
Date: November 26, 2006 10:09AM

Anyone knows if there are plans to support GM_xmlhttpRequest or similair?

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: jk-
Date: November 27, 2006 06:31AM

I took a look at the javascript code in greasemonkey that accomplishes xmlhttpRequest and I think it's a little too advanced for me at the moment. If implemented incorrectly it could also become a security issue so for now there are no plans on my part. I do however have an idea for GM_addStyle and possibly some other functions.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: oi nerds
Date: March 18, 2007 04:27AM

_Greasify_BuildMenu{
$_gmenu="&Greasify";

... (menus)

rebuildmenu($_gmenu);
}



rebuild menu is necessary for Greasify work!

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: jk-
Date: March 19, 2007 08:04AM

Quote

rebuild menu is necessary for Greasify work!
Thanks, I wasn't sure about that. It's always worked fine for me without it but I've added it to the newest version.

----------------------
- K-Meleon Macros and Extensions
- Greasify (Greasemonkey type macro for K-Meleon)
- Stylish for K-Meleon

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: oi nerds
Date: March 24, 2007 06:35PM

Sorry.

Rebuild menu really isn’t necessary. But to work properly here, I have to make any modification in KMM file. confused smiley

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: marcio
Date: April 09, 2007 03:58AM

now I put is in kmeleon?

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: oi nerds
Date: April 26, 2007 10:56AM

Version 6.2.5d

load scripts onload!

_GreasifyOnLoad{
getpref(INT,$_Greasify_Custom.".enabled")!=0 ? &Greasify:0;
}



change to:
_GreasifyOnLoad{
getpref(INT,$_Greasify_Custom.".enabled")!=0 ? &Greasify:0;
&Greasify;
}

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: oi nerds
Date: April 26, 2007 11:13AM

onload = faster!

Suggestion: put calls "Toggle ON/OFF" onload.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: oi nerds
Date: April 27, 2007 02:01PM

sorry!!! Disregard my topics

i haven't seen
getpref(INT,$_Greasify_Custom.".enabled")!=0 ? &Greasify:0;


but now i analyzed..


this code create a new menu before of the menu Help
_Greasify_BuildMenu{
$_gmenu="&Greasify";
setmenu(Main,popup,$_gmenu,"&Help");
..


Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: Benjamin C. Wiley Sittler
Date: April 29, 2007 08:42AM

Is there any chance the K-Meleon 1.02 version can support scripts that have

// @include http://*

or

// @include *

? I am trying to get http://userscripts.org/scripts/show/8833 and http://userscripts.org/scripts/show/6073 working in K-Meleon.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: Norman Prather
Date: July 25, 2007 04:33PM

Hmmm, I am running K-M 1.1 but cannot get this implemented. Does anyone have simple, using short words, instructions for this confused user?

Thanks
NTP

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: JujuLand
Date: July 25, 2007 07:26PM

You can try GreaseMeleon by oi nerds, avalaible on his site (I haven't the URL), or on my extensions pages.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 07/25/2007 07:27PM by JujuLand.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: Norman Prather
Date: August 01, 2007 04:50PM

I just deleted GreaseMeleon because it did not work (at all). Obviously I am missing something, probably something simple. Only I don't know what it is!

Suggestions?
NTP

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: Norman Prather
Date: August 01, 2007 04:58PM

Just tried again. It at least opens menu options now! yea!

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: jk-
Date: September 05, 2007 12:44PM

The latest version:
http://www.digivill.net/~joykillr/kmeleon/greasify-.7.0.5.kmm

supports
// @include        http://*
and
// @exclude        http://*

(ignore the  stuff, the forum code is adding it)

Also fixed https:// support.

I've also added better help on the webpage and on the Greasify submenu -> Help.

Benjamin: You may want to try your scripts again, but I was looking at them and they seem to use GM_setValue and GM_xmlHTTPRequest, both of which are thusfar, unsupported in Greasify.

Greasify homepage: http://www.digivill.net/~joykillr/kmeleon/kmeleon_userscripts.html

----------------------
- K-Meleon Macros and Extensions
- Greasify (Greasemonkey type macro for K-Meleon)
- Stylish for K-Meleon

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: mikol
Date: September 30, 2007 07:35PM

I've got Kmeleon 1.12 installed.
I installed the latest greasify.
I created a scripts file.

After restarting kmeleon, I still can't see greasify in the tools menu.

What might I do next to get this to work.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: mikol
Date: October 02, 2007 05:54AM

I looked at the script and tried uncommenting some of the build menu stuff but that didn't work and after reading all the comments I think I understand why some of those lines were turned off.

Still not able to see greasify on the tools menu.

I saved the file as: gresify.kmm

Any guidance on this would be appreciated.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: mikol
Date: October 02, 2007 05:55AM

Correction:

I saved the file as greasify.kmm and I installed it in the macros file in the KMeleon directory.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: jk-
Date: October 03, 2007 10:34AM

hey mikol,
You should not uncomment those lines. Keep them in there. The file name should not matter as long as there is only one version in the macros directory.

I have not tried 1.12 yet, still waiting for an official release (and not just the update). But maybe the macros are now loading from the profile directory?

I'd say, try putting the .kmm file in your profile/macros dir. See if it works, the sub-menu should show up immediately once it is recognized.

----------------------
- K-Meleon Macros and Extensions
- Greasify (Greasemonkey type macro for K-Meleon)
- Stylish for K-Meleon

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: Norman
Date: November 13, 2007 09:41PM

I really want this to work. But I cannot get it to show up. I'm at a loss what to try now. I've tried everything listed in this discussion.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: jk-
Date: November 17, 2007 12:52AM

Quote
Norman
I really want this to work. But I cannot get it to show up. I'm at a loss what to try now. I've tried everything listed in this discussion.
Hey Norman, have you gotten other macros working with K-Meleon?
and which version of K-Meleon are you using?

----------------------
- K-Meleon Macros and Extensions
- Greasify (Greasemonkey type macro for K-Meleon)
- Stylish for K-Meleon

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: mic
Date: August 21, 2008 08:03AM

Hi,

I'm trying to use a complex user-script for deviantart (deviantplus) with greasify.

But for some reason greasify cuts off scripts after a certain point.

Too bad, as I really would want to use K-Meleon 1.5 instead of all these bloatware-browsers...

M.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: JujuLand
Date: August 21, 2008 09:08AM

You perhaps can try it with GreaseMeleon 1.3 on 'K-Meleon Extension Setup' pages

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: jk-
Date: August 21, 2008 12:08PM

This script?:
http://userscripts.org/scripts/show/1008

Try changing
// @include       http://*.deviantart.com*

to
// @include       http://*.deviantart.com/*
(ignore the url bbcode)

This script adds js from an external url, maybe try that code directly in a script? (http://www.olemac.net/~hutch/deviantArt/deviantPLUS/deviantPLUS.main.js)

----------------------
- K-Meleon Macros and Extensions
- Greasify (Greasemonkey type macro for K-Meleon)
- Stylish for K-Meleon

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: mic
Date: August 22, 2008 09:50AM

hi,

hmm, I can see no difference between these two lines...

but thanks that you take care of it :-)

the script I use, is this one (I use the code directly)

________________________________ snip _______________________________

// ==UserScript==
// @name deviantPLUS v3
// @namespace deviantPLUS
// @description Enhances deviantART by adding a toolbar to text fields
// @include http://*.deviantart.com*
// ==/UserScript==

/*

________________________________ snap _______________________________

...well, can't post it completely as some words in it are "banned from use" - whatever that may mean.

the script is here: http://tinyurl.com/6b8t2m

M.

Options: ReplyQuote
Re: A working userscripts macro (greasemonkey)
Posted by: mic
Date: August 22, 2008 09:54AM

oops, sorry, wrong link to the script. it is here: http://www.jasonwhutchinson.com/GM/deviantPLUS/deviantplusv3.user.js

M.

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


K-Meleon forum is powered by Phorum.