Skip to content

Instantly share code, notes, and snippets.

@todvora
Created April 14, 2016 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todvora/b3afde0470b7be93e596c8a0be7af929 to your computer and use it in GitHub Desktop.
Save todvora/b3afde0470b7be93e596c8a0be7af929 to your computer and use it in GitHub Desktop.
Send to Kindle diff between 1.0.2.75 and 1.0.2.76. More details: http://www.tomas-dvorak.cz/posts/dear-amazon-let-me-fix-that-for-you/
diff --git a/META-INF/manifest.mf b/META-INF/manifest.mf
index 8eb1362..49c8475 100644
--- a/META-INF/manifest.mf
+++ b/META-INF/manifest.mf
@@ -2,8 +2,8 @@ Manifest-Version: 1.0
Name: install.rdf
Digest-Algorithms: MD5 SHA1
-MD5-Digest: MjbpC9Ic30mQUVP+1HnYLg==
-SHA1-Digest: UtuAzxG6Ya00Agg36+3+zYL00lM=
+MD5-Digest: GQxWeKUPcQv+3A6RXhDgVA==
+SHA1-Digest: Ld64Ar37pGXaqNtTgeDAtVlvdaM=
Name: chrome.manifest
Digest-Algorithms: MD5 SHA1
@@ -17,13 +17,13 @@ SHA1-Digest: Kni0oeLxQePkdKBf36BxoRf7pUE=
Name: content/send-to-kindle-logic.js
Digest-Algorithms: MD5 SHA1
-MD5-Digest: qIJTGOypYqn92S9rN+D87A==
-SHA1-Digest: D/OERk2W4eBi4Bz3HNTcqnnOFNo=
+MD5-Digest: /hqphy9kHWRGpoQetUxA5g==
+SHA1-Digest: RinsuGOaNpouj5AK9B9MTWYw6jA=
Name: content/send-to-kindle.js
Digest-Algorithms: MD5 SHA1
-MD5-Digest: 3ud/hL0cKiYkn1GkAyN4hw==
-SHA1-Digest: Mk4Q34IpSE1nKQfWxCVU/JdClwo=
+MD5-Digest: cK38G72AkxBYt7CqTiJ1OQ==
+SHA1-Digest: +UyDIaZAN+AlO4nWTLQCbyNpJYc=
Name: content/send-to-kindle.xul
Digest-Algorithms: MD5 SHA1
@@ -47,8 +47,8 @@ SHA1-Digest: ZJIMZmNIv7p83/mi7F80sWkwx1s=
Name: content/modules/send-to-kindle.jsm
Digest-Algorithms: MD5 SHA1
-MD5-Digest: nOpuJcIZ8yrYwBNkOQhteg==
-SHA1-Digest: 0l9NBi7VgOaCZHC2hWJMzZ+g6OU=
+MD5-Digest: JoCusScUDlqzFvuCHkV7rQ==
+SHA1-Digest: ivyTKxRf+nWnXo13GeNcXaeEueU=
Name: content/workers/send-to-kindle-service-worker.js
Digest-Algorithms: MD5 SHA1
diff --git a/META-INF/mozilla.rsa b/META-INF/mozilla.rsa
index 1fd81ff..7f70cb7 100644
Binary files a/META-INF/mozilla.rsa and b/META-INF/mozilla.rsa differ
diff --git a/META-INF/mozilla.sf b/META-INF/mozilla.sf
index 31a92be..ec26cd0 100644
--- a/META-INF/mozilla.sf
+++ b/META-INF/mozilla.sf
@@ -1,4 +1,4 @@
Signature-Version: 1.0
-MD5-Digest-Manifest: SxpPSm4IIfh0vFI6sHNH4g==
-SHA1-Digest-Manifest: 66R8RLffvih1MeKBwEAK6HdIpa8=
+MD5-Digest-Manifest: ITw+/8X1dtFGHuMRcXxfLQ==
+SHA1-Digest-Manifest: K1T/1f4En92e1SuAQ4SY6a0kBZg=
diff --git a/content/modules/send-to-kindle.jsm b/content/modules/send-to-kindle.jsm
index 05c7a35..3e2f696 100644
--- a/content/modules/send-to-kindle.jsm
+++ b/content/modules/send-to-kindle.jsm
@@ -9,7 +9,7 @@ var Ci = Components.interfaces;
var Cu = Components.utils;
// -------- JavaScript Modules --------
-Cu["import"]('resource://gre/modules/devtools/Console.jsm');
+Cu["import"]("resource://gre/modules/Console.jsm");
Cu["import"]("resource://gre/modules/Services.jsm");
Cu["import"]("resource://gre/modules/FileUtils.jsm");
Cu["import"]("resource://gre/modules/AddonManager.jsm");
@@ -192,7 +192,8 @@ var S2K = {
createXMLHttpRequest: function () {
// Hint: Need to use the XMLHttpRequest from the current window to workaround bug in FF for Windows/Unix
// causing the internal XHR to fail on cross-domain requests.
- return Services.wm.getMostRecentWindow("navigator:browser").XMLHttpRequest();
+
+ return new (Services.wm.getMostRecentWindow("navigator:browser")).XMLHttpRequest();
},
// -------- Threading --------
diff --git a/content/send-to-kindle-logic.js b/content/send-to-kindle-logic.js
index 0aea694..e759277 100644
--- a/content/send-to-kindle-logic.js
+++ b/content/send-to-kindle-logic.js
@@ -1,6 +1,6 @@
/**
* Send To Kindle :: Browser Extension
- * Version 1.0.2.75 built on 2015-09-08 22:57:15 UTC.
+ * Version 1.0.2.76 built on 2016-04-07 17:33:14 UTC.
*
* Copyright (c) 2012 Amazon.com, Inc. All rights reserved.
*
@@ -8,7 +8,7 @@
(function() {
if (window.$SendToKindle === undefined && window.top === window) {
-var $SendToKindle = window.$SendToKindle = {"extensionUrl":"", "lowQualityAction":"ASK", "platformInfo":{"name":"s2k-extractor", "version":"1.0.2.75", "platform":"unknown", "ref":"ukn", "versionId":75}, extractionProcessTimeoutInMillis:30 * 1E3};
+var $SendToKindle = window.$SendToKindle = {"extensionUrl":"", "lowQualityAction":"ASK", "platformInfo":{"name":"s2k-extractor", "version":"1.0.2.76", "platform":"unknown", "ref":"ukn", "versionId":76}, extractionProcessTimeoutInMillis:30 * 1E3};
$SendToKindle.getActiveWindow = function() {
return window
};
@@ -2130,7 +2130,7 @@ if(window.chrome !== undefined) {
}.bind(this))
};
$SendToKindle.extensionUrl = "resource://sendtokindle";
- $SendToKindle.platformInfo = {"name":"firefox_ocs", "version":"1.0.2.75", "versionId":75, "platform":"firefox-1.0.2.75", "ref":"moz"};
+ $SendToKindle.platformInfo = {"name":"firefox_ocs", "version":"1.0.2.76", "versionId":76, "platform":"firefox-1.0.2.76", "ref":"moz"};
$SendToKindle.onPlatformMessage = function(event) {
event = JSON.parse(event);
if(event.state === "bootstrap-data") {
@@ -2156,7 +2156,7 @@ if(window.chrome !== undefined) {
this.isInjected = false;
this.isGuidRefresh = false;
this.service = new $SendToKindle.Service;
- this.platformInfo = {"name":"firefox_preview", "version":"1.0.2.75", "versionId":75, "platform":"firefox-1.0.2.75", "ref":"moz", "metrics":"emit-metrics"};
+ this.platformInfo = {"name":"firefox_preview", "version":"1.0.2.76", "versionId":76, "platform":"firefox-1.0.2.76", "ref":"moz", "metrics":"emit-metrics"};
$SendToKindle.platformInfo = this.platformInfo
};
$SendToKindle.Preview.prototype = {connect:function() {
diff --git a/content/send-to-kindle.js b/content/send-to-kindle.js
index bce2181..69633f6 100644
--- a/content/send-to-kindle.js
+++ b/content/send-to-kindle.js
@@ -3,7 +3,7 @@
*/
(function() {
Components.utils["import"]("chrome://sendtokindle/content/modules/send-to-kindle.jsm");
- var $S2K = window.$SendToKindle = {SETUP_REFTAG:"stk_moz_setup_ddown", PLATFORM_INFO:{"name":"firefox_ocs", "version":"1.0.2.75", "platform":"firefox-1.0.2.75", "ref":"moz"}, isContentSelected:false, btnToolbar:null, mnuPopUp:null, mnuHistory:null, btnSendToKindle:null, btnPreviewAndSend:null, btnSendSelectedText:null, btnHistory:null, btnSettings:null, btnHistoryClear:null, btnHistoryClose:null, bootstrap:function() {
+ var $S2K = window.$SendToKindle = {SETUP_REFTAG:"stk_moz_setup_ddown", PLATFORM_INFO:{"name":"firefox_ocs", "version":"1.0.2.76", "platform":"firefox-1.0.2.76", "ref":"moz"}, isContentSelected:false, btnToolbar:null, mnuPopUp:null, mnuHistory:null, btnSendToKindle:null, btnPreviewAndSend:null, btnSendSelectedText:null, btnHistory:null, btnSettings:null, btnHistoryClear:null, btnHistoryClose:null, bootstrap:function() {
window.removeEventListener("load", $S2K.bootstrap, false);
$S2K.loadUI();
S2K.init();
diff --git a/install.rdf b/install.rdf
index 1099483..8c7672c 100644
--- a/install.rdf
+++ b/install.rdf
@@ -2,7 +2,7 @@
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>sendtokindle@amazon.com</em:id>
- <em:version>1.0.2.75</em:version>
+ <em:version>1.0.2.76</em:version>
<em:type>2</em:type>
<em:targetApplication>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment