diff --git a/CHANGELOG.md b/CHANGELOG.md
index 19386df95..553c5c4eb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,16 @@
### v1.13.9
+**v1.13.9.4** *(2017-06-13)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.9.4/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.9.4/builds/4chan-X-noupdate.crx)]
+- Update archive list.
+- Update for changes in /pol/ flags since last time. #1403
+- Revert "Remove /pol/ flags properly." #1403
+- forgot to remove joke boards
+- Update 4tan. (#54)
+- Updating yeet.net (#53)
+- Build web page.
+- README.md: Mention ad blocker hiding of save button.
+
**v1.13.9.3** *(2017-05-14)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.9.3/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.9.3/builds/4chan-X-noupdate.crx)]
- Merge v1.13.8.7: Fix MathJax on /sci/. #1356
- Merge v1.13.8.7: Minor fixes for new board /bant/.
diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx
index 471c78d66..c43b5e2a3 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 cc6f1dad1..9aad097ac 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.13.9.3
+// @version 1.13.9.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 776305fb8..c9f95ea9e 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.13.9.3
+// @version 1.13.9.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -153,7 +153,7 @@ docSet = function() {
};
g = {
- VERSION: '1.13.9.3',
+ VERSION: '1.13.9.4',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -6133,7 +6133,7 @@ Post = (function() {
};
function Post(root, thread, board) {
- var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9;
+ var clone, j, len, ref, ref1, ref10, ref11, ref12, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9;
this.thread = thread;
this.board = board;
this.ID = +root.id.slice(2);
@@ -6160,7 +6160,8 @@ Post = (function() {
capcode: (ref4 = this.nodes.capcode) != null ? ref4.textContent.replace('## ', '') : void 0,
pass: (ref5 = this.nodes.pass) != null ? ref5.title.match(/\d*$/)[0] : void 0,
flagCode: (ref6 = this.nodes.flag) != null ? (ref7 = ref6.className.match(/flag-(\w+)/)) != null ? ref7[1].toUpperCase() : void 0 : void 0,
- flag: (ref8 = this.nodes.flag) != null ? ref8.title : void 0,
+ flagCodeTroll: (ref8 = this.nodes.flag) != null ? (ref9 = ref8.src) != null ? (ref10 = ref9.match(/(\w+)\.gif$/)) != null ? ref10[1].toUpperCase() : void 0 : void 0 : void 0,
+ flag: (ref11 = this.nodes.flag) != null ? ref11.title : void 0,
date: this.nodes.date ? new Date(this.nodes.date.dataset.utc * 1000) : void 0
};
if (Conf['Anonymize']) {
@@ -6183,9 +6184,9 @@ Post = (function() {
if (g.posts[this.fullID]) {
this.isRebuilt = true;
this.clones = g.posts[this.fullID].clones;
- ref9 = this.clones;
- for (j = 0, len = ref9.length; j < len; j++) {
- clone = ref9[j];
+ ref12 = this.clones;
+ for (j = 0, len = ref12.length; j < len; j++) {
+ clone = ref12[j];
clone.origin = this;
}
}
@@ -6938,7 +6939,7 @@ Redirect = (function() {
Redirect = {
archives: [
- { "uid": 3, "name": "4plebs", "domain": "archive.4plebs.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "adv", "f", "hr", "mlpol", "mo", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "files": [ "adv", "f", "hr", "mlpol", "mo", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "reports": true },
+ { "uid": 3, "name": "4plebs", "domain": "archive.4plebs.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "files": [ "adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "reports": true },
{ "uid": 4, "name": "Nyafuu Archive", "domain": "archive.nyafuu.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "bant", "c", "e", "n", "news", "out", "p", "toy", "vip", "vp", "w", "wg", "wsr" ], "files": [ "bant", "c", "e", "n", "news", "out", "p", "toy", "vip", "vp", "w", "wg", "wsr" ], "reports": true },
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
@@ -6949,9 +6950,9 @@ Redirect = (function() {
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "r", "s", "soc" ], "files": [ "h", "hc", "hm", "r", "s", "soc" ], "reports": true },
- { "uid": 32, "name": "4tan", "domain": "boards.4tan.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [], "reports": true },
+ { "uid": 32, "name": "4tan", "domain": "boards.4tan.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "bant", "can", "cock", "fap", "fitlit", "mlpol", "mo", "mtv", "outsoc", "spa", "vint" ], "reports": true },
{ "uid": 5, "name": "Love is Over", "domain": "archive.loveisover.me", "http": true, "https": false, "software": "foolfuuka", "boards": [ "c", "d", "e", "i", "lgbt", "t", "u" ], "files": [ "c", "d", "e", "i", "lgbt", "t", "u" ] },
- { "uid": 33, "name": "yeet.net", "domain": "yeet.net", "http": true, "https": false, "software": "foolfuuka", "boards": [ "g", "k", "qa" ], "files": [ "g", "k", "qa" ] }
+ { "uid": 33, "name": "Bui's /b/ Archive (Mirror)", "domain": "yeet.net", "http": true, "https": false, "software": "foolfuuka", "boards": [ "b" ] }
],
init: function() {
var now, ref;
@@ -8379,6 +8380,7 @@ Build = (function() {
pass: data.since4pass != null ? "" + data.since4pass : void 0,
uniqueID: data.id,
flagCode: data.country,
+ flagCodeTroll: data.troll_country,
flag: Build.unescape(data.country_name),
dateUTC: data.time,
dateText: data.now,
@@ -8434,9 +8436,9 @@ Build = (function() {
return Build.post(o);
},
post: function(o) {
- var ID, boardID, capcode, capcodeDescription, capcodeLC, capcodeLong, capcodePlural, commentHTML, container, dateText, dateUTC, email, file, fileBlock, fileThumb, fileURL, flag, flagCode, gifIcon, href, i, len, match, name, pass, postClass, postInfo, postLink, protocol, quote, quoteLink, ref, ref1, shortFilename, staticPath, subject, threadID, tripcode, uniqueID, wholePost;
+ var ID, boardID, capcode, capcodeDescription, capcodeLC, capcodeLong, capcodePlural, commentHTML, container, dateText, dateUTC, email, file, fileBlock, fileThumb, fileURL, flag, flagCode, flagCodeTroll, gifIcon, href, i, len, match, name, pass, postClass, postInfo, postLink, protocol, quote, quoteLink, ref, ref1, shortFilename, staticPath, subject, threadID, tripcode, uniqueID, wholePost;
ID = o.ID, threadID = o.threadID, boardID = o.boardID, file = o.file;
- ref = o.info, subject = ref.subject, email = ref.email, name = ref.name, tripcode = ref.tripcode, capcode = ref.capcode, pass = ref.pass, uniqueID = ref.uniqueID, flagCode = ref.flagCode, flag = ref.flag, dateUTC = ref.dateUTC, dateText = ref.dateText, commentHTML = ref.commentHTML;
+ ref = o.info, subject = ref.subject, email = ref.email, name = ref.name, tripcode = ref.tripcode, capcode = ref.capcode, pass = ref.pass, uniqueID = ref.uniqueID, flagCode = ref.flagCode, flagCodeTroll = ref.flagCodeTroll, flag = ref.flag, dateUTC = ref.dateUTC, dateText = ref.dateText, commentHTML = ref.commentHTML;
staticPath = Build.staticPath, gifIcon = Build.gifIcon;
/* Post Info */
@@ -8460,7 +8462,7 @@ Build = (function() {
postLink = Build.postURL(boardID, threadID, ID);
quoteLink = Build.sameThread(boardID, threadID) ? "javascript:quote('" + (+ID) + "');" : "/" + boardID + "/thread/" + threadID + "#q" + ID;
postInfo = {
- innerHTML: "
"
+ innerHTML: ""
};
/* File Info */
@@ -21683,6 +21685,7 @@ QR = (function() {
return $.sync('customCooldownEnabled', QR.setCustomCooldown);
});
}
+ QR.flagsInput();
$.on(nodes.autohide, 'change', QR.toggleHide);
$.on(nodes.close, 'click', QR.close);
$.on(nodes.form, 'submit', QR.submit);
@@ -21725,7 +21728,7 @@ QR = (function() {
new MutationObserver(QR.pasteFF).observe(nodes.pasteArea, {
childList: true
});
- items = ['thread', 'name', 'email', 'sub', 'com', 'filename'];
+ items = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'flag'];
i = 0;
save = function() {
return QR.selected.save(this);
@@ -21759,6 +21762,43 @@ QR = (function() {
QR.oekaki.setup();
return $.event('QRDialogCreation', null, dialog);
},
+ flags: function() {
+ var flag, fn, j, len, ref, select;
+ select = $.el('select', {
+ name: 'flag',
+ className: 'flagSelector'
+ });
+ fn = function(val) {
+ return $.add(select, $.el('option', {
+ value: val[0],
+ textContent: val[1]
+ }));
+ };
+ ref = [['0', 'Geographic Location'], ['AC', 'Anarcho-Capitalist'], ['AN', 'Anarchist'], ['BL', 'Black Nationalist'], ['CF', 'Confederate'], ['CM', 'Communist'], ['DM', 'Democrat'], ['EU', 'European'], ['FC', 'Fascist'], ['GN', 'Gadsden'], ['GY', 'Gay'], ['JH', 'Jihadi'], ['KN', 'Kekistani'], ['MF', 'Muslim'], ['NB', 'National Bolshevik'], ['NZ', 'Nazi'], ['PC', 'Hippie'], ['PR', 'Pirate'], ['RE', 'Republican'], ['TM', 'Templar'], ['TR', 'Tree Hugger'], ['UN', 'United Nations'], ['WP', 'White Supremacist']];
+ for (j = 0, len = ref.length; j < len; j++) {
+ flag = ref[j];
+ fn(flag);
+ }
+ return select;
+ },
+ flagsInput: function() {
+ var flag, nodes;
+ nodes = QR.nodes;
+ if (!nodes) {
+ return;
+ }
+ if (nodes.flag) {
+ $.rm(nodes.flag);
+ delete nodes.flag;
+ }
+ if (g.BOARD.ID === 'pol') {
+ flag = QR.flags();
+ flag.dataset.name = 'flag';
+ flag.dataset["default"] = '0';
+ nodes.flag = flag;
+ return $.add(nodes.form, flag);
+ }
+ },
submit: function(e) {
var captcha, cb, err, extra, filetag, formData, options, post, ref, thread, threadID;
if (e != null) {
@@ -21823,6 +21863,7 @@ QR = (function() {
upfile: post.file,
filetag: filetag,
spoiler: post.spoiler,
+ flag: post.flag,
mode: 'regist',
pwd: QR.persona.getPassword()
};
@@ -22552,7 +22593,8 @@ QR = (function() {
var persona;
persona = arg['QR.persona'];
persona = {
- name: post.name
+ name: post.name,
+ flag: post.flag
};
return $.set('QR.persona', persona);
});
@@ -22622,6 +22664,9 @@ QR = (function() {
_this.name = 'name' in QR.persona.always ? QR.persona.always.name : prev ? prev.name : persona.name;
_this.email = 'email' in QR.persona.always ? QR.persona.always.email : '';
_this.sub = 'sub' in QR.persona.always ? QR.persona.always.sub : '';
+ if (QR.nodes.flag) {
+ _this.flag = prev ? prev.flag : persona.flag;
+ }
if (QR.selected === _this) {
return _this.load();
}
@@ -22663,7 +22708,7 @@ QR = (function() {
if (this !== QR.selected) {
return;
}
- ref = ['thread', 'name', 'email', 'sub', 'com', 'fileButton', 'filename', 'spoiler'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'fileButton', 'filename', 'spoiler', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (node = QR.nodes[name]) {
@@ -22696,7 +22741,7 @@ QR = (function() {
_Class.prototype.load = function() {
var i, len, name, node, ref;
- ref = ['thread', 'name', 'email', 'sub', 'com', 'filename'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (!(node = QR.nodes[name])) {
@@ -22734,7 +22779,8 @@ QR = (function() {
this.updateFilename();
break;
case 'name':
- if (this.name !== prev) {
+ case 'flag':
+ if (this[name] !== prev) {
QR.persona.set(this);
}
}
@@ -22748,7 +22794,7 @@ QR = (function() {
if (this !== QR.selected) {
return;
}
- ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'spoiler'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'spoiler', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (!(node = QR.nodes[name])) {
diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx
index bfd3879f8..e1a0b621c 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 69960a6b2..4c6eba811 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.13.9.3
+// @version 1.13.9.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -153,7 +153,7 @@ docSet = function() {
};
g = {
- VERSION: '1.13.9.3',
+ VERSION: '1.13.9.4',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -6133,7 +6133,7 @@ Post = (function() {
};
function Post(root, thread, board) {
- var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9;
+ var clone, j, len, ref, ref1, ref10, ref11, ref12, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9;
this.thread = thread;
this.board = board;
this.ID = +root.id.slice(2);
@@ -6160,7 +6160,8 @@ Post = (function() {
capcode: (ref4 = this.nodes.capcode) != null ? ref4.textContent.replace('## ', '') : void 0,
pass: (ref5 = this.nodes.pass) != null ? ref5.title.match(/\d*$/)[0] : void 0,
flagCode: (ref6 = this.nodes.flag) != null ? (ref7 = ref6.className.match(/flag-(\w+)/)) != null ? ref7[1].toUpperCase() : void 0 : void 0,
- flag: (ref8 = this.nodes.flag) != null ? ref8.title : void 0,
+ flagCodeTroll: (ref8 = this.nodes.flag) != null ? (ref9 = ref8.src) != null ? (ref10 = ref9.match(/(\w+)\.gif$/)) != null ? ref10[1].toUpperCase() : void 0 : void 0 : void 0,
+ flag: (ref11 = this.nodes.flag) != null ? ref11.title : void 0,
date: this.nodes.date ? new Date(this.nodes.date.dataset.utc * 1000) : void 0
};
if (Conf['Anonymize']) {
@@ -6183,9 +6184,9 @@ Post = (function() {
if (g.posts[this.fullID]) {
this.isRebuilt = true;
this.clones = g.posts[this.fullID].clones;
- ref9 = this.clones;
- for (j = 0, len = ref9.length; j < len; j++) {
- clone = ref9[j];
+ ref12 = this.clones;
+ for (j = 0, len = ref12.length; j < len; j++) {
+ clone = ref12[j];
clone.origin = this;
}
}
@@ -6938,7 +6939,7 @@ Redirect = (function() {
Redirect = {
archives: [
- { "uid": 3, "name": "4plebs", "domain": "archive.4plebs.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "adv", "f", "hr", "mlpol", "mo", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "files": [ "adv", "f", "hr", "mlpol", "mo", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "reports": true },
+ { "uid": 3, "name": "4plebs", "domain": "archive.4plebs.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "files": [ "adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "reports": true },
{ "uid": 4, "name": "Nyafuu Archive", "domain": "archive.nyafuu.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "bant", "c", "e", "n", "news", "out", "p", "toy", "vip", "vp", "w", "wg", "wsr" ], "files": [ "bant", "c", "e", "n", "news", "out", "p", "toy", "vip", "vp", "w", "wg", "wsr" ], "reports": true },
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
@@ -6949,9 +6950,9 @@ Redirect = (function() {
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "r", "s", "soc" ], "files": [ "h", "hc", "hm", "r", "s", "soc" ], "reports": true },
- { "uid": 32, "name": "4tan", "domain": "boards.4tan.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [], "reports": true },
+ { "uid": 32, "name": "4tan", "domain": "boards.4tan.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "bant", "can", "cock", "fap", "fitlit", "mlpol", "mo", "mtv", "outsoc", "spa", "vint" ], "reports": true },
{ "uid": 5, "name": "Love is Over", "domain": "archive.loveisover.me", "http": true, "https": false, "software": "foolfuuka", "boards": [ "c", "d", "e", "i", "lgbt", "t", "u" ], "files": [ "c", "d", "e", "i", "lgbt", "t", "u" ] },
- { "uid": 33, "name": "yeet.net", "domain": "yeet.net", "http": true, "https": false, "software": "foolfuuka", "boards": [ "g", "k", "qa" ], "files": [ "g", "k", "qa" ] }
+ { "uid": 33, "name": "Bui's /b/ Archive (Mirror)", "domain": "yeet.net", "http": true, "https": false, "software": "foolfuuka", "boards": [ "b" ] }
],
init: function() {
var now, ref;
@@ -8379,6 +8380,7 @@ Build = (function() {
pass: data.since4pass != null ? "" + data.since4pass : void 0,
uniqueID: data.id,
flagCode: data.country,
+ flagCodeTroll: data.troll_country,
flag: Build.unescape(data.country_name),
dateUTC: data.time,
dateText: data.now,
@@ -8434,9 +8436,9 @@ Build = (function() {
return Build.post(o);
},
post: function(o) {
- var ID, boardID, capcode, capcodeDescription, capcodeLC, capcodeLong, capcodePlural, commentHTML, container, dateText, dateUTC, email, file, fileBlock, fileThumb, fileURL, flag, flagCode, gifIcon, href, i, len, match, name, pass, postClass, postInfo, postLink, protocol, quote, quoteLink, ref, ref1, shortFilename, staticPath, subject, threadID, tripcode, uniqueID, wholePost;
+ var ID, boardID, capcode, capcodeDescription, capcodeLC, capcodeLong, capcodePlural, commentHTML, container, dateText, dateUTC, email, file, fileBlock, fileThumb, fileURL, flag, flagCode, flagCodeTroll, gifIcon, href, i, len, match, name, pass, postClass, postInfo, postLink, protocol, quote, quoteLink, ref, ref1, shortFilename, staticPath, subject, threadID, tripcode, uniqueID, wholePost;
ID = o.ID, threadID = o.threadID, boardID = o.boardID, file = o.file;
- ref = o.info, subject = ref.subject, email = ref.email, name = ref.name, tripcode = ref.tripcode, capcode = ref.capcode, pass = ref.pass, uniqueID = ref.uniqueID, flagCode = ref.flagCode, flag = ref.flag, dateUTC = ref.dateUTC, dateText = ref.dateText, commentHTML = ref.commentHTML;
+ ref = o.info, subject = ref.subject, email = ref.email, name = ref.name, tripcode = ref.tripcode, capcode = ref.capcode, pass = ref.pass, uniqueID = ref.uniqueID, flagCode = ref.flagCode, flagCodeTroll = ref.flagCodeTroll, flag = ref.flag, dateUTC = ref.dateUTC, dateText = ref.dateText, commentHTML = ref.commentHTML;
staticPath = Build.staticPath, gifIcon = Build.gifIcon;
/* Post Info */
@@ -8460,7 +8462,7 @@ Build = (function() {
postLink = Build.postURL(boardID, threadID, ID);
quoteLink = Build.sameThread(boardID, threadID) ? "javascript:quote('" + (+ID) + "');" : "/" + boardID + "/thread/" + threadID + "#q" + ID;
postInfo = {
- innerHTML: ""
+ innerHTML: ""
};
/* File Info */
@@ -21683,6 +21685,7 @@ QR = (function() {
return $.sync('customCooldownEnabled', QR.setCustomCooldown);
});
}
+ QR.flagsInput();
$.on(nodes.autohide, 'change', QR.toggleHide);
$.on(nodes.close, 'click', QR.close);
$.on(nodes.form, 'submit', QR.submit);
@@ -21725,7 +21728,7 @@ QR = (function() {
new MutationObserver(QR.pasteFF).observe(nodes.pasteArea, {
childList: true
});
- items = ['thread', 'name', 'email', 'sub', 'com', 'filename'];
+ items = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'flag'];
i = 0;
save = function() {
return QR.selected.save(this);
@@ -21759,6 +21762,43 @@ QR = (function() {
QR.oekaki.setup();
return $.event('QRDialogCreation', null, dialog);
},
+ flags: function() {
+ var flag, fn, j, len, ref, select;
+ select = $.el('select', {
+ name: 'flag',
+ className: 'flagSelector'
+ });
+ fn = function(val) {
+ return $.add(select, $.el('option', {
+ value: val[0],
+ textContent: val[1]
+ }));
+ };
+ ref = [['0', 'Geographic Location'], ['AC', 'Anarcho-Capitalist'], ['AN', 'Anarchist'], ['BL', 'Black Nationalist'], ['CF', 'Confederate'], ['CM', 'Communist'], ['DM', 'Democrat'], ['EU', 'European'], ['FC', 'Fascist'], ['GN', 'Gadsden'], ['GY', 'Gay'], ['JH', 'Jihadi'], ['KN', 'Kekistani'], ['MF', 'Muslim'], ['NB', 'National Bolshevik'], ['NZ', 'Nazi'], ['PC', 'Hippie'], ['PR', 'Pirate'], ['RE', 'Republican'], ['TM', 'Templar'], ['TR', 'Tree Hugger'], ['UN', 'United Nations'], ['WP', 'White Supremacist']];
+ for (j = 0, len = ref.length; j < len; j++) {
+ flag = ref[j];
+ fn(flag);
+ }
+ return select;
+ },
+ flagsInput: function() {
+ var flag, nodes;
+ nodes = QR.nodes;
+ if (!nodes) {
+ return;
+ }
+ if (nodes.flag) {
+ $.rm(nodes.flag);
+ delete nodes.flag;
+ }
+ if (g.BOARD.ID === 'pol') {
+ flag = QR.flags();
+ flag.dataset.name = 'flag';
+ flag.dataset["default"] = '0';
+ nodes.flag = flag;
+ return $.add(nodes.form, flag);
+ }
+ },
submit: function(e) {
var captcha, cb, err, extra, filetag, formData, options, post, ref, thread, threadID;
if (e != null) {
@@ -21823,6 +21863,7 @@ QR = (function() {
upfile: post.file,
filetag: filetag,
spoiler: post.spoiler,
+ flag: post.flag,
mode: 'regist',
pwd: QR.persona.getPassword()
};
@@ -22552,7 +22593,8 @@ QR = (function() {
var persona;
persona = arg['QR.persona'];
persona = {
- name: post.name
+ name: post.name,
+ flag: post.flag
};
return $.set('QR.persona', persona);
});
@@ -22622,6 +22664,9 @@ QR = (function() {
_this.name = 'name' in QR.persona.always ? QR.persona.always.name : prev ? prev.name : persona.name;
_this.email = 'email' in QR.persona.always ? QR.persona.always.email : '';
_this.sub = 'sub' in QR.persona.always ? QR.persona.always.sub : '';
+ if (QR.nodes.flag) {
+ _this.flag = prev ? prev.flag : persona.flag;
+ }
if (QR.selected === _this) {
return _this.load();
}
@@ -22663,7 +22708,7 @@ QR = (function() {
if (this !== QR.selected) {
return;
}
- ref = ['thread', 'name', 'email', 'sub', 'com', 'fileButton', 'filename', 'spoiler'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'fileButton', 'filename', 'spoiler', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (node = QR.nodes[name]) {
@@ -22696,7 +22741,7 @@ QR = (function() {
_Class.prototype.load = function() {
var i, len, name, node, ref;
- ref = ['thread', 'name', 'email', 'sub', 'com', 'filename'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (!(node = QR.nodes[name])) {
@@ -22734,7 +22779,8 @@ QR = (function() {
this.updateFilename();
break;
case 'name':
- if (this.name !== prev) {
+ case 'flag':
+ if (this[name] !== prev) {
QR.persona.set(this);
}
}
@@ -22748,7 +22794,7 @@ QR = (function() {
if (this !== QR.selected) {
return;
}
- ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'spoiler'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'spoiler', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (!(node = QR.nodes[name])) {
diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx
index fa9f3e474..628b22200 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 37df8108e..2bcb75493 100644
--- a/builds/4chan-X.meta.js
+++ b/builds/4chan-X.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.13.9.3
+// @version 1.13.9.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index 45df38133..f0099b36e 100644
--- a/builds/4chan-X.user.js
+++ b/builds/4chan-X.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.13.9.3
+// @version 1.13.9.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -153,7 +153,7 @@ docSet = function() {
};
g = {
- VERSION: '1.13.9.3',
+ VERSION: '1.13.9.4',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -6133,7 +6133,7 @@ Post = (function() {
};
function Post(root, thread, board) {
- var clone, j, len, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9;
+ var clone, j, len, ref, ref1, ref10, ref11, ref12, ref2, ref3, ref4, ref5, ref6, ref7, ref8, ref9;
this.thread = thread;
this.board = board;
this.ID = +root.id.slice(2);
@@ -6160,7 +6160,8 @@ Post = (function() {
capcode: (ref4 = this.nodes.capcode) != null ? ref4.textContent.replace('## ', '') : void 0,
pass: (ref5 = this.nodes.pass) != null ? ref5.title.match(/\d*$/)[0] : void 0,
flagCode: (ref6 = this.nodes.flag) != null ? (ref7 = ref6.className.match(/flag-(\w+)/)) != null ? ref7[1].toUpperCase() : void 0 : void 0,
- flag: (ref8 = this.nodes.flag) != null ? ref8.title : void 0,
+ flagCodeTroll: (ref8 = this.nodes.flag) != null ? (ref9 = ref8.src) != null ? (ref10 = ref9.match(/(\w+)\.gif$/)) != null ? ref10[1].toUpperCase() : void 0 : void 0 : void 0,
+ flag: (ref11 = this.nodes.flag) != null ? ref11.title : void 0,
date: this.nodes.date ? new Date(this.nodes.date.dataset.utc * 1000) : void 0
};
if (Conf['Anonymize']) {
@@ -6183,9 +6184,9 @@ Post = (function() {
if (g.posts[this.fullID]) {
this.isRebuilt = true;
this.clones = g.posts[this.fullID].clones;
- ref9 = this.clones;
- for (j = 0, len = ref9.length; j < len; j++) {
- clone = ref9[j];
+ ref12 = this.clones;
+ for (j = 0, len = ref12.length; j < len; j++) {
+ clone = ref12[j];
clone.origin = this;
}
}
@@ -6938,7 +6939,7 @@ Redirect = (function() {
Redirect = {
archives: [
- { "uid": 3, "name": "4plebs", "domain": "archive.4plebs.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "adv", "f", "hr", "mlpol", "mo", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "files": [ "adv", "f", "hr", "mlpol", "mo", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "reports": true },
+ { "uid": 3, "name": "4plebs", "domain": "archive.4plebs.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "files": [ "adv", "f", "hr", "o", "pol", "s4s", "sp", "tg", "trv", "tv", "x" ], "reports": true },
{ "uid": 4, "name": "Nyafuu Archive", "domain": "archive.nyafuu.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "bant", "c", "e", "n", "news", "out", "p", "toy", "vip", "vp", "w", "wg", "wsr" ], "files": [ "bant", "c", "e", "n", "news", "out", "p", "toy", "vip", "vp", "w", "wg", "wsr" ], "reports": true },
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
@@ -6949,9 +6950,9 @@ Redirect = (function() {
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "r", "s", "soc" ], "files": [ "h", "hc", "hm", "r", "s", "soc" ], "reports": true },
- { "uid": 32, "name": "4tan", "domain": "boards.4tan.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [], "reports": true },
+ { "uid": 32, "name": "4tan", "domain": "boards.4tan.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "bant", "can", "cock", "fap", "fitlit", "mlpol", "mo", "mtv", "outsoc", "spa", "vint" ], "reports": true },
{ "uid": 5, "name": "Love is Over", "domain": "archive.loveisover.me", "http": true, "https": false, "software": "foolfuuka", "boards": [ "c", "d", "e", "i", "lgbt", "t", "u" ], "files": [ "c", "d", "e", "i", "lgbt", "t", "u" ] },
- { "uid": 33, "name": "yeet.net", "domain": "yeet.net", "http": true, "https": false, "software": "foolfuuka", "boards": [ "g", "k", "qa" ], "files": [ "g", "k", "qa" ] }
+ { "uid": 33, "name": "Bui's /b/ Archive (Mirror)", "domain": "yeet.net", "http": true, "https": false, "software": "foolfuuka", "boards": [ "b" ] }
],
init: function() {
var now, ref;
@@ -8379,6 +8380,7 @@ Build = (function() {
pass: data.since4pass != null ? "" + data.since4pass : void 0,
uniqueID: data.id,
flagCode: data.country,
+ flagCodeTroll: data.troll_country,
flag: Build.unescape(data.country_name),
dateUTC: data.time,
dateText: data.now,
@@ -8434,9 +8436,9 @@ Build = (function() {
return Build.post(o);
},
post: function(o) {
- var ID, boardID, capcode, capcodeDescription, capcodeLC, capcodeLong, capcodePlural, commentHTML, container, dateText, dateUTC, email, file, fileBlock, fileThumb, fileURL, flag, flagCode, gifIcon, href, i, len, match, name, pass, postClass, postInfo, postLink, protocol, quote, quoteLink, ref, ref1, shortFilename, staticPath, subject, threadID, tripcode, uniqueID, wholePost;
+ var ID, boardID, capcode, capcodeDescription, capcodeLC, capcodeLong, capcodePlural, commentHTML, container, dateText, dateUTC, email, file, fileBlock, fileThumb, fileURL, flag, flagCode, flagCodeTroll, gifIcon, href, i, len, match, name, pass, postClass, postInfo, postLink, protocol, quote, quoteLink, ref, ref1, shortFilename, staticPath, subject, threadID, tripcode, uniqueID, wholePost;
ID = o.ID, threadID = o.threadID, boardID = o.boardID, file = o.file;
- ref = o.info, subject = ref.subject, email = ref.email, name = ref.name, tripcode = ref.tripcode, capcode = ref.capcode, pass = ref.pass, uniqueID = ref.uniqueID, flagCode = ref.flagCode, flag = ref.flag, dateUTC = ref.dateUTC, dateText = ref.dateText, commentHTML = ref.commentHTML;
+ ref = o.info, subject = ref.subject, email = ref.email, name = ref.name, tripcode = ref.tripcode, capcode = ref.capcode, pass = ref.pass, uniqueID = ref.uniqueID, flagCode = ref.flagCode, flagCodeTroll = ref.flagCodeTroll, flag = ref.flag, dateUTC = ref.dateUTC, dateText = ref.dateText, commentHTML = ref.commentHTML;
staticPath = Build.staticPath, gifIcon = Build.gifIcon;
/* Post Info */
@@ -8460,7 +8462,7 @@ Build = (function() {
postLink = Build.postURL(boardID, threadID, ID);
quoteLink = Build.sameThread(boardID, threadID) ? "javascript:quote('" + (+ID) + "');" : "/" + boardID + "/thread/" + threadID + "#q" + ID;
postInfo = {
- innerHTML: ""
+ innerHTML: ""
};
/* File Info */
@@ -21683,6 +21685,7 @@ QR = (function() {
return $.sync('customCooldownEnabled', QR.setCustomCooldown);
});
}
+ QR.flagsInput();
$.on(nodes.autohide, 'change', QR.toggleHide);
$.on(nodes.close, 'click', QR.close);
$.on(nodes.form, 'submit', QR.submit);
@@ -21725,7 +21728,7 @@ QR = (function() {
new MutationObserver(QR.pasteFF).observe(nodes.pasteArea, {
childList: true
});
- items = ['thread', 'name', 'email', 'sub', 'com', 'filename'];
+ items = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'flag'];
i = 0;
save = function() {
return QR.selected.save(this);
@@ -21759,6 +21762,43 @@ QR = (function() {
QR.oekaki.setup();
return $.event('QRDialogCreation', null, dialog);
},
+ flags: function() {
+ var flag, fn, j, len, ref, select;
+ select = $.el('select', {
+ name: 'flag',
+ className: 'flagSelector'
+ });
+ fn = function(val) {
+ return $.add(select, $.el('option', {
+ value: val[0],
+ textContent: val[1]
+ }));
+ };
+ ref = [['0', 'Geographic Location'], ['AC', 'Anarcho-Capitalist'], ['AN', 'Anarchist'], ['BL', 'Black Nationalist'], ['CF', 'Confederate'], ['CM', 'Communist'], ['DM', 'Democrat'], ['EU', 'European'], ['FC', 'Fascist'], ['GN', 'Gadsden'], ['GY', 'Gay'], ['JH', 'Jihadi'], ['KN', 'Kekistani'], ['MF', 'Muslim'], ['NB', 'National Bolshevik'], ['NZ', 'Nazi'], ['PC', 'Hippie'], ['PR', 'Pirate'], ['RE', 'Republican'], ['TM', 'Templar'], ['TR', 'Tree Hugger'], ['UN', 'United Nations'], ['WP', 'White Supremacist']];
+ for (j = 0, len = ref.length; j < len; j++) {
+ flag = ref[j];
+ fn(flag);
+ }
+ return select;
+ },
+ flagsInput: function() {
+ var flag, nodes;
+ nodes = QR.nodes;
+ if (!nodes) {
+ return;
+ }
+ if (nodes.flag) {
+ $.rm(nodes.flag);
+ delete nodes.flag;
+ }
+ if (g.BOARD.ID === 'pol') {
+ flag = QR.flags();
+ flag.dataset.name = 'flag';
+ flag.dataset["default"] = '0';
+ nodes.flag = flag;
+ return $.add(nodes.form, flag);
+ }
+ },
submit: function(e) {
var captcha, cb, err, extra, filetag, formData, options, post, ref, thread, threadID;
if (e != null) {
@@ -21823,6 +21863,7 @@ QR = (function() {
upfile: post.file,
filetag: filetag,
spoiler: post.spoiler,
+ flag: post.flag,
mode: 'regist',
pwd: QR.persona.getPassword()
};
@@ -22552,7 +22593,8 @@ QR = (function() {
var persona;
persona = arg['QR.persona'];
persona = {
- name: post.name
+ name: post.name,
+ flag: post.flag
};
return $.set('QR.persona', persona);
});
@@ -22622,6 +22664,9 @@ QR = (function() {
_this.name = 'name' in QR.persona.always ? QR.persona.always.name : prev ? prev.name : persona.name;
_this.email = 'email' in QR.persona.always ? QR.persona.always.email : '';
_this.sub = 'sub' in QR.persona.always ? QR.persona.always.sub : '';
+ if (QR.nodes.flag) {
+ _this.flag = prev ? prev.flag : persona.flag;
+ }
if (QR.selected === _this) {
return _this.load();
}
@@ -22663,7 +22708,7 @@ QR = (function() {
if (this !== QR.selected) {
return;
}
- ref = ['thread', 'name', 'email', 'sub', 'com', 'fileButton', 'filename', 'spoiler'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'fileButton', 'filename', 'spoiler', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (node = QR.nodes[name]) {
@@ -22696,7 +22741,7 @@ QR = (function() {
_Class.prototype.load = function() {
var i, len, name, node, ref;
- ref = ['thread', 'name', 'email', 'sub', 'com', 'filename'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (!(node = QR.nodes[name])) {
@@ -22734,7 +22779,8 @@ QR = (function() {
this.updateFilename();
break;
case 'name':
- if (this.name !== prev) {
+ case 'flag':
+ if (this[name] !== prev) {
QR.persona.set(this);
}
}
@@ -22748,7 +22794,7 @@ QR = (function() {
if (this !== QR.selected) {
return;
}
- ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'spoiler'];
+ ref = ['thread', 'name', 'email', 'sub', 'com', 'filename', 'spoiler', 'flag'];
for (i = 0, len = ref.length; i < len; i++) {
name = ref[i];
if (!(node = QR.nodes[name])) {
diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip
index cf1b186ff..c383a24ce 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 a0c5a18ad..9b29e6f24 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 57dedb1bd..137ce9761 100644
--- a/builds/updates.xml
+++ b/builds/updates.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/version.json b/version.json
index 8d7c2a1c5..ad903ebb4 100644
--- a/version.json
+++ b/version.json
@@ -1,4 +1,4 @@
{
- "version": "1.13.9.3",
- "date": "2017-05-14T04:42:44.573Z"
+ "version": "1.13.9.4",
+ "date": "2017-06-13T16:19:49.060Z"
}
\ No newline at end of file