diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fb0d71f5..5eb2450c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor ### v1.11.17 +**v1.11.17.4** *(2015-11-18)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.4/builds/4chan-X-noupdate.crx "Chromium version")] +- Don't record posts as yours when `Mark Quotes of You` is disabled. + **v1.11.17.3** *(2015-11-17)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.3/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.3/builds/4chan-X-noupdate.crx "Chromium version")] - Minor captcha fixes. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 5cef05e8f..4558b94bc 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 7c1ca83ad..094b94020 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.17.3 +// @version 1.11.17.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 8271329a4..552c16e9d 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 beta -// @version 1.11.17.3 +// @version 1.11.17.4 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -433,7 +433,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.17.3', + VERSION: '1.11.17.4', NAMESPACE: '4chan X.', boards: {} }; @@ -6958,7 +6958,9 @@ if (!Conf['Quick Reply']) { return; } - this.db = new DataBoard('yourPosts'); + if (Conf['Mark Quotes of You']) { + this.db = new DataBoard('yourPosts'); + } this.posts = []; if (g.VIEW === 'archive') { return; @@ -7806,7 +7808,7 @@ return QR.status(); }, response: function() { - var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, req, resDoc, seconds, threadID; + var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; req = QR.req; delete QR.req; post = QR.posts[0]; @@ -7863,12 +7865,14 @@ postID = +postID; threadID = +threadID || postID; isReply = threadID !== postID; - QR.db.set({ - boardID: g.BOARD.ID, - threadID: threadID, - postID: postID, - val: true - }); + if ((ref2 = QR.db) != null) { + ref2.set({ + boardID: g.BOARD.ID, + threadID: threadID, + postID: postID, + val: true + }); + } $.event('QRPostSuccessful', { boardID: g.BOARD.ID, threadID: threadID, @@ -7882,10 +7886,10 @@ postsCount = QR.posts.length - 1; QR.cooldown.auto = postsCount && isReply; lastPostToThread = !((function() { - var k, len1, p, ref2; - ref2 = QR.posts.slice(1); - for (k = 0, len1 = ref2.length; k < len1; k++) { - p = ref2[k]; + var k, len1, p, ref3; + ref3 = QR.posts.slice(1); + for (k = 0, len1 = ref3.length; k < len1; k++) { + p = ref3[k]; if (p.thread === post.thread) { return true; } @@ -8852,6 +8856,9 @@ PostSuccessful = { init: function() { + if (!Conf['Mark Quotes of You']) { + return; + } return $.ready(this.ready); }, ready: function() { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 4f203b3aa..97dca2331 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 e57979882..5f2de1713 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.11.17.3 +// @version 1.11.17.4 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -433,7 +433,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.17.3', + VERSION: '1.11.17.4', NAMESPACE: '4chan X.', boards: {} }; @@ -6958,7 +6958,9 @@ if (!Conf['Quick Reply']) { return; } - this.db = new DataBoard('yourPosts'); + if (Conf['Mark Quotes of You']) { + this.db = new DataBoard('yourPosts'); + } this.posts = []; if (g.VIEW === 'archive') { return; @@ -7806,7 +7808,7 @@ return QR.status(); }, response: function() { - var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, req, resDoc, seconds, threadID; + var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; req = QR.req; delete QR.req; post = QR.posts[0]; @@ -7863,12 +7865,14 @@ postID = +postID; threadID = +threadID || postID; isReply = threadID !== postID; - QR.db.set({ - boardID: g.BOARD.ID, - threadID: threadID, - postID: postID, - val: true - }); + if ((ref2 = QR.db) != null) { + ref2.set({ + boardID: g.BOARD.ID, + threadID: threadID, + postID: postID, + val: true + }); + } $.event('QRPostSuccessful', { boardID: g.BOARD.ID, threadID: threadID, @@ -7882,10 +7886,10 @@ postsCount = QR.posts.length - 1; QR.cooldown.auto = postsCount && isReply; lastPostToThread = !((function() { - var k, len1, p, ref2; - ref2 = QR.posts.slice(1); - for (k = 0, len1 = ref2.length; k < len1; k++) { - p = ref2[k]; + var k, len1, p, ref3; + ref3 = QR.posts.slice(1); + for (k = 0, len1 = ref3.length; k < len1; k++) { + p = ref3[k]; if (p.thread === post.thread) { return true; } @@ -8852,6 +8856,9 @@ PostSuccessful = { init: function() { + if (!Conf['Mark Quotes of You']) { + return; + } return $.ready(this.ready); }, ready: function() { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 6e4d92a7a..c06f40481 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 09148fb97..4ae07ac9d 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.11.17.3 +// @version 1.11.17.4 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index fb75b04c9..2d57e1a56 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.11.17.3 +// @version 1.11.17.4 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -433,7 +433,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.17.3', + VERSION: '1.11.17.4', NAMESPACE: '4chan X.', boards: {} }; @@ -6958,7 +6958,9 @@ if (!Conf['Quick Reply']) { return; } - this.db = new DataBoard('yourPosts'); + if (Conf['Mark Quotes of You']) { + this.db = new DataBoard('yourPosts'); + } this.posts = []; if (g.VIEW === 'archive') { return; @@ -7806,7 +7808,7 @@ return QR.status(); }, response: function() { - var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, req, resDoc, seconds, threadID; + var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; req = QR.req; delete QR.req; post = QR.posts[0]; @@ -7863,12 +7865,14 @@ postID = +postID; threadID = +threadID || postID; isReply = threadID !== postID; - QR.db.set({ - boardID: g.BOARD.ID, - threadID: threadID, - postID: postID, - val: true - }); + if ((ref2 = QR.db) != null) { + ref2.set({ + boardID: g.BOARD.ID, + threadID: threadID, + postID: postID, + val: true + }); + } $.event('QRPostSuccessful', { boardID: g.BOARD.ID, threadID: threadID, @@ -7882,10 +7886,10 @@ postsCount = QR.posts.length - 1; QR.cooldown.auto = postsCount && isReply; lastPostToThread = !((function() { - var k, len1, p, ref2; - ref2 = QR.posts.slice(1); - for (k = 0, len1 = ref2.length; k < len1; k++) { - p = ref2[k]; + var k, len1, p, ref3; + ref3 = QR.posts.slice(1); + for (k = 0, len1 = ref3.length; k < len1; k++) { + p = ref3[k]; if (p.thread === post.thread) { return true; } @@ -8852,6 +8856,9 @@ PostSuccessful = { init: function() { + if (!Conf['Mark Quotes of You']) { + return; + } return $.ready(this.ready); }, ready: function() { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 93d93d320..b224641f7 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 31d9815ec..b61e9bce0 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 9a7c8d10e..bf5dda19c 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index b0d162ca1..c8f16b790 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.11.17.3", - "date": "2015-11-18T06:28:00.317Z" + "version": "1.11.17.4", + "date": "2015-11-19T01:33:27.887Z" }