diff --git a/CHANGELOG.md b/CHANGELOG.md index 45defa552..94a414dce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ### v1.14.5 +**v1.14.5.9** *(2019-01-24)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.9/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.9/builds/4chan-X-noupdate.crx)] +- Don't re-insert unread line unless it needs to move. #2214 + **v1.14.5.8** *(2019-01-24)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.8/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.8/builds/4chan-X-noupdate.crx)] - Restore updating faster than 30 seconds after 4chan change. - Fix false detection of posts added by updater on Tinyboard as own posts. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index e352061ab..e68734865 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 49dc6fcab..a028fe34b 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.8 +// @version 1.14.5.9 // @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 0c9d23b6f..2e03c5c87 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.8 +// @version 1.14.5.9 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.8', + VERSION: '1.14.5.9', NAMESPACE: '4chan X.', boards: {} }; @@ -21026,12 +21026,16 @@ Unread = (function() { }); }), setLine: function(force) { + var oldPosition; if (!Conf['Unread Line']) { return; } if (Unread.hr.hidden || d.hidden || (force === true)) { + oldPosition = Unread.linePosition; if ((Unread.linePosition = Unread.positionPrev())) { - $.after(Unread.linePosition.data.nodes.bottom, Unread.hr); + if (Unread.linePosition !== oldPosition) { + $.after(Unread.linePosition.data.nodes.bottom, Unread.hr); + } } else { $.rm(Unread.hr); } diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index b561556f5..1a25b6895 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 479fbfd89..5b6cddfe4 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.8 +// @version 1.14.5.9 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.8', + VERSION: '1.14.5.9', NAMESPACE: '4chan X.', boards: {} }; @@ -21026,12 +21026,16 @@ Unread = (function() { }); }), setLine: function(force) { + var oldPosition; if (!Conf['Unread Line']) { return; } if (Unread.hr.hidden || d.hidden || (force === true)) { + oldPosition = Unread.linePosition; if ((Unread.linePosition = Unread.positionPrev())) { - $.after(Unread.linePosition.data.nodes.bottom, Unread.hr); + if (Unread.linePosition !== oldPosition) { + $.after(Unread.linePosition.data.nodes.bottom, Unread.hr); + } } else { $.rm(Unread.hr); } diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 24bdd4e82..3115a9086 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 46f9928b4..ba11114c7 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.8 +// @version 1.14.5.9 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index b2d6f4294..ccefa1dd3 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.8 +// @version 1.14.5.9 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.8', + VERSION: '1.14.5.9', NAMESPACE: '4chan X.', boards: {} }; @@ -21026,12 +21026,16 @@ Unread = (function() { }); }), setLine: function(force) { + var oldPosition; if (!Conf['Unread Line']) { return; } if (Unread.hr.hidden || d.hidden || (force === true)) { + oldPosition = Unread.linePosition; if ((Unread.linePosition = Unread.positionPrev())) { - $.after(Unread.linePosition.data.nodes.bottom, Unread.hr); + if (Unread.linePosition !== oldPosition) { + $.after(Unread.linePosition.data.nodes.bottom, Unread.hr); + } } else { $.rm(Unread.hr); } diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 0ce87be03..65221ad86 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 c79e48c0f..470070723 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.8", + "version": "1.14.5.9", "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 7328992aa..f81f98417 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 c58d172aa..8e2740b53 100644 --- a/builds/updates.json +++ b/builds/updates.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.5.8", + "version": "1.14.5.9", "update_link": "https://www.4chan-x.net/builds/4chan-X.crx" } ] diff --git a/builds/updates.xml b/builds/updates.xml index b3acf44a3..361141eea 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index eb943e145..4756b8bb2 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.14.5.8", - "date": "2019-01-24T22:03:35.429Z" + "version": "1.14.5.9", + "date": "2019-01-24T23:40:36.678Z" } \ No newline at end of file