General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
no script buttom
Posted by: Ricardo
Date: December 10, 2006 05:29PM

Hi
congratulationd for a excellente browse.
I missed the no script button from .9 version
I Know that kM has a privacy bar but i do not know how choose a site ( as i did on no script) to no script this site.
I have to enable for all or NOT. and i have to remember that...
Please think about it
or make me know how can i do this

Options: ReplyQuote
Re: no script buttom
Posted by: guenter
Date: December 11, 2006 06:14AM

hi Ricardo, that was an extension added by Fred the maintainer of the 0.9.
k-meleon will soon (with 1.1) have installable extensions - or so i hope
( for the few firefox extensions that work - but also for our own).
If You do not want to wait?

If You use k-meleon 1.1 test browser?

1.) Use from Your 0.9 and place in the same location:
./chrome/noscript.jar;
./components/noscriptService.js;
./defaults/pref/noscript.js

2.) chrome, add to installed-chrome.txt:

content,install,url,jar:resource:/chrome/noscript.jar!/content/noscript/
locale,install,url,jar:resource:/chrome/noscript.jar!/content/noscript/en-US/
skin,install,url,jar:resource:/chrome/noscript.jar!/skin/classic/noscript/

and delete the chrome.rdf and overlayinfo.rdf, so that they are created new.


3.) this is the macro code of the kmm that would work with 1.1; the menu entry will be in help near k-meleon about: put it into ./macros/ as noscript.kmm:

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

# ---------- noscript Extension (Noscript Protector) -------------------------------------------------------------------
#
# Dependencies : main.kmm (OpenURL)
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------------------------------------

noscript{
$OpenURL="chrome://noscript/content/noscriptOptions.xul"; &OpenURL_InNewWindow;
}

# ----- PRIVATE

_noscript_BuildMenu{
# edit menu
setmenu(KMAbout,macro,"Nostript Configuration",noscript);
}
$OnInit=$OnInit."_noscript_BuildMenu;";

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



Edited 1 time(s). Last edit at 12/11/2006 06:15AM by guenter.

Options: ReplyQuote
Re: no script buttom
Posted by: jk-
Date: December 12, 2006 10:06PM

nice guenter. I think people would also need to delete compreg.dat and xpti.dat in kmeleon/compontents directory though?

I also added this to the noscript.kmm so scripts could be enabled globally:


NSOnOff{
togglepref(BOOL,"noscript.global");
menuchecked=getpref(BOOL,"noscript.global");
getpref(BOOL,"noscript.global")==true?statusbar("NoScript Disabled") : statusbar("NoScript Enabled");
}


and in _noscript_BuildMenu{
setmenu(PrivacySecurity,macro,"Allow Scripts Globally",NSOnOff,6);

Options: ReplyQuote
Re: no script buttom
Posted by: guenter
Date: December 13, 2006 04:58AM

Nice Addition jk,

You are right - one should rub deleting them in as standart procedure.

btw. This one has only one js but no xpt in components.
But i have not tested it - i only knew params from testing new installer service.
XPT definitely need that deleting.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.