diff --git a/CHANGELOG.md b/CHANGELOG.md index e842d860f..a900a04d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ ### v1.14.5 +**v1.14.5.15** *(2019-04-01)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.15/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.15/builds/4chan-X-noupdate.crx)] +- Show info relating to April 2019 event. #2266 +- Override 4chan CSS causing sauce links to get cut off. #2193 +- Unbreak warning in Chrome extension to reload the page after an update. + **v1.14.5.14** *(2019-03-22)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.14/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.14/builds/4chan-X-noupdate.crx)] - Add message alerting Chrome extension users to disable chrome://flags/#network-service - Minor bugfix in catalog/index loading. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index c07e86681..2c735362f 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 72aed01f8..c18171a01 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.14.5.14 +// @version 1.14.5.15 // @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 686fa38d1..228668140 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.14.5.14 +// @version 1.14.5.15 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.14', + VERSION: '1.14.5.15', NAMESPACE: '4chan X.', boards: {} }; @@ -1390,6 +1390,10 @@ body.is_catalog .thread > a > img {\n\ .nwsb {\n\ display: inline;\n\ }\n\ +.fileText {\n\ + max-width: auto;\n\ + white-space: normal;\n\ +}\n\ /* Ads */\n\ .ad-cnt > *, .adg-rects > *, .bsa-cnt {\n\ height: auto !important;\n\ @@ -9206,7 +9210,7 @@ Build = (function() { } }, parseJSON: function(data, boardID) { - var o; + var key, o; o = { ID: data.no, threadID: data.resto || data.no, @@ -9215,8 +9219,7 @@ Build = (function() { isSticky: !!data.sticky, isClosed: !!data.closed, isArchived: !!data.archived, - fileDeleted: !!data.filedeleted, - xa18: data.xa18 + fileDeleted: !!data.filedeleted }; o.info = { subject: Build.unescape(data.sub), @@ -9260,6 +9263,11 @@ Build = (function() { o.file.dimensions = o.file.width + "x" + o.file.height; } } + for (key in data) { + if (key[0] === 'x') { + o[key] = data[key]; + } + } return o; }, parseComment: function(html) { @@ -9308,7 +9316,7 @@ Build = (function() { postLink = Build.postURL(boardID, threadID, ID); quoteLink = Build.sameThread(boardID, threadID) ? "javascript:quote('" + (+ID) + "');" : "/" + boardID + "/thread/" + threadID + "#q" + ID; postInfo = { - innerHTML: "
" + ((!o.isReply || boardID === "f" || subject) ? "" + E(subject || "") + " " : "") + "" + ((email) ? "" : "") + "" + E(name) + "" + ((tripcode) ? " " + E(tripcode) + "" : "") + ((pass) ? " " : "") + ((capcode) ? " ## " + E(capcode) + "" : "") + ((!capcode && typeof o.xa18 !== "undefined") ? " " : "") + ((email) ? "" : "") + ((boardID === "f" && !o.isReply || capcodeDescription) ? "" : " ") + ((capcodeDescription) ? " \""" : "") + ((uniqueID && !capcode) ? " (ID: " + E(uniqueID) + ")" : "") + ((flagCode) ? " " : "") + ((flagCodeTroll) ? " \""" : "") + " " + E(dateText) + " No." + E(ID) + "" + ((o.isSticky) ? " \"Sticky\"" : "") + ((o.isClosed && !o.isArchived) ? " \"Closed\"" : "") + ((o.isArchived) ? " \"Archived\"" : "") + ((!o.isReply && g.VIEW === "index") ? "   [Reply]" : "") + "
" + innerHTML: "
" + ((!o.isReply || boardID === "f" || subject) ? "" + E(subject || "") + " " : "") + "" + ((email) ? "" : "") + "" + E(name) + "" + ((tripcode) ? " " + E(tripcode) + "" : "") + ((o.xa19s) ? "" + E(o.xa19s) + "" : "") + ((pass) ? " " : "") + ((capcode) ? " ## " + E(capcode) + "" : "") + ((email) ? "" : "") + ((boardID === "f" && !o.isReply || capcodeDescription) ? "" : " ") + ((capcodeDescription) ? " \""" : "") + ((uniqueID && !capcode) ? " (ID: " + E(uniqueID) + ")" : "") + ((flagCode) ? " " : "") + ((flagCodeTroll) ? " \""" : "") + " " + E(dateText) + " No." + E(ID) + "" + ((o.isReply) ? "Like!" + ((o.xa19l) ? " ×" + E(o.xa19l) : "") + "" : "") + ((o.isSticky) ? " \"Sticky\"" : "") + ((o.isClosed && !o.isArchived) ? " \"Closed\"" : "") + ((o.isArchived) ? " \"Archived\"" : "") + ((!o.isReply && g.VIEW === "index") ? "   [Reply]" : "") + "
" }; /* File Info */ @@ -22866,7 +22874,7 @@ QR = (function() { return QR.status(); }, response: function() { - var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; + var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, textContent, threadID, timeout, xa19; req = QR.req; delete QR.req; post = QR.posts[0]; @@ -22952,7 +22960,13 @@ QR = (function() { } QR.cleanNotifications(); if (Conf['Posting Success Notifications']) { - QR.notifications.push(new Notice('success', h1.textContent, 5)); + textContent = h1.textContent; + timeout = 5; + if ((xa19 = resDoc.firstChild.textContent.match(/xa19:(.*):xa19/))) { + textContent += " (score/perks: " + xa19[1] + ")"; + timeout = 20; + } + QR.notifications.push(new Notice('success', textContent, timeout)); } QR.cooldown.add(threadID, postID); URL = threadID === postID ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID : threadID !== g.THREADID && lastPostToThread && Conf['Open Post in New Tab'] ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID + "#p" + postID : void 0; diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 4d042d99f..40d62d4dd 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 f7015f2ea..4346bb918 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.14.5.14 +// @version 1.14.5.15 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.14', + VERSION: '1.14.5.15', NAMESPACE: '4chan X.', boards: {} }; @@ -1390,6 +1390,10 @@ body.is_catalog .thread > a > img {\n\ .nwsb {\n\ display: inline;\n\ }\n\ +.fileText {\n\ + max-width: auto;\n\ + white-space: normal;\n\ +}\n\ /* Ads */\n\ .ad-cnt > *, .adg-rects > *, .bsa-cnt {\n\ height: auto !important;\n\ @@ -9206,7 +9210,7 @@ Build = (function() { } }, parseJSON: function(data, boardID) { - var o; + var key, o; o = { ID: data.no, threadID: data.resto || data.no, @@ -9215,8 +9219,7 @@ Build = (function() { isSticky: !!data.sticky, isClosed: !!data.closed, isArchived: !!data.archived, - fileDeleted: !!data.filedeleted, - xa18: data.xa18 + fileDeleted: !!data.filedeleted }; o.info = { subject: Build.unescape(data.sub), @@ -9260,6 +9263,11 @@ Build = (function() { o.file.dimensions = o.file.width + "x" + o.file.height; } } + for (key in data) { + if (key[0] === 'x') { + o[key] = data[key]; + } + } return o; }, parseComment: function(html) { @@ -9308,7 +9316,7 @@ Build = (function() { postLink = Build.postURL(boardID, threadID, ID); quoteLink = Build.sameThread(boardID, threadID) ? "javascript:quote('" + (+ID) + "');" : "/" + boardID + "/thread/" + threadID + "#q" + ID; postInfo = { - innerHTML: "
" + ((!o.isReply || boardID === "f" || subject) ? "" + E(subject || "") + " " : "") + "" + ((email) ? "" : "") + "" + E(name) + "" + ((tripcode) ? " " + E(tripcode) + "" : "") + ((pass) ? " " : "") + ((capcode) ? " ## " + E(capcode) + "" : "") + ((!capcode && typeof o.xa18 !== "undefined") ? " " : "") + ((email) ? "" : "") + ((boardID === "f" && !o.isReply || capcodeDescription) ? "" : " ") + ((capcodeDescription) ? " \""" : "") + ((uniqueID && !capcode) ? " (ID: " + E(uniqueID) + ")" : "") + ((flagCode) ? " " : "") + ((flagCodeTroll) ? " \""" : "") + " " + E(dateText) + " No." + E(ID) + "" + ((o.isSticky) ? " \"Sticky\"" : "") + ((o.isClosed && !o.isArchived) ? " \"Closed\"" : "") + ((o.isArchived) ? " \"Archived\"" : "") + ((!o.isReply && g.VIEW === "index") ? "   [Reply]" : "") + "
" + innerHTML: "
" + ((!o.isReply || boardID === "f" || subject) ? "" + E(subject || "") + " " : "") + "" + ((email) ? "" : "") + "" + E(name) + "" + ((tripcode) ? " " + E(tripcode) + "" : "") + ((o.xa19s) ? "" + E(o.xa19s) + "" : "") + ((pass) ? " " : "") + ((capcode) ? " ## " + E(capcode) + "" : "") + ((email) ? "" : "") + ((boardID === "f" && !o.isReply || capcodeDescription) ? "" : " ") + ((capcodeDescription) ? " \""" : "") + ((uniqueID && !capcode) ? " (ID: " + E(uniqueID) + ")" : "") + ((flagCode) ? " " : "") + ((flagCodeTroll) ? " \""" : "") + " " + E(dateText) + " No." + E(ID) + "" + ((o.isReply) ? "Like!" + ((o.xa19l) ? " ×" + E(o.xa19l) : "") + "" : "") + ((o.isSticky) ? " \"Sticky\"" : "") + ((o.isClosed && !o.isArchived) ? " \"Closed\"" : "") + ((o.isArchived) ? " \"Archived\"" : "") + ((!o.isReply && g.VIEW === "index") ? "   [Reply]" : "") + "
" }; /* File Info */ @@ -22866,7 +22874,7 @@ QR = (function() { return QR.status(); }, response: function() { - var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; + var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, textContent, threadID, timeout, xa19; req = QR.req; delete QR.req; post = QR.posts[0]; @@ -22952,7 +22960,13 @@ QR = (function() { } QR.cleanNotifications(); if (Conf['Posting Success Notifications']) { - QR.notifications.push(new Notice('success', h1.textContent, 5)); + textContent = h1.textContent; + timeout = 5; + if ((xa19 = resDoc.firstChild.textContent.match(/xa19:(.*):xa19/))) { + textContent += " (score/perks: " + xa19[1] + ")"; + timeout = 20; + } + QR.notifications.push(new Notice('success', textContent, timeout)); } QR.cooldown.add(threadID, postID); URL = threadID === postID ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID : threadID !== g.THREADID && lastPostToThread && Conf['Open Post in New Tab'] ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID + "#p" + postID : void 0; diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index e2f66b84a..7ebf5d364 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 35ddd95fa..79fde227d 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.5.14 +// @version 1.14.5.15 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 0c5cae95f..a7994cc5d 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.5.14 +// @version 1.14.5.15 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.14', + VERSION: '1.14.5.15', NAMESPACE: '4chan X.', boards: {} }; @@ -1390,6 +1390,10 @@ body.is_catalog .thread > a > img {\n\ .nwsb {\n\ display: inline;\n\ }\n\ +.fileText {\n\ + max-width: auto;\n\ + white-space: normal;\n\ +}\n\ /* Ads */\n\ .ad-cnt > *, .adg-rects > *, .bsa-cnt {\n\ height: auto !important;\n\ @@ -9206,7 +9210,7 @@ Build = (function() { } }, parseJSON: function(data, boardID) { - var o; + var key, o; o = { ID: data.no, threadID: data.resto || data.no, @@ -9215,8 +9219,7 @@ Build = (function() { isSticky: !!data.sticky, isClosed: !!data.closed, isArchived: !!data.archived, - fileDeleted: !!data.filedeleted, - xa18: data.xa18 + fileDeleted: !!data.filedeleted }; o.info = { subject: Build.unescape(data.sub), @@ -9260,6 +9263,11 @@ Build = (function() { o.file.dimensions = o.file.width + "x" + o.file.height; } } + for (key in data) { + if (key[0] === 'x') { + o[key] = data[key]; + } + } return o; }, parseComment: function(html) { @@ -9308,7 +9316,7 @@ Build = (function() { postLink = Build.postURL(boardID, threadID, ID); quoteLink = Build.sameThread(boardID, threadID) ? "javascript:quote('" + (+ID) + "');" : "/" + boardID + "/thread/" + threadID + "#q" + ID; postInfo = { - innerHTML: "
" + ((!o.isReply || boardID === "f" || subject) ? "" + E(subject || "") + " " : "") + "" + ((email) ? "" : "") + "" + E(name) + "" + ((tripcode) ? " " + E(tripcode) + "" : "") + ((pass) ? " " : "") + ((capcode) ? " ## " + E(capcode) + "" : "") + ((!capcode && typeof o.xa18 !== "undefined") ? " " : "") + ((email) ? "" : "") + ((boardID === "f" && !o.isReply || capcodeDescription) ? "" : " ") + ((capcodeDescription) ? " \""" : "") + ((uniqueID && !capcode) ? " (ID: " + E(uniqueID) + ")" : "") + ((flagCode) ? " " : "") + ((flagCodeTroll) ? " \""" : "") + " " + E(dateText) + " No." + E(ID) + "" + ((o.isSticky) ? " \"Sticky\"" : "") + ((o.isClosed && !o.isArchived) ? " \"Closed\"" : "") + ((o.isArchived) ? " \"Archived\"" : "") + ((!o.isReply && g.VIEW === "index") ? "   [Reply]" : "") + "
" + innerHTML: "
" + ((!o.isReply || boardID === "f" || subject) ? "" + E(subject || "") + " " : "") + "" + ((email) ? "" : "") + "" + E(name) + "" + ((tripcode) ? " " + E(tripcode) + "" : "") + ((o.xa19s) ? "" + E(o.xa19s) + "" : "") + ((pass) ? " " : "") + ((capcode) ? " ## " + E(capcode) + "" : "") + ((email) ? "" : "") + ((boardID === "f" && !o.isReply || capcodeDescription) ? "" : " ") + ((capcodeDescription) ? " \""" : "") + ((uniqueID && !capcode) ? " (ID: " + E(uniqueID) + ")" : "") + ((flagCode) ? " " : "") + ((flagCodeTroll) ? " \""" : "") + " " + E(dateText) + " No." + E(ID) + "" + ((o.isReply) ? "Like!" + ((o.xa19l) ? " ×" + E(o.xa19l) : "") + "" : "") + ((o.isSticky) ? " \"Sticky\"" : "") + ((o.isClosed && !o.isArchived) ? " \"Closed\"" : "") + ((o.isArchived) ? " \"Archived\"" : "") + ((!o.isReply && g.VIEW === "index") ? "   [Reply]" : "") + "
" }; /* File Info */ @@ -22866,7 +22874,7 @@ QR = (function() { return QR.status(); }, response: function() { - var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; + var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, textContent, threadID, timeout, xa19; req = QR.req; delete QR.req; post = QR.posts[0]; @@ -22952,7 +22960,13 @@ QR = (function() { } QR.cleanNotifications(); if (Conf['Posting Success Notifications']) { - QR.notifications.push(new Notice('success', h1.textContent, 5)); + textContent = h1.textContent; + timeout = 5; + if ((xa19 = resDoc.firstChild.textContent.match(/xa19:(.*):xa19/))) { + textContent += " (score/perks: " + xa19[1] + ")"; + timeout = 20; + } + QR.notifications.push(new Notice('success', textContent, timeout)); } QR.cooldown.add(threadID, postID); URL = threadID === postID ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID : threadID !== g.THREADID && lastPostToThread && Conf['Open Post in New Tab'] ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID + "#p" + postID : void 0; diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index f248742d4..96c42fbdc 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.json b/builds/updates-beta.json index 648b776f9..24b53822c 100644 --- a/builds/updates-beta.json +++ b/builds/updates-beta.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.5.14", + "version": "1.14.5.15", "update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx" } ] diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index 28c92cb5b..57f8e8e43 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.json b/builds/updates.json index faa9a6b39..78a650323 100644 --- a/builds/updates.json +++ b/builds/updates.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.5.14", + "version": "1.14.5.15", "update_link": "https://www.4chan-x.net/builds/4chan-X.crx" } ] diff --git a/builds/updates.xml b/builds/updates.xml index e88c7707d..4bbdb9154 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index 5105f37ec..1d2cb6313 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.14.5.14", - "date": "2019-03-22T09:53:32.789Z" + "version": "1.14.5.15", + "date": "2019-04-01T05:56:03.305Z" } \ No newline at end of file