1
edit
Changes
→Mozilla Ubiquity
== Mozilla Ubiquity ==
Ubiquity Commands - <b>Work in Progress</b><br />
===Display IP address===
<b>Displays users IP address immediately</b><br />
by [[User:AaronMT|AaronMT]]<br />
<b>Usage:</b> ip
Utilizes the whatismyip website to parse the IP and display it right in the console
<pre>
CmdUtils.CreateCommand({
name: "ip",
homepage: "http://aaronmt.wordpress.com",
author: { name: "Aaron Train", email: "aaron.train@gmail.com"},
description: "Displays your internal IP address.",
help: "Just type IP",
icon: "http://whatismyip.com/favicon.ico",
preview: function(pblock) {
var url = "http://whatismyip.com/automation/n09230945.asp";
jQuery.get( url, function(data) {
pblock.innerHTML = data;
});
},
execute: function() {
var url = "http://whatismyip.com";
Utils.openUrlInBrowser(url);
},
});
</pre>
===Search MedicineNet===