Const
Returns true iff the domain of hostname matches.
Examples:
dnsDomainIs("www.netscape.com", ".netscape.com")
// is true.
dnsDomainIs("www", ".netscape.com")
// is false.
dnsDomainIs("www.mcom.com", ".netscape.com")
// is false.
is the hostname from the URL.
is the domain name to test the hostname against.
true iff the domain of the hostname matches.
Returns the number (integer) of DNS domain levels (number of dots) in the hostname.
Examples:
dnsDomainLevels("www")
// returns 0.
dnsDomainLevels("www.netscape.com")
// returns 2.
is the hostname from the URL.
number of domain levels
Resolves the given DNS hostname into an IP address, and returns it in the dot separated format as a string.
Example:
dnsResolve("home.netscape.com")
// returns the string "198.95.249.79".
hostname to resolve
resolved IP address
True iff the IP address of the host matches the specified IP address pattern.
Pattern and mask specification is done the same way as for SOCKS configuration.
Examples:
isInNet(host, "198.95.249.79", "255.255.255.255")
// is true iff the IP address of host matches exactly 198.95.249.79.
isInNet(host, "198.95.0.0", "255.255.0.0")
// is true iff the IP address of the host matches 198.95.*.*.
a DNS hostname, or IP address. If a hostname is passed, it will be resoved into an IP address by this function.
an IP address pattern in the dot-separated format mask.
for the IP address pattern informing which parts of the IP address should be matched against. 0 means ignore, 255 means match.
True iff there is no domain name in the hostname (no dots).
Examples:
isPlainHostName("www")
// is true.
isPlainHostName("www.netscape.com")
// is false.
The hostname from the URL (excluding port number).
Tries to resolve the hostname. Returns true if succeeds.
is the hostname from the URL.
Is true if the hostname matches exactly the specified hostname, or if there is no domain name part in the hostname, but the unqualified hostname matches.
Examples:
localHostOrDomainIs("www.netscape.com", "www.netscape.com")
// is true (exact match).
localHostOrDomainIs("www", "www.netscape.com")
// is true (hostname match, domain not specified).
localHostOrDomainIs("www.mcom.com", "www.netscape.com")
// is false (domain name mismatch).
localHostOrDomainIs("home.netscape.com", "www.netscape.com")
// is false (hostname mismatch).
the hostname from the URL.
fully qualified hostname to match against.
Returns the IP address of the host that the Navigator is running on, as a string in the dot-separated integer format.
Example:
myIpAddress()
// would return the string "198.95.249.79" if you were running the
// Navigator on that host.
external IP address
Returns true if the string matches the specified shell expression.
Actually, currently the patterns are shell expressions, not regular expressions.
Examples:
shExpMatch("http://home.netscape.com/people/ari/index.html", "*/ari/*")
// is true.
shExpMatch("http://home.netscape.com/people/montulli/index.html", "*/ari/*")
// is false.
is any string to compare (e.g. the URL, or the hostname).
is a shell expression to compare against.
true if the string matches the shell expression.
True during (or between) the specified time(s).
Even though the examples don't show it, this parameter may be present in each of the different parameter profiles, always as the last parameter.
Examples:
timerange(12)
true from noon to 1pm.
timerange(12, 13)
same as above.
timerange(12, "GMT")
true from noon to 1pm, in GMT timezone.
timerange(9, 17)
true from 9am to 5pm.
timerange(8, 30, 17, 00)
true from 8:30am to 5:00pm.
timerange(0, 0, 0, 0, 0, 30)
true between midnight and 30 seconds past midnight.
timeRange(hour) timeRange(hour1, hour2) timeRange(hour1, min1, hour2, min2) timeRange(hour1, min1, sec1, hour2, min2, sec2) timeRange(hour1, min1, sec1, hour2, min2, sec2, gmt)
Only the first parameter is mandatory. Either the second, the third, or both may be left out.
If only one parameter is present, the function yeilds a true value on the weekday that the parameter represents. If the string "GMT" is specified as a second parameter, times are taken to be in GMT, otherwise in local timezone.
If both wd1 and wd1 are defined, the condition is true if the current weekday is in between those two weekdays. Bounds are inclusive. If the "GMT" parameter is specified, times are taken to be in GMT, otherwise the local timezone is used.
Valid "weekday strings" are:
SUN MON TUE WED THU FRI SAT
Examples:
weekdayRange("MON", "FRI")
true Monday trhough Friday (local timezone).
weekdayRange("MON", "FRI", "GMT")
same as above, but GMT timezone.
weekdayRange("SAT")
true on Saturdays local time.
weekdayRange("SAT", "GMT")
true on Saturdays GMT time.
weekdayRange("FRI", "MON")
true Friday through Monday (note, order does matter!).
Generated using TypeDoc
If only a single value is specified (from each category: day, month, year), the function returns a true value only on days that match that specification. If both values are specified, the result is true between those times, including bounds.
Even though the examples don't show, the "GMT" parameter can be specified in any of the 9 different call profiles, always as the last parameter.
Examples:
dateRange(day) dateRange(day1, day2) dateRange(mon) dateRange(month1, month2) dateRange(year) dateRange(year1, year2) dateRange(day1, month1, day2, month2) dateRange(month1, year1, month2, year2) dateRange(day1, month1, year1, day2, month2, year2) dateRange(day1, month1, year1, day2, month2, year2, gmt)