Diffstat (limited to 'src/chrome/content/foxri.xul') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | src/chrome/content/foxri.xul | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/chrome/content/foxri.xul b/src/chrome/content/foxri.xul new file mode 100755 index 0000000..dc1cc37 --- a/dev/null +++ b/src/chrome/content/foxri.xul @@ -0,0 +1,32 @@ +<?xml version="1.0"?>
+<?xml-stylesheet href="foxri.css" type="text/css"?>
+
+
+<overlay id="foxri" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+
+<!--
+<script type="application/x-javascript" src="chrome://foxri/content/xrdsHandler.js"/>
+-->
+
+<script>
+function xriFix(event)
+{
+ var txt = gURLBar.value;
+ if (/^(=|@|!)\S+/.test(txt)) {
+ gURLBar.value = "xri://" + txt;
+ }
+}
+</script>
+
+
+ <toolbaritem id="urlbar-container">
+ <textbox id="urlbar" ontextentered="xriFix(); return handleURLBarCommand(param);" />
+ </toolbaritem>
+
+ <toolbaritem id="go-container">
+ <toolbarbutton id="go-button" oncommand="xriFix(); return handleURLBarCommand(event);" />
+ </toolbaritem>
+
+</overlay>
+
|