0
|
1 <?xml version="1.0"?>
|
|
2
|
|
3 <overlay id="tinyurl"
|
|
4 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
5
|
|
6 <script type="application/x-javascript" src="chrome://tinyurl/content/tinyurl.js"></script>
|
|
7 <script type="application/x-javascript" src="chrome://tinyurl/content/saved.js"></script>
|
|
8 <script language="JavaScript">
|
|
9 //Window Event Handers
|
|
10 try{window.addEventListener("load", tinyurl_overlayInit, true);}catch(e){}
|
|
11 </script>
|
|
12
|
|
13
|
|
14 <!-- Firefox Toolbar Icon -->
|
|
15 <toolbarpalette id="BrowserToolbarPalette">
|
|
16 <toolbarbutton type="menu" label="TinyUrl"
|
|
17 id="tinyurl-button" tooltiptext="Tiny Url Creator"
|
|
18 image="chrome://tinyurl/content/icons/button.png">
|
|
19 <menupopup>
|
|
20 <menuitem label="New..."
|
|
21 oncommand="window.openDialog('chrome://tinyurl/content/tinyurl_dialog.xul','TinyUrlDialog','centerscreen, chrome, resizable').focus();"
|
|
22 accesskey="N"
|
|
23 style="font-weight: bold;" />
|
|
24 <menuitem label="From Current URL"
|
|
25 oncommand="tinyurl_createFromCurrent();"
|
|
26 accesskey="C" />
|
|
27 <menuitem label="View Saved"
|
|
28 oncommand="window.openDialog('chrome://tinyurl/content/tinyurl_dialog.xul','TinyUrlDialog','centerscreen, chrome, resizable', 'saved').focus();"
|
|
29 accesskey="S" />
|
|
30 <menuitem label="Options..."
|
|
31 oncommand="window.openDialog('chrome://tinyurl/content/dialogs/options.xul','TinyUrlOptions','centerscreen, chrome, resizable').focus();"
|
|
32 accesskey="O" />
|
|
33 </menupopup>
|
|
34 </toolbarbutton>
|
|
35 </toolbarpalette>
|
|
36
|
|
37 <!-- Firefox Tools File Menu -->
|
|
38 <menupopup id="menu_ToolsPopup">
|
|
39 <menu id="tinyurl-tools-menu" label="TinyUrl Creator"
|
|
40 accesskey="T" class="menuitem-iconic"
|
|
41 insertafter="devToolsSeparator">
|
|
42 <menupopup>
|
|
43 <menuitem label="New..."
|
|
44 oncommand="window.openDialog('chrome://tinyurl/content/tinyurl_dialog.xul','TinyUrlDialog','centerscreen, chrome, resizable').focus();"
|
|
45 accesskey="N" />
|
|
46 <menuitem label="From Current URL"
|
|
47 oncommand="tinyurl_createFromCurrent();"
|
|
48 accesskey="C" />
|
|
49 <menuitem label="View Saved"
|
|
50 oncommand="window.openDialog('chrome://tinyurl/content/tinyurl_dialog.xul','TinyUrlDialog','centerscreen, chrome, resizable', 'saved').focus();"
|
|
51 accesskey="S" />
|
|
52 <menuitem label="Options..."
|
|
53 oncommand="window.openDialog('chrome://tinyurl/content/dialogs/options.xul','TinyUrlOptions','centerscreen, chrome, resizable').focus();"
|
|
54 accesskey="O" />
|
|
55 </menupopup>
|
|
56 </menu>
|
|
57 </menupopup>
|
|
58
|
|
59 <!-- Mozilla Tools File Menu -->
|
|
60 <menupopup id="taskPopup">
|
|
61 <menu id="tinyurl-moz-menu" label="TinyURL Creator" accesskey="T" insertafter="devToolsSeparator">
|
|
62 <menupopup>
|
|
63 <menuitem label="New..."
|
|
64 oncommand="window.openDialog('chrome://tinyurl/content/tinyurl_dialog.xul','TinyUrlDialog','centerscreen, chrome, resizable').focus();"
|
|
65 accesskey="N" />
|
|
66 <menuitem label="From Current URL"
|
|
67 oncommand="tinyurl_createFromCurrent();"
|
|
68 accesskey="C" />
|
|
69 <menuitem label="View Saved"
|
|
70 oncommand="window.openDialog('chrome://tinyurl/content/tinyurl_dialog.xul','TinyUrlDialog','centerscreen, chrome, resizable', 'saved').focus();"
|
|
71 accesskey="S" />
|
|
72 <menuitem label="Options..."
|
|
73 oncommand="window.openDialog('chrome://tinyurl/content/dialogs/options.xul','TinyUrlOptions','centerscreen, chrome, resizable').focus();"
|
|
74 accesskey="O" />
|
|
75 </menupopup>
|
|
76 </menu>
|
|
77 </menupopup>
|
|
78
|
|
79
|
|
80 <!-- Context Menu -->
|
|
81 <popup id="contentAreaContextMenu">
|
|
82 <menuitem id="tinyurl-context-link-menu" label="Create TinyUrl for this Link" oncommand="tinyurl_createFromAnchor(this);" insertafter="context-openlinkintab" collapsed="false" />
|
|
83 <menuitem id="tinyurl-context-page-menu" label="Create TinyUrl for this Page" oncommand="tinyurl_createFromCurrent();" insertafter="tinyurl-context-link-menu, context-savepage" />
|
|
84 </popup>
|
|
85 </overlay> |