This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
60 changed files
with
407 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
|
||
SET KANGODIR=..\..\ | ||
|
||
call "%KANGODIR%\kango.py" build .\ --no_add_header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
KANGODIR="../.." | ||
python $KANGODIR/kango.py build ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAK3UgHMFbIU6r/z3/ | ||
WKQEX4EH37oVP7sqf45+Nn+bwA68UI6gvFkA5sdqs1I3LHks+kXbJmFx3xN1UIM3h | ||
6CTLazLNgBtNNevZmWAoTX3uKXR1q0gqnRnzL0yBksmlwg+uTw5JcQT9kY8BbNlv0 | ||
9/2pMQ/MH75gqBxIc/NXXWa+RAgMBAAECgYEAoKfXl3aZ14BoCqrAGooAQLFa0pWz | ||
iG/+pKG7pu4KdPIE7CrbvnGrC3+dzmDa5+bxiCpICpOjzPS6dnMiDpxqfKGC/Uys3 | ||
gxYu3erSdGpPQIQ82utON2jMX2KgqbtY5ERgZEFhYebT2kPczRB5d9Tv7o+djAJSc | ||
s1dreNH7WS6oECQQDjyzZD0NszRZB4WAowJ9mbObb9UfdyvVhONIMu9mqWc4gbcmB | ||
OgXvF2SfIpK3PluUtKyWsh63/zeGvEOexhQpJAkEAw1q0kW1HAY4zQtBVfdniVPIN | ||
DfmJ19pxyao/ZnuwJ67V6alEIiic/cCrXM162WzcQ4dVCNbEuXARCftrWeG7CQJBA | ||
KDSblxQjwFSwp2EIqU+7S3fAGc2QEocjcSg5GD6jePsaxJdnMqwNe9H0gOg6ClgMi | ||
rChJWbMOghtY0AlWNKNykCQDn7pjSz9qtjhZuDMpzUGvWTkoRfWKaU08lDmuXUOIj | ||
Ov/dGok5xN4eptDMrWhdG1GnGtVqWRHW16ZjI4ygec+ECQQCf4J2+0OaEY6/iWl3N | ||
HjjMP125a6h4nIxFB21Es13nuzfbGggy2wEugsS9UzFFyt2e2K/q9b23yG9hkjAms | ||
/7T | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"id": "{A5FCE629-2461-45BA-A597-E1E74DFC9C34}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// ==UserScript== | ||
// @name ContextMenuItemDemo | ||
// @include http://* | ||
// @include https://* | ||
// ==/UserScript== | ||
|
||
function handleContextMenuClick() { | ||
var clickedElement = null; | ||
|
||
if ('addEventListener' in document) { | ||
document.addEventListener('mousedown', function(event) { | ||
if (event.button == 2) { | ||
clickedElement = event.target; | ||
} | ||
}, true); | ||
} else { | ||
document.attachEvent('onmousedown', function(event) { | ||
event = event || window.event; | ||
if (event.button == 2) { | ||
clickedElement = event.srcElement; | ||
} | ||
}); | ||
} | ||
|
||
kango.addMessageListener('ContextMenuItemClick', function(event) { | ||
alert(clickedElement); | ||
}); | ||
} | ||
|
||
handleContextMenuClick(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "ContextMenuItemDemo", | ||
"version": "1.2.0", | ||
"description": "Context menu item demo", | ||
"creator": "Kango", | ||
"homepage_url": "http://kangoextensions.com/", | ||
"background_scripts": ["main.js"], | ||
"content_scripts": ["content.js"], | ||
"browser_button": { | ||
"caption": "ContextMenuItemDemo", | ||
"tooltipText": "ContextMenuItemDemo", | ||
"icon": "icons/button.png" | ||
}, | ||
"context_menu_item": { | ||
"caption": "ContextMenuItemDemo" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kango.ui.contextMenuItem.addEventListener(kango.ui.contextMenuItem.event.CLICK, function() { | ||
kango.console.log('Context menu item click'); | ||
kango.browser.tabs.getCurrent(function(tab) { | ||
tab.dispatchMessage('ContextMenuItemClick'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"id": "{6DA65DEE-AB5B-4045-A22B-CE7EF99E55ED}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"id": "{CEA9A8F3-0AAA-43D6-AD6F-FC59D0559C03}", | ||
"com_objects": { | ||
"engine": { | ||
"iid": "{3CADDB6E-558C-4A50-BEBF-1484FDB9823B}", | ||
"libid": "{DCCB4658-862A-48DD-961A-20A6A8A8D184}", | ||
"clsid": "{3C6EDBDF-5554-4AB9-8FDD-D384B4B9F73B}" | ||
}, | ||
"toolbar": { | ||
"iid": "{5620B557-CE61-407F-B689-D081B7583944}", | ||
"clsid": "{56BCB5E2-CE84-4098-95C1-BC81F9582B44}" | ||
}, | ||
"bho": { | ||
"iid": "{CEE7A81D-0A50-43CF-8498-4C59E855EA03}", | ||
"libid": "{6605B655-E023-4D9C-8FED-BA229E5957CC}", | ||
"clsid": "{CEA9A8F3-0AAA-43D6-AD6F-FC59D0559C03}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"id": "http://kangoextensions.com/extensions/contextmenuitemdemo/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"developer_id": "YOUR_SAFARI_DEVELOPER_ID", | ||
"id": "com.kangoextensions.contextmenuitemdemo" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
|
||
SET KANGODIR=..\..\ | ||
|
||
call "%KANGODIR%\kango.py" build .\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
KANGODIR="../.." | ||
python $KANGODIR/kango.py build ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANk8fNT8ykBJimLU | ||
+EoGgWAh1vC4JcxVcDpCAA6HvUNGhMGd81of8FIbL4oX8CRZ032XexTpYmSJ8e/x | ||
eiBSXOoLiYXHo/Udiib1SGE3tdAypOMiPoykiVUfD0zT08crapYf2zFnyY8AkxmU | ||
vgXa+7NX506blYaPPG9d827e/fP1AgMBAAECgYBT4B7yvYf5umtMLZ6QNmLNk0NC | ||
PleZxYNHeyQ6d/6Dcz7e4vWK3roTeZupXgTChEw8Obi0IkhzOS/IzRuyTxrALIjb | ||
Jj5LR3jhusZslw+0/8PvrbDvymdzR+Xkazt/tgyIhxe5xfbxg8wynyvQluCPNaNy | ||
9bkKsMvqmhfV1K+uAQJBAP324RaV6h6OPKjUi1y8TegR2+F+oVBsJduKhsFk/tfF | ||
rJFyyPmetVqoVk4v2inVIwstSH969ncFsPFYo3KdBdECQQDa+j6PSj5pskBgmpws | ||
bvyXNgnoR9YCNvIVNiQwYTyI8B25I69Fxe2xRW1JpZBEmqUeUtMbvVIUQxe3chWt | ||
O8DlAkEA3Amg7/6nwB2gtO6iaJDGN0Hx7qfWgGWTT2nwY3Nr0et1HvgC5TP7ETc0 | ||
v716GjCOkkqDu9//1xPZQOJ5iv49YQJAaIIyRVTbwLov+2sOyi4WI1zJEbDnNJtg | ||
ojr6vpRJvdlLdkbPqe8y5/4IkLORzQw5beV9l6mdeMokkYrDSbBQ+QJBAPg/buI3 | ||
VDs//DtsBGYC+BtKaPbDy6B5OSk6DaLpAzSndfgGReu6SR5YKbvQGfQ7C4UQMLit | ||
rEH7UzYHw6jRau8= | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"id": "egeheepmibnkiknpplmebimglgnklgci" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "Extension name" | ||
"version": "1.2.0", | ||
"description": "Extension description", | ||
"creator": "Kango", | ||
"homepage_url": "http://kangoextensions.com/", | ||
"background_scripts": [ | ||
"main.js" | ||
], | ||
"browser_button": { | ||
"caption": "Kango", | ||
"icon": "icons/button.png", | ||
"tooltipText": "Kango" | ||
}, | ||
"default_locale": "en", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"__info_name__": "Extension name", | ||
"__info_description__": "Extension description", | ||
"Hello": "Hello" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"__info_name__": "Название расширения", | ||
"__info_description__": "Описание расширения", | ||
"Hello": "Привет" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kango.console.log('Application locale = ' + kango.i18n.getApplicationLocale()); | ||
kango.console.log('Default locale = ' + kango.getExtensionInfo().default_locale); | ||
kango.console.log('Current locale = ' + kango.i18n.getCurrentLocale()); | ||
kango.console.log('Messages = ' + JSON.stringify(kango.i18n.getMessages())); | ||
kango.console.log('Hello message = ' + kango.i18n.getMessage('Hello')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"id": "{C234803A-9F11-410B-9C37-64460B62E661}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"id": "{3E6BEFC0-0B9C-43CB-B5DD-C05AA8F5CE84}", | ||
"com_objects": { | ||
"engine": { | ||
"iid": "{49AD676E-628C-4350-BEBF-14CEFD2C825A}", | ||
"libid": "{D20C29B1-E66F-4909-BBF4-3DD88748CDA5}", | ||
"clsid": "{495D67D8-62D1-43A2-8CC8-ADCE5D2C475A}" | ||
}, | ||
"toolbar": { | ||
"iid": "{9220A757-3D61-4D7F-B689-D026B798391C}", | ||
"clsid": "{926BA7D5-3DE5-4D1A-BCC5-DD26A5986E1C}" | ||
}, | ||
"bho": { | ||
"iid": "{3EE7EF1D-0B50-43CF-8498-4C5AE8F5EA84}", | ||
"libid": "{0DF5C9A4-4324-4709-A7FC-D80E80B6D16C}", | ||
"clsid": "{3E6BEFC0-0B9C-43CB-B5DD-C05AA8F5CE84}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"id": "http://kangoextensions.com/extensions/internationalizationdemo/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"developer_id": "YOUR_SAFARI_DEVELOPER_ID", | ||
"id": "com.kangoextensions.internationalizationdemo" | ||
} |
Oops, something went wrong.