diff --git a/CHANGELOG.md b/CHANGELOG.md
index 28cb46b14..a5052605a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
### v1.11.32
+**v1.11.32.3** *(2016-05-05)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.32.3/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.32.3/builds/4chan-X-noupdate.crx "Chromium version")]
+- Fix bug in crash reporting from v1.11.32.2.
+
**v1.11.32.2** *(2016-05-04)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.32.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.32.2/builds/4chan-X-noupdate.crx "Chromium version")]
- Support /s4s/ fortune text and new /qst/ BBCode tags in posts fetched from archive.
- Improve crash reports.
diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx
index 7be90b582..f23eb2382 100644
Binary files a/builds/4chan-X-beta.crx and b/builds/4chan-X-beta.crx differ
diff --git a/builds/4chan-X-beta.meta.js b/builds/4chan-X-beta.meta.js
index d85a70745..a3e5165a2 100644
--- a/builds/4chan-X-beta.meta.js
+++ b/builds/4chan-X-beta.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
-// @version 1.11.32.2
+// @version 1.11.32.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js
index 6ed0f7169..8e456789e 100644
--- a/builds/4chan-X-beta.user.js
+++ b/builds/4chan-X-beta.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
-// @version 1.11.32.2
+// @version 1.11.32.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.32.2',
+ VERSION: '1.11.32.3',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -22688,20 +22688,28 @@ Main = (function() {
return [message, error, context];
},
reportLink: function(errors) {
- var data, details, ref, title, url;
+ var addDetails, data, details, title, url;
data = errors[0];
title = data.message;
if (errors.length > 1) {
title += " (+" + (errors.length - 1) + " other errors)";
}
- details = "[Please describe the steps needed to reproduce this error.]\n\nScript: 4chan X ccd0 v" + g.VERSION + " " + $.platform + "\nUser agent: " + navigator.userAgent + "\nURL: " + location.href + "\n\n" + data.error + "\n" + (((ref = data.error.stack) != null ? ref.replace(data.error.toString(), '').trim() : void 0) || '');
+ details = '';
+ addDetails = function(text) {
+ if (!(encodeURIComponent(title + details + text + '\n').length > 8110)) {
+ return details += text + '\n';
+ }
+ };
+ addDetails("[Please describe the steps needed to reproduce this error.]\n\nScript: 4chan X ccd0 v" + g.VERSION + " " + $.platform + "\nUser agent: " + navigator.userAgent + "\nURL: " + location.href);
+ addDetails('\n' + data.error);
+ if (data.error.stack) {
+ addDetails(data.error.stack.replace(data.error.toString(), '').trim());
+ }
if (data.html) {
- details += "\n\n" + data.html;
+ addDetails('\n' + data.html);
}
details = details.replace(/file:\/{3}.+\//g, '');
- details = details.trim();
url = "https://gitreports.com/issue/ccd0/4chan-x?issue_title=" + (encodeURIComponent(title)) + "&details=" + (encodeURIComponent(details));
- url = url.slice(0, 8200);
return {
innerHTML: " [report]"
};
diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx
index eee054f3e..8c15d0d8e 100644
Binary files a/builds/4chan-X-noupdate.crx and b/builds/4chan-X-noupdate.crx differ
diff --git a/builds/4chan-X-noupdate.user.js b/builds/4chan-X-noupdate.user.js
index 43f8152fd..dd205e094 100644
--- a/builds/4chan-X-noupdate.user.js
+++ b/builds/4chan-X-noupdate.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.32.2
+// @version 1.11.32.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.32.2',
+ VERSION: '1.11.32.3',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -22688,20 +22688,28 @@ Main = (function() {
return [message, error, context];
},
reportLink: function(errors) {
- var data, details, ref, title, url;
+ var addDetails, data, details, title, url;
data = errors[0];
title = data.message;
if (errors.length > 1) {
title += " (+" + (errors.length - 1) + " other errors)";
}
- details = "[Please describe the steps needed to reproduce this error.]\n\nScript: 4chan X ccd0 v" + g.VERSION + " " + $.platform + "\nUser agent: " + navigator.userAgent + "\nURL: " + location.href + "\n\n" + data.error + "\n" + (((ref = data.error.stack) != null ? ref.replace(data.error.toString(), '').trim() : void 0) || '');
+ details = '';
+ addDetails = function(text) {
+ if (!(encodeURIComponent(title + details + text + '\n').length > 8110)) {
+ return details += text + '\n';
+ }
+ };
+ addDetails("[Please describe the steps needed to reproduce this error.]\n\nScript: 4chan X ccd0 v" + g.VERSION + " " + $.platform + "\nUser agent: " + navigator.userAgent + "\nURL: " + location.href);
+ addDetails('\n' + data.error);
+ if (data.error.stack) {
+ addDetails(data.error.stack.replace(data.error.toString(), '').trim());
+ }
if (data.html) {
- details += "\n\n" + data.html;
+ addDetails('\n' + data.html);
}
details = details.replace(/file:\/{3}.+\//g, '');
- details = details.trim();
url = "https://gitreports.com/issue/ccd0/4chan-x?issue_title=" + (encodeURIComponent(title)) + "&details=" + (encodeURIComponent(details));
- url = url.slice(0, 8200);
return {
innerHTML: " [report]"
};
diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx
index 89548cedc..bdf8ee735 100644
Binary files a/builds/4chan-X.crx and b/builds/4chan-X.crx differ
diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js
index aba8b2999..4dc39a1fc 100644
--- a/builds/4chan-X.meta.js
+++ b/builds/4chan-X.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.32.2
+// @version 1.11.32.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index 76a1d3d45..0009c05db 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.32.2
+// @version 1.11.32.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.32.2',
+ VERSION: '1.11.32.3',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -22688,20 +22688,28 @@ Main = (function() {
return [message, error, context];
},
reportLink: function(errors) {
- var data, details, ref, title, url;
+ var addDetails, data, details, title, url;
data = errors[0];
title = data.message;
if (errors.length > 1) {
title += " (+" + (errors.length - 1) + " other errors)";
}
- details = "[Please describe the steps needed to reproduce this error.]\n\nScript: 4chan X ccd0 v" + g.VERSION + " " + $.platform + "\nUser agent: " + navigator.userAgent + "\nURL: " + location.href + "\n\n" + data.error + "\n" + (((ref = data.error.stack) != null ? ref.replace(data.error.toString(), '').trim() : void 0) || '');
+ details = '';
+ addDetails = function(text) {
+ if (!(encodeURIComponent(title + details + text + '\n').length > 8110)) {
+ return details += text + '\n';
+ }
+ };
+ addDetails("[Please describe the steps needed to reproduce this error.]\n\nScript: 4chan X ccd0 v" + g.VERSION + " " + $.platform + "\nUser agent: " + navigator.userAgent + "\nURL: " + location.href);
+ addDetails('\n' + data.error);
+ if (data.error.stack) {
+ addDetails(data.error.stack.replace(data.error.toString(), '').trim());
+ }
if (data.html) {
- details += "\n\n" + data.html;
+ addDetails('\n' + data.html);
}
details = details.replace(/file:\/{3}.+\//g, '');
- details = details.trim();
url = "https://gitreports.com/issue/ccd0/4chan-x?issue_title=" + (encodeURIComponent(title)) + "&details=" + (encodeURIComponent(details));
- url = url.slice(0, 8200);
return {
innerHTML: " [report]"
};
diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip
index 7ea3eb960..1c4fa3ed2 100644
Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ
diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml
index a3d198808..151216346 100644
--- a/builds/updates-beta.xml
+++ b/builds/updates-beta.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/builds/updates.xml b/builds/updates.xml
index 064de4897..e3249c6e0 100644
--- a/builds/updates.xml
+++ b/builds/updates.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/version.json b/version.json
index 8d93b2659..a734a6b05 100644
--- a/version.json
+++ b/version.json
@@ -1,4 +1,4 @@
{
- "version": "1.11.32.2",
- "date": "2016-05-04T21:26:47.510Z"
+ "version": "1.11.32.3",
+ "date": "2016-05-05T00:15:14.998Z"
}
\ No newline at end of file