diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7b0c1eb79..c6f941f5a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
### v1.11.34
+**v1.11.34.4** *(2016-05-18)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.34.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.34.4/builds/4chan-X-noupdate.crx "Chromium version")]
+- Add search by flag to archive link menu.
+
**v1.11.34.3** *(2016-05-18)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.34.3/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.34.3/builds/4chan-X-noupdate.crx "Chromium version")]
- Improve handling of errors due to interaction of 4chan X with ad blockers and NoScript.
diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx
index d2bcae1b1..ddf6bf137 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 1f1921a42..aa775a675 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.34.3
+// @version 1.11.34.4
// @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 b04b3696e..7817e4c4b 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.34.3
+// @version 1.11.34.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.34.3',
+ VERSION: '1.11.34.4',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -5529,7 +5529,7 @@ Post = (function() {
};
function Post(root, thread, board) {
- var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6;
+ var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8;
this.thread = thread;
this.board = board;
this.ID = +root.id.slice(2);
@@ -5553,7 +5553,8 @@ Post = (function() {
tripcode: (ref2 = this.nodes.tripcode) != null ? ref2.textContent : void 0,
uniqueID: (ref3 = this.nodes.uniqueID) != null ? ref3.firstElementChild.textContent : void 0,
capcode: (ref4 = this.nodes.capcode) != null ? ref4.textContent.replace('## ', '') : void 0,
- flag: (ref5 = this.nodes.flag) != null ? ref5.title : void 0,
+ flagCode: (ref5 = this.nodes.flag) != null ? (ref6 = ref5.className.match(/flag-(\w+)/)) != null ? ref6[1].toUpperCase() : void 0 : void 0,
+ flag: (ref7 = this.nodes.flag) != null ? ref7.title : void 0,
date: this.nodes.date ? new Date(this.nodes.date.dataset.utc * 1000) : void 0
};
this.parseComment();
@@ -5565,9 +5566,9 @@ Post = (function() {
if (g.posts[this.fullID]) {
this.isRebuilt = true;
this.clones = g.posts[this.fullID].clones;
- ref6 = this.clones;
- for (j = 0, len = ref6.length; j < len; j++) {
- clone = ref6[j];
+ ref8 = this.clones;
+ for (j = 0, len = ref8.length; j < len; j++) {
+ clone = ref8[j];
clone.origin = this;
}
}
@@ -13852,7 +13853,7 @@ ArchiveLink = (function() {
},
subEntries: []
};
- ref1 = [['Post', 'post'], ['Name', 'name'], ['Tripcode', 'tripcode'], ['Capcode', 'capcode'], ['Subject', 'subject'], ['Filename', 'filename'], ['Image MD5', 'MD5']];
+ ref1 = [['Post', 'post'], ['Name', 'name'], ['Tripcode', 'tripcode'], ['Capcode', 'capcode'], ['Subject', 'subject'], ['Flag', 'country'], ['Filename', 'filename'], ['Image MD5', 'MD5']];
for (i = 0, len = ref1.length; i < len; i++) {
type = ref1[i];
entry.subEntries.push(this.createSubEntry(type[0], type[1]));
@@ -13876,7 +13877,7 @@ ArchiveLink = (function() {
return true;
} : function(post) {
var value;
- value = Filter[type](post);
+ value = type === 'country' ? post.info.flagCode : Filter[type](post);
if (!value) {
return false;
}
diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx
index 1e1a09a7d..454536f14 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 725c884f8..38b7cc6f1 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.34.3
+// @version 1.11.34.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.34.3',
+ VERSION: '1.11.34.4',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -5529,7 +5529,7 @@ Post = (function() {
};
function Post(root, thread, board) {
- var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6;
+ var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8;
this.thread = thread;
this.board = board;
this.ID = +root.id.slice(2);
@@ -5553,7 +5553,8 @@ Post = (function() {
tripcode: (ref2 = this.nodes.tripcode) != null ? ref2.textContent : void 0,
uniqueID: (ref3 = this.nodes.uniqueID) != null ? ref3.firstElementChild.textContent : void 0,
capcode: (ref4 = this.nodes.capcode) != null ? ref4.textContent.replace('## ', '') : void 0,
- flag: (ref5 = this.nodes.flag) != null ? ref5.title : void 0,
+ flagCode: (ref5 = this.nodes.flag) != null ? (ref6 = ref5.className.match(/flag-(\w+)/)) != null ? ref6[1].toUpperCase() : void 0 : void 0,
+ flag: (ref7 = this.nodes.flag) != null ? ref7.title : void 0,
date: this.nodes.date ? new Date(this.nodes.date.dataset.utc * 1000) : void 0
};
this.parseComment();
@@ -5565,9 +5566,9 @@ Post = (function() {
if (g.posts[this.fullID]) {
this.isRebuilt = true;
this.clones = g.posts[this.fullID].clones;
- ref6 = this.clones;
- for (j = 0, len = ref6.length; j < len; j++) {
- clone = ref6[j];
+ ref8 = this.clones;
+ for (j = 0, len = ref8.length; j < len; j++) {
+ clone = ref8[j];
clone.origin = this;
}
}
@@ -13852,7 +13853,7 @@ ArchiveLink = (function() {
},
subEntries: []
};
- ref1 = [['Post', 'post'], ['Name', 'name'], ['Tripcode', 'tripcode'], ['Capcode', 'capcode'], ['Subject', 'subject'], ['Filename', 'filename'], ['Image MD5', 'MD5']];
+ ref1 = [['Post', 'post'], ['Name', 'name'], ['Tripcode', 'tripcode'], ['Capcode', 'capcode'], ['Subject', 'subject'], ['Flag', 'country'], ['Filename', 'filename'], ['Image MD5', 'MD5']];
for (i = 0, len = ref1.length; i < len; i++) {
type = ref1[i];
entry.subEntries.push(this.createSubEntry(type[0], type[1]));
@@ -13876,7 +13877,7 @@ ArchiveLink = (function() {
return true;
} : function(post) {
var value;
- value = Filter[type](post);
+ value = type === 'country' ? post.info.flagCode : Filter[type](post);
if (!value) {
return false;
}
diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx
index b7f548e10..6ff7a10ff 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 62dcf7d53..36f704224 100644
--- a/builds/4chan-X.meta.js
+++ b/builds/4chan-X.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.34.3
+// @version 1.11.34.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index c545d285f..c5cbfcf72 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.34.3
+// @version 1.11.34.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -134,7 +134,7 @@ docSet = function() {
};
g = {
- VERSION: '1.11.34.3',
+ VERSION: '1.11.34.4',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -5529,7 +5529,7 @@ Post = (function() {
};
function Post(root, thread, board) {
- var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6;
+ var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8;
this.thread = thread;
this.board = board;
this.ID = +root.id.slice(2);
@@ -5553,7 +5553,8 @@ Post = (function() {
tripcode: (ref2 = this.nodes.tripcode) != null ? ref2.textContent : void 0,
uniqueID: (ref3 = this.nodes.uniqueID) != null ? ref3.firstElementChild.textContent : void 0,
capcode: (ref4 = this.nodes.capcode) != null ? ref4.textContent.replace('## ', '') : void 0,
- flag: (ref5 = this.nodes.flag) != null ? ref5.title : void 0,
+ flagCode: (ref5 = this.nodes.flag) != null ? (ref6 = ref5.className.match(/flag-(\w+)/)) != null ? ref6[1].toUpperCase() : void 0 : void 0,
+ flag: (ref7 = this.nodes.flag) != null ? ref7.title : void 0,
date: this.nodes.date ? new Date(this.nodes.date.dataset.utc * 1000) : void 0
};
this.parseComment();
@@ -5565,9 +5566,9 @@ Post = (function() {
if (g.posts[this.fullID]) {
this.isRebuilt = true;
this.clones = g.posts[this.fullID].clones;
- ref6 = this.clones;
- for (j = 0, len = ref6.length; j < len; j++) {
- clone = ref6[j];
+ ref8 = this.clones;
+ for (j = 0, len = ref8.length; j < len; j++) {
+ clone = ref8[j];
clone.origin = this;
}
}
@@ -13852,7 +13853,7 @@ ArchiveLink = (function() {
},
subEntries: []
};
- ref1 = [['Post', 'post'], ['Name', 'name'], ['Tripcode', 'tripcode'], ['Capcode', 'capcode'], ['Subject', 'subject'], ['Filename', 'filename'], ['Image MD5', 'MD5']];
+ ref1 = [['Post', 'post'], ['Name', 'name'], ['Tripcode', 'tripcode'], ['Capcode', 'capcode'], ['Subject', 'subject'], ['Flag', 'country'], ['Filename', 'filename'], ['Image MD5', 'MD5']];
for (i = 0, len = ref1.length; i < len; i++) {
type = ref1[i];
entry.subEntries.push(this.createSubEntry(type[0], type[1]));
@@ -13876,7 +13877,7 @@ ArchiveLink = (function() {
return true;
} : function(post) {
var value;
- value = Filter[type](post);
+ value = type === 'country' ? post.info.flagCode : Filter[type](post);
if (!value) {
return false;
}
diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip
index 9f1a269ae..6108565fb 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 2af549c50..2e39fa7e4 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 d8322cdea..fbe4817af 100644
--- a/builds/updates.xml
+++ b/builds/updates.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/version.json b/version.json
index 4b0c1046e..32a594f62 100644
--- a/version.json
+++ b/version.json
@@ -1,4 +1,4 @@
{
- "version": "1.11.34.3",
- "date": "2016-05-18T05:42:48.351Z"
+ "version": "1.11.34.4",
+ "date": "2016-05-18T09:06:34.953Z"
}
\ No newline at end of file