Hey, I'm delighted to realize that "and" and "or" actually work inside if-conditions
, 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*
$_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:
"setmenu" works also in-session
, 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:
Inserting a new popup or inline menu but without giving a name (""), makes that the top entry of the parent menu is deleted
! Used by jsnj for his search+ macro
And JamesD figured out that comparing variables takes the type (STRING or INT)
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 RETURN function for injectJS crops a string after 127 characters
Input via prompt is cropped after 254 characters
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 ;-)
Edited 8 time(s). Last edit at 08/14/2011 04:23AM by siria.