forked from Christoph142/Documents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
25 lines (22 loc) · 873 Bytes
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<title>Documents</title>
<script type="text/javascript" src="autolang.js"></script>
<script type="text/javascript">
if(window.opera.version()>=12.10){
var menu = opera.contexts.menu;
var lang = widget.preferences.lang=="auto"?autolang:widget.preferences.lang;
if(lang=="de") var localized_title = "mit Documents öffnen";
else if(lang=="fr") var localized_title = "ouvre avec Documents";
else var localized_title = "open with Documents";
var context_item = menu.createItem({title:localized_title,contexts:['link'],icon:"images/contextmenu.png"});
opera.extension.onmessage = function(event){
if(event.data == "add" && !menu.item(0)) menu.addItem(context_item);
else if(event.data == "remove" && menu.item(0)) menu.removeItem(0);
}
}
</script>
</head>
<body><!-- IGNORED --></body>
</html>