Development
: K-Meleon Forum
K-Meleon development related discussions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=siria] Hey, I'm delighted to realize that [b]"and" and "or" actually work inside if-conditions[/b], never knew that! Thought had tried it in the past, and it didn't work then, but perhaps I had some other mistake in the code. Or perhaps I only tried in caps (AND / OR)?? Anyway, there were always workarounds for "and", by boxing conditions, but workarounds for "or" seemed so difficult. Meanwhile I don't understand at all anymore why I had been so blind *blush* Little example: test_or{ $_x=prompt("","number?","1"); if($_x<3 [b][color=red]or[/color][/b] $_x>6) alert("","x<3 or x>6: YES"); else alert("","x<3 or x>6: NO"); } Perhaps this thread can be used by macro coders to exchange little tips or updates ;-) Just recently, while I remember it yet: [b]"setmenu" works also in-session[/b], not just at browser start, as was written somewhere :) The rebuildmenu-command is still a mystery to me, but doesn't seem to be needed anyway, since simply setmenu can be used? Probably a bug, but can come in handy anyway: :cool: Inserting a new popup or inline menu but without giving a name (""), makes that the [b]top entry of the parent menu is deleted[/b]! Used by jsnj for his search+ macro :) And JamesD figured out that [b]comparing variables takes the type (STRING or INT) [/b]from the left side of the "=" ! (defines whether e.g. 10 is smaller or greater than e.g. 3) And a prompt seems to return always a STRING. This can be converted to INT by e.g. adding zero: $_x=$_x+0; Ah yes, had almost forgotten already: the new [b]RETURN function for injectJS crops a string after 127 characters[/b] :( Yet another: [b]Input via prompt is cropped after 254 characters [/b]:( Although a pref line can hold far longer strings, well over 1000 at least, probably much more. Funnily, when creating a new pref directly on the page about:config, then the input field accepts longer entries. But of course I have no idea how to call that version. PS: Does anyone know the name of the context menu on about:config??? Would long since like to add an entry to open some help sites. Works fine via mouse gestures, but guess most other people would prefer a menu ;-)[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development