summaryrefslogtreecommitdiffabout
path: root/src/chrome/content/foxri.xul
blob: 785cc0cd6ae26c6dfb76c1060101e19617239853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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>


	<textbox id="urlbar" ontextentered="xriFix(); return handleURLBarCommand(param);" />

	<toolbarbutton id="go-button" oncommand="xriFix(); return handleURLBarCommand(event);" />

</overlay>