Permalink
Browse files

Built extension for the first time

  • Loading branch information...
1 parent 4b32d0c commit 4a358c2f5c4062798e67780fba26cb5a0ac1d825 @barnabywalters committed Dec 23, 2012
Showing with 3,037 additions and 0 deletions.
  1. +16 −0 certificates/chrome.pem
  2. BIN output/chrome/.DS_Store
  3. +78 −0 output/chrome/URI.js
  4. +35 −0 output/chrome/background.html
  5. +63 −0 output/chrome/content_script.js
  6. +21 −0 output/chrome/extension_info.json
  7. BIN output/chrome/icons/button.png
  8. BIN output/chrome/icons/icon100.png
  9. BIN output/chrome/icons/icon128.png
  10. BIN output/chrome/icons/icon32.png
  11. BIN output/chrome/icons/icon48.png
  12. +24 −0 output/chrome/includes/content.js
  13. +2 −0 output/chrome/jquery-1.8.3.min.js
  14. +7 −0 output/chrome/kango-ui/browser_button.js
  15. +6 −0 output/chrome/kango-ui/context_menu.js
  16. +8 −0 output/chrome/kango-ui/kango_api.js
  17. +6 −0 output/chrome/kango-ui/notifications.js
  18. +5 −0 output/chrome/kango-ui/options.js
  19. +17 −0 output/chrome/kango-ui/remote_popup_host.html
  20. +7 −0 output/chrome/kango-ui/remote_popup_host.js
  21. +14 −0 output/chrome/kango-ui/ui.js
  22. +7 −0 output/chrome/kango/backgroundscript_engine.js
  23. +26 −0 output/chrome/kango/browser.js
  24. +5 −0 output/chrome/kango/console.js
  25. +13 −0 output/chrome/kango/i18n.js
  26. +5 −0 output/chrome/kango/initialize.js
  27. +10 −0 output/chrome/kango/invoke_async_module.js
  28. +5 −0 output/chrome/kango/io.js
  29. +7 −0 output/chrome/kango/jsonstorage.js
  30. +18 −0 output/chrome/kango/kango.js
  31. +5 −0 output/chrome/kango/lang.js
  32. +7 −0 output/chrome/kango/message_target_module.js
  33. +7 −0 output/chrome/kango/messaging.js
  34. +5 −0 output/chrome/kango/storage.js
  35. +6 −0 output/chrome/kango/userscript_client.js
  36. +11 −0 output/chrome/kango/userscript_engine.js
  37. +8 −0 output/chrome/kango/xhr.js
  38. +13 −0 output/chrome/main.js
  39. +46 −0 output/chrome/manifest.json
  40. +69 −0 output/chrome/options.html
  41. +24 −0 output/chrome/options.js
  42. +1 −0 output/chrome/readme.txt
  43. +3 −0 output/firefox/chrome.manifest
  44. BIN output/firefox/chrome/content/.DS_Store
  45. +78 −0 output/firefox/chrome/content/URI.js
  46. +8 −0 output/firefox/chrome/content/background.html
  47. +52 −0 output/firefox/chrome/content/content.xul
  48. +63 −0 output/firefox/chrome/content/content_script.js
  49. +21 −0 output/firefox/chrome/content/extension_info.json
  50. BIN output/firefox/chrome/content/icons/button.png
  51. BIN output/firefox/chrome/content/icons/icon100.png
  52. BIN output/firefox/chrome/content/icons/icon128.png
  53. BIN output/firefox/chrome/content/icons/icon32.png
  54. BIN output/firefox/chrome/content/icons/icon48.png
  55. +2 −0 output/firefox/chrome/content/jquery-1.8.3.min.js
  56. +7 −0 output/firefox/chrome/content/kango-ui/browser_button.js
  57. +15 −0 output/firefox/chrome/content/kango-ui/contentNotification.tmpl
  58. +126 −0 output/firefox/chrome/content/kango-ui/contentNotificationStyle.tmpl
  59. +24 −0 output/firefox/chrome/content/kango-ui/content_notifications.js
  60. +7 −0 output/firefox/chrome/content/kango-ui/context_menu.js
  61. +8 −0 output/firefox/chrome/content/kango-ui/kango_api.js
  62. +12 −0 output/firefox/chrome/content/kango-ui/notifications.js
  63. +6 −0 output/firefox/chrome/content/kango-ui/options.js
  64. +7 −0 output/firefox/chrome/content/kango-ui/popup.js
  65. +8 −0 output/firefox/chrome/content/kango-ui/popup_window.js
  66. +32 −0 output/firefox/chrome/content/kango-ui/popup_window.xul
  67. BIN output/firefox/chrome/content/kango-ui/theme/bubble/bottom-left.png
  68. BIN output/firefox/chrome/content/kango-ui/theme/bubble/bottom-middle.png
  69. BIN output/firefox/chrome/content/kango-ui/theme/bubble/bottom-right.png
  70. BIN output/firefox/chrome/content/kango-ui/theme/bubble/middle-left.png
  71. BIN output/firefox/chrome/content/kango-ui/theme/bubble/middle-right.png
  72. +64 −0 output/firefox/chrome/content/kango-ui/theme/bubble/style.css
  73. BIN output/firefox/chrome/content/kango-ui/theme/bubble/tail-bottom.png
  74. BIN output/firefox/chrome/content/kango-ui/theme/bubble/tail-left.png
  75. BIN output/firefox/chrome/content/kango-ui/theme/bubble/tail-right.png
  76. BIN output/firefox/chrome/content/kango-ui/theme/bubble/tail-top.png
  77. BIN output/firefox/chrome/content/kango-ui/theme/bubble/top-left.png
  78. BIN output/firefox/chrome/content/kango-ui/theme/bubble/top-middle.png
  79. BIN output/firefox/chrome/content/kango-ui/theme/bubble/top-right.png
  80. +7 −0 output/firefox/chrome/content/kango-ui/toolbar.js
  81. +23 −0 output/firefox/chrome/content/kango-ui/ui.js
  82. +7 −0 output/firefox/chrome/content/kango/backgroundscript_engine.js
  83. +29 −0 output/firefox/chrome/content/kango/browser.js
  84. +5 −0 output/firefox/chrome/content/kango/console.js
  85. +5 −0 output/firefox/chrome/content/kango/content_proxy.js
  86. +13 −0 output/firefox/chrome/content/kango/i18n.js
  87. +5 −0 output/firefox/chrome/content/kango/initialize.js
  88. +10 −0 output/firefox/chrome/content/kango/invoke_async_module.js
  89. +5 −0 output/firefox/chrome/content/kango/io.js
  90. +14 −0 output/firefox/chrome/content/kango/jsonstorage.js
  91. +31 −0 output/firefox/chrome/content/kango/kango.js
  92. +7 −0 output/firefox/chrome/content/kango/lang.js
  93. +7 −0 output/firefox/chrome/content/kango/message_target_module.js
  94. +5 −0 output/firefox/chrome/content/kango/messaging.js
  95. +8 −0 output/firefox/chrome/content/kango/storage.js
  96. +6 −0 output/firefox/chrome/content/kango/uninstall_observer.js
  97. +6 −0 output/firefox/chrome/content/kango/userscript_client.js
  98. +16 −0 output/firefox/chrome/content/kango/userscript_engine.js
  99. +8 −0 output/firefox/chrome/content/kango/xhr.js
  100. +13 −0 output/firefox/chrome/content/main.js
  101. +69 −0 output/firefox/chrome/content/options.html
  102. +24 −0 output/firefox/chrome/content/options.js
  103. +1 −0 output/firefox/chrome/content/readme.txt
  104. +21 −0 output/firefox/install.rdf
  105. BIN output/opera/.DS_Store
  106. +78 −0 output/opera/URI.js
  107. +35 −0 output/opera/background.html
  108. +11 −0 output/opera/config.xml
  109. +63 −0 output/opera/content_script.js
  110. +21 −0 output/opera/extension_info.json
  111. BIN output/opera/icons/button.png
  112. BIN output/opera/icons/icon100.png
  113. BIN output/opera/icons/icon128.png
  114. BIN output/opera/icons/icon32.png
  115. BIN output/opera/icons/icon48.png
  116. +26 −0 output/opera/includes/content.js
  117. +2 −0 output/opera/jquery-1.8.3.min.js
  118. +7 −0 output/opera/kango-ui/browser_button.js
  119. +15 −0 output/opera/kango-ui/contentNotification.tmpl
  120. +126 −0 output/opera/kango-ui/contentNotificationStyle.tmpl
  121. +24 −0 output/opera/kango-ui/content_notifications.js
  122. +6 −0 output/opera/kango-ui/context_menu.js
  123. +8 −0 output/opera/kango-ui/kango_api.js
  124. +12 −0 output/opera/kango-ui/notifications.js
  125. +5 −0 output/opera/kango-ui/options.js
  126. +17 −0 output/opera/kango-ui/remote_popup_host.html
  127. +7 −0 output/opera/kango-ui/remote_popup_host.js
  128. +14 −0 output/opera/kango-ui/ui.js
  129. +7 −0 output/opera/kango/backgroundscript_engine.js
  130. +23 −0 output/opera/kango/browser.js
  131. +5 −0 output/opera/kango/console.js
  132. +13 −0 output/opera/kango/i18n.js
  133. +5 −0 output/opera/kango/initialize.js
  134. +10 −0 output/opera/kango/invoke_async_module.js
  135. +5 −0 output/opera/kango/io.js
  136. +7 −0 output/opera/kango/jsonstorage.js
  137. +18 −0 output/opera/kango/kango.js
  138. +5 −0 output/opera/kango/lang.js
  139. +7 −0 output/opera/kango/message_target_module.js
  140. +6 −0 output/opera/kango/messaging.js
  141. +5 −0 output/opera/kango/storage.js
  142. +6 −0 output/opera/kango/userscript_client.js
  143. +11 −0 output/opera/kango/userscript_engine.js
  144. +8 −0 output/opera/kango/xhr.js
  145. +13 −0 output/opera/main.js
  146. +69 −0 output/opera/options.html
  147. +24 −0 output/opera/options.js
  148. +1 −0 output/opera/readme.txt
  149. BIN output/ownyourcomments_0.9.crx
  150. BIN output/ownyourcomments_0.9.oex
  151. BIN output/ownyourcomments_0.9.xpi
  152. BIN output/safari/ownyourcomments_0.9.safariextension/.DS_Store
  153. +90 −0 output/safari/ownyourcomments_0.9.safariextension/Info.plist
  154. +78 −0 output/safari/ownyourcomments_0.9.safariextension/URI.js
  155. +35 −0 output/safari/ownyourcomments_0.9.safariextension/background.html
  156. +63 −0 output/safari/ownyourcomments_0.9.safariextension/content_script.js
  157. +22 −0 output/safari/ownyourcomments_0.9.safariextension/extension_info.json
  158. BIN output/safari/ownyourcomments_0.9.safariextension/icon.png
  159. BIN output/safari/ownyourcomments_0.9.safariextension/icons/button.png
  160. BIN output/safari/ownyourcomments_0.9.safariextension/icons/icon100.png
  161. BIN output/safari/ownyourcomments_0.9.safariextension/icons/icon128.png
  162. BIN output/safari/ownyourcomments_0.9.safariextension/icons/icon32.png
  163. BIN output/safari/ownyourcomments_0.9.safariextension/icons/icon48.png
  164. +5 −0 output/safari/ownyourcomments_0.9.safariextension/includes/content_init.js
  165. +12 −0 output/safari/ownyourcomments_0.9.safariextension/includes/content_kango.js
  166. +2 −0 output/safari/ownyourcomments_0.9.safariextension/jquery-1.8.3.min.js
  167. +9 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/browser_button.js
  168. +15 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/contentNotification.tmpl
  169. +126 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/contentNotificationStyle.tmpl
  170. +24 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/content_notifications.js
  171. +7 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/context_menu.js
  172. +25 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/kango_api.js
  173. +12 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/notifications.js
  174. +5 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/options.js
  175. +17 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/remote_popup_host.html
  176. +7 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/remote_popup_host.js
  177. +14 −0 output/safari/ownyourcomments_0.9.safariextension/kango-ui/ui.js
  178. +7 −0 output/safari/ownyourcomments_0.9.safariextension/kango/backgroundscript_engine.js
  179. +23 −0 output/safari/ownyourcomments_0.9.safariextension/kango/browser.js
  180. +5 −0 output/safari/ownyourcomments_0.9.safariextension/kango/console.js
  181. +13 −0 output/safari/ownyourcomments_0.9.safariextension/kango/i18n.js
  182. +5 −0 output/safari/ownyourcomments_0.9.safariextension/kango/initialize.js
  183. +10 −0 output/safari/ownyourcomments_0.9.safariextension/kango/invoke_async_module.js
  184. +5 −0 output/safari/ownyourcomments_0.9.safariextension/kango/io.js
  185. +7 −0 output/safari/ownyourcomments_0.9.safariextension/kango/jsonstorage.js
  186. +18 −0 output/safari/ownyourcomments_0.9.safariextension/kango/kango.js
  187. +5 −0 output/safari/ownyourcomments_0.9.safariextension/kango/lang.js
  188. +7 −0 output/safari/ownyourcomments_0.9.safariextension/kango/message_target_module.js
  189. +7 −0 output/safari/ownyourcomments_0.9.safariextension/kango/messaging.js
  190. +5 −0 output/safari/ownyourcomments_0.9.safariextension/kango/storage.js
  191. +6 −0 output/safari/ownyourcomments_0.9.safariextension/kango/userscript_client.js
  192. +11 −0 output/safari/ownyourcomments_0.9.safariextension/kango/userscript_engine.js
  193. +8 −0 output/safari/ownyourcomments_0.9.safariextension/kango/xhr.js
  194. +13 −0 output/safari/ownyourcomments_0.9.safariextension/main.js
  195. +69 −0 output/safari/ownyourcomments_0.9.safariextension/options.html
  196. +24 −0 output/safari/ownyourcomments_0.9.safariextension/options.js
  197. +1 −0 output/safari/ownyourcomments_0.9.safariextension/readme.txt
View
@@ -0,0 +1,16 @@
+-----BEGIN PRIVATE KEY-----
+MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAKmk6UVJ4vmKtw9sz
+2atu8cwbIni4X1q3NsiNJOJ1FFwbZvaoBqGXLuvVutAEkj+R9UBJblKrWTamnMn5N
+HNoN+l8cBOpkjd2wIlatbMV1M33VGyopQUlxU3F2iGAZVDW1D169dBWczZuGO+s9F
+826TousSMUB1vnK7ji3K54PvFAgMBAAECgYBFg80O1nsKtHvU90p5kcF7mu0vB2hN
+A0gjB34x4u28vWw8zDaFB//h7LSaS7PyczguIX06004AIM/fVj6edjtwHsPqx1wCE
+5kuF6026AyM7BbQYj9bwclie3umo7BbO3WYezCRVdX0JlMDXLm9rA6BtI7y4C0sHI
+HV691YMrbcQQJBANt0Gm6QXEerJXTGrOwaZROaWKkMsLeovDDLJym57fMtQ2IG9AU
+vCL/FQXnhDDQ9rRmkX3AH5l/ECxA5qG72RLECQQDF5U0TaV56L+JTPyjJZLNqDYcy
+mPeXCAa2EdGf7u8HfrDFBmi3nMlXeNoIYCo/BBWUMDlwqjVPme4PLDFXHj1VAkBXn
+jVna2/MlYJw61njMm6ksv0vEYgE6/OnL5VFTZy5eJrsqoYHA85kcqc/uCCdQvq3wC
+7yldTe63DXW43qL50hAkEAnjGoBH11tc0zagKSMzPZrEx2J/9Z5JTY8JCb9vKEh4R
+CAK4X5bdiyBbmjE17V/aG3XgTYrndde2B/QUByDd3JQJAKJH7G7uw7yIseL8+KYsC
+LczUGzWe7Qm+c/Sxx8M3H8P7XReZr8ayaHnf9Ae12LBNbqI0B/lEkB+4YYR/cAvO0
+w==
+-----END PRIVATE KEY-----
View
Binary file not shown.
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+ <head>
+ <!-- Kango -->
+ <script src="kango/kango.js" type="text/javascript"></script>
+ <script src="kango/invoke_async_module.js" type="text/javascript"></script>
+ <script src="kango/message_target_module.js" type="text/javascript"></script>
+ <script src="kango/lang.js" type="text/javascript"></script>
+ <script src="kango/storage.js" type="text/javascript"></script>
+ <script src="kango/jsonstorage.js" type="text/javascript"></script>
+ <script src="kango/console.js" type="text/javascript"></script>
+ <script src="kango/xhr.js" type="text/javascript"></script>
+ <script src="kango/browser.js" type="text/javascript"></script>
+ <script src="kango/io.js" type="text/javascript"></script>
+ <script src="kango/i18n.js" type="text/javascript"></script>
+ <script src="kango/messaging.js" type="text/javascript"></script>
+ <script src="kango/userscript_engine.js" type="text/javascript"></script>
+ <script src="kango/backgroundscript_engine.js" type="text/javascript"></script>
+
+ <!-- Kango UI -->
+ <script src="kango-ui/ui.js" type="text/javascript"></script>
+ <script src="kango-ui/browser_button.js" type="text/javascript"></script>
+ <script src="kango-ui/options.js" type="text/javascript"></script>
+ <script src="kango-ui/notifications.js" type="text/javascript"></script>
+ <script src="kango-ui/context_menu.js" type="text/javascript"></script>
+
+ <!-- Modules -->
+
+
+ <!-- Kango Init -->
+ <script src="kango/initialize.js" type="text/javascript"></script>
+ </head>
+ <body>
+ </body>
+</html>
@@ -0,0 +1,63 @@
+// ==UserScript==
+// @name Own Your Comments
+// @include http://*
+// @include https://*
+// @require URI.js
+// @require jquery-1.8.3-min.js
+// ==/UserScript==
+
+var OwnYourComments = (function () {
+ // Private
+ // Utility functions
+ function getOption(key, callback) {
+ kango.invokeAsync('kango.storage.getItem', key, callback);
+ }
+
+ /**
+ * Expands {name} templates with the replace.name, or the empty string
+ */
+ function expandTemplates(postURL, replace) {
+ for (var template in replace) {
+ if (replace[template] == undefined)
+ continue;
+ postURL = postURL.split('{' + template + '}')
+ .join(encodeURIComponent(replace[template].replace(/^\s+|\s+$/g, '')));
+ }
+
+ // replace any unreplaced templates with nothing
+ postURL = postURL.replace(/\{[a-zA-Z0-9_-]+\}/gi, '');
+
+ return postURL;
+ }
+
+ // Content manipuation functions
+ /**
+ * Embeds an Indieweb comments box before Disqus or Livefyre iframes
+ */
+ function embedCommentsBox(url) {
+ $('iframe[data-disqus-uid]').before(function () {
+ var eID = $(this).attr('data-disqus-uid');
+
+ var el = $('iframe').attr('id', 'own-your-comments-embed-' + eID);
+
+ var properties = {
+ url: window.location.href
+ };
+
+ getOption('commentEmbedURL', function (url) {
+ $('#' + eID).attr('src', expandTemplates(url, properties));
+ });
+
+ return el;
+ });
+ }
+
+ // Public
+ return {
+
+ };
+}());
+
+$(document).ready(function () {
+
+});
@@ -0,0 +1,21 @@
+{
+ "kango_version": "1.0.1 final",
+ "content_scripts": [
+ "content_script.js"
+ ],
+ "description": "Own your comments on the web! Provides comment box hijacking so you can retain a copy of your comments on your own site.",
+ "creator": "Barnaby Walters",
+ "background_scripts": [
+ "main.js"
+ ],
+ "homepage_url": "http://indiewebcamp.com/",
+ "version": "0.9",
+ "options_page": "options.html",
+ "browser_button": {
+ "caption": "OYC Config",
+ "tooltipText": "Own Your Comments Config",
+ "icon": "icons/button.png"
+ },
+ "id": "{C5F5B8CE-FB6C-47CD-BDC7-92B8FD7A8BF6}",
+ "name": "Own Your Comments"
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,5 @@
+/*
+Built using Kango - Cross-browser extension framework
+http://kangoextensions.com/
+*/
+kango.ui.OptionsPage=function(){};kango.ui.OptionsPage.prototype=kango.oop.extend(kango.ui.IOptionsPage,{open:function(b){var a=kango.getExtensionInfo();return"undefined"!=typeof a.options_page?(a=kango.io.getExtensionFileUrl(a.options_page),"undefined"!=typeof b&&(a+="#"+b),kango.browser.tabs.create({url:a,focused:!0}),!0):!1}});kango.ui.optionsPage=new kango.ui.OptionsPage;
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+ <head>
+ <style type="text/css">
+ html, body, div, iframe {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ }
+ </style>
+ <script type="text/javascript" src="../kango-ui/kango_api.js"></script>
+ <script type="text/javascript" src="remote_popup_host.js"></script>
+ </head>
+ <body>
+ <div id="container" style="width:100px;height:100px;"></div>
+ </body>
+</html>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 4a358c2

Please sign in to comment.