diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0b2cd7f91..91126661b 100755
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+### v1.9.2.7
+*2014-09-10*
+
+**ccd0**
+- Quote fetching bugfix.
+
### v1.9.2.6
*2014-09-09*
diff --git a/LICENSE b/LICENSE
index 5c5cf07b1..a87ff1da1 100755
--- a/LICENSE
+++ b/LICENSE
@@ -1,5 +1,5 @@
/*
-* 4chan X - Version 1.9.2.6
+* 4chan X - Version 1.9.2.7
*
* Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx
index 280765ddf..0b984bc68 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 0277509b8..ccad62541 100644
--- a/builds/4chan-X-beta.meta.js
+++ b/builds/4chan-X-beta.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.9.2.6
+// @version 1.9.2.7
// @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 a3c3d3dfb..16e753fbf 100644
--- a/builds/4chan-X-beta.user.js
+++ b/builds/4chan-X-beta.user.js
@@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
-// @version 1.9.2.6
+// @version 1.9.2.7
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -24,7 +24,7 @@
// ==/UserScript==
/*
-* 4chan X - Version 1.9.2.6
+* 4chan X - Version 1.9.2.7
*
* Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
@@ -376,7 +376,7 @@
doc = d.documentElement;
g = {
- VERSION: '1.9.2.6',
+ VERSION: '1.9.2.7',
NAMESPACE: '4chan X.',
NAME: '4chan X',
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
@@ -530,6 +530,7 @@
cb.call(this, e);
}
this.evt = e;
+ this.cached = true;
return delete this.callbacks;
});
$.on(req, 'abort error', rm);
@@ -3463,7 +3464,7 @@
return $.event('PostsInserted');
},
fetchedPost: function(req, boardID, threadID, postID, root, context) {
- var board, post, posts, status, thread, _i, _len;
+ var api, board, post, posts, status, thread, _i, _len;
if (post = g.posts["" + boardID + "." + postID]) {
Get.insert(post, root, context);
return;
@@ -3485,6 +3486,16 @@
}
}
if (post.no !== postID) {
+ if (req.cached) {
+ api = "//a.4cdn.org/" + boardID + "/thread/" + threadID + ".json";
+ $.cleanCache(function(url) {
+ return url === api;
+ });
+ $.cache(api, function() {
+ return Get.fetchedPost(this, boardID, threadID, postID, root, context);
+ });
+ return;
+ }
if (!Get.archivedPost(boardID, postID, root, context)) {
$.addClass(root, 'warning');
root.textContent = "Post No." + postID + " was not found.";
@@ -12950,7 +12961,7 @@
className: 'dialog'
});
$.extend(dialog, {
- innerHTML: "
"
+ innerHTML: ""
});
$.on($('.export', Settings.dialog), 'click', Settings["export"]);
$.on($('.import', Settings.dialog), 'click', Settings["import"]);
diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx
index 01d9b806f..8140f855f 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 7700ab80d..a172ea36e 100644
--- a/builds/4chan-X-noupdate.user.js
+++ b/builds/4chan-X-noupdate.user.js
@@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
-// @version 1.9.2.6
+// @version 1.9.2.7
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -23,7 +23,7 @@
// ==/UserScript==
/*
-* 4chan X - Version 1.9.2.6
+* 4chan X - Version 1.9.2.7
*
* Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
@@ -375,7 +375,7 @@
doc = d.documentElement;
g = {
- VERSION: '1.9.2.6',
+ VERSION: '1.9.2.7',
NAMESPACE: '4chan X.',
NAME: '4chan X',
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
@@ -529,6 +529,7 @@
cb.call(this, e);
}
this.evt = e;
+ this.cached = true;
return delete this.callbacks;
});
$.on(req, 'abort error', rm);
@@ -3462,7 +3463,7 @@
return $.event('PostsInserted');
},
fetchedPost: function(req, boardID, threadID, postID, root, context) {
- var board, post, posts, status, thread, _i, _len;
+ var api, board, post, posts, status, thread, _i, _len;
if (post = g.posts["" + boardID + "." + postID]) {
Get.insert(post, root, context);
return;
@@ -3484,6 +3485,16 @@
}
}
if (post.no !== postID) {
+ if (req.cached) {
+ api = "//a.4cdn.org/" + boardID + "/thread/" + threadID + ".json";
+ $.cleanCache(function(url) {
+ return url === api;
+ });
+ $.cache(api, function() {
+ return Get.fetchedPost(this, boardID, threadID, postID, root, context);
+ });
+ return;
+ }
if (!Get.archivedPost(boardID, postID, root, context)) {
$.addClass(root, 'warning');
root.textContent = "Post No." + postID + " was not found.";
@@ -12949,7 +12960,7 @@
className: 'dialog'
});
$.extend(dialog, {
- innerHTML: ""
+ innerHTML: ""
});
$.on($('.export', Settings.dialog), 'click', Settings["export"]);
$.on($('.import', Settings.dialog), 'click', Settings["import"]);
diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx
index b21f8bf50..6396f2582 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 d5bbec8bd..5fb9aecdf 100644
--- a/builds/4chan-X.meta.js
+++ b/builds/4chan-X.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.9.2.6
+// @version 1.9.2.7
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index 0705ee285..df6648f66 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
-// @version 1.9.2.6
+// @version 1.9.2.7
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -24,7 +24,7 @@
// ==/UserScript==
/*
-* 4chan X - Version 1.9.2.6
+* 4chan X - Version 1.9.2.7
*
* Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
@@ -376,7 +376,7 @@
doc = d.documentElement;
g = {
- VERSION: '1.9.2.6',
+ VERSION: '1.9.2.7',
NAMESPACE: '4chan X.',
NAME: '4chan X',
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
@@ -530,6 +530,7 @@
cb.call(this, e);
}
this.evt = e;
+ this.cached = true;
return delete this.callbacks;
});
$.on(req, 'abort error', rm);
@@ -3463,7 +3464,7 @@
return $.event('PostsInserted');
},
fetchedPost: function(req, boardID, threadID, postID, root, context) {
- var board, post, posts, status, thread, _i, _len;
+ var api, board, post, posts, status, thread, _i, _len;
if (post = g.posts["" + boardID + "." + postID]) {
Get.insert(post, root, context);
return;
@@ -3485,6 +3486,16 @@
}
}
if (post.no !== postID) {
+ if (req.cached) {
+ api = "//a.4cdn.org/" + boardID + "/thread/" + threadID + ".json";
+ $.cleanCache(function(url) {
+ return url === api;
+ });
+ $.cache(api, function() {
+ return Get.fetchedPost(this, boardID, threadID, postID, root, context);
+ });
+ return;
+ }
if (!Get.archivedPost(boardID, postID, root, context)) {
$.addClass(root, 'warning');
root.textContent = "Post No." + postID + " was not found.";
@@ -12950,7 +12961,7 @@
className: 'dialog'
});
$.extend(dialog, {
- innerHTML: ""
+ innerHTML: ""
});
$.on($('.export', Settings.dialog), 'click', Settings["export"]);
$.on($('.import', Settings.dialog), 'click', Settings["import"]);
diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip
index 8ba5c7e10..aa47b2070 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 a81554a56..d5246aa51 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 034cd2da0..626aef6d4 100644
--- a/builds/updates.xml
+++ b/builds/updates.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/package.json b/package.json
index f6ceafee7..76f3fe848 100755
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"description": "Cross-browser userscript for maximum lurking on 4chan.",
"meta": {
"name": "4chan X",
- "version": "1.9.2.6",
+ "version": "1.9.2.7",
"repo": "https://github.com/ccd0/4chan-x/",
"page": "https://github.com/ccd0/4chan-x",
"downloads": "https://ccd0.github.io/4chan-x/builds/",