diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ed81ce56..3d3a5420e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ### v1.13.1 +**v1.13.1.12** *(2016-11-27)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.1.12/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.1.12/builds/4chan-X-noupdate.crx)] +- Fix race condition bug from v1.13.0.0 causing 'Watch thread' item to sometimes not appear in header menu. +- Turn `Auto Prune` in Thread Watcher options back off by default. + **v1.13.1.11** *(2016-11-26)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.1.11/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.1.11/builds/4chan-X-noupdate.crx)] - Revert performance issue fix from v1.13.1.10 as it may cause more issues than it solves. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 39206fa40..88d108297 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 2b77e6aa9..0f4f037ec 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.1.11 +// @version 1.13.1.12 // @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 30c2ed71b..73f0caca0 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.1.11 +// @version 1.13.1.12 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -147,7 +147,7 @@ docSet = function() { }; g = { - VERSION: '1.13.1.11', + VERSION: '1.13.1.12', NAMESPACE: '4chan X.', boards: {} }; @@ -357,7 +357,7 @@ Config = (function() { 'Auto Update Thread Watcher': [true, 'Periodically check status of watched threads.'], 'Auto Watch': [true, 'Automatically watch threads you start.'], 'Auto Watch Reply': [true, 'Automatically watch threads you reply to.'], - 'Auto Prune': [true, 'Automatically remove dead threads.'], + 'Auto Prune': [false, 'Automatically remove dead threads.'], 'Show Unread Count': [true, 'Show number of unread posts in watched threads.'] }, filter: { @@ -11190,7 +11190,7 @@ Settings = (function() { } } if (compareString < '00001.00012.00003.00000') { - ref6 = ['Image Hover in Catalog', 'Auto Watch', 'Auto Watch Reply', 'Auto Prune']; + ref6 = ['Image Hover in Catalog', 'Auto Watch', 'Auto Watch Reply']; for (k = 0, len1 = ref6.length; k < len1; k++) { key = ref6[k]; setD(key, false); @@ -18295,6 +18295,7 @@ ThreadWatcher = (function() { $.on(sc, 'click', this.toggleWatcher); $.on(this.refreshButton, 'click', this.buttonFetchAll); $.on(this.closeButton, 'click', this.toggleWatcher); + this.menu.addHeaderMenuEntry(); $.onExists(doc, 'body', this.addDialog); switch (g.VIEW) { case 'index': @@ -18966,7 +18967,6 @@ ThreadWatcher = (function() { $.on($('.menu-button', ThreadWatcher.dialog), 'click', function(e) { return menu.toggle(e, this, ThreadWatcher); }); - this.addHeaderMenuEntry(); return this.addMenuEntries(); }, addHeaderMenuEntry: function() { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 27ff6340b..b06ea58c6 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 96e759f4f..94392c5be 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.1.11 +// @version 1.13.1.12 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -147,7 +147,7 @@ docSet = function() { }; g = { - VERSION: '1.13.1.11', + VERSION: '1.13.1.12', NAMESPACE: '4chan X.', boards: {} }; @@ -357,7 +357,7 @@ Config = (function() { 'Auto Update Thread Watcher': [true, 'Periodically check status of watched threads.'], 'Auto Watch': [true, 'Automatically watch threads you start.'], 'Auto Watch Reply': [true, 'Automatically watch threads you reply to.'], - 'Auto Prune': [true, 'Automatically remove dead threads.'], + 'Auto Prune': [false, 'Automatically remove dead threads.'], 'Show Unread Count': [true, 'Show number of unread posts in watched threads.'] }, filter: { @@ -11190,7 +11190,7 @@ Settings = (function() { } } if (compareString < '00001.00012.00003.00000') { - ref6 = ['Image Hover in Catalog', 'Auto Watch', 'Auto Watch Reply', 'Auto Prune']; + ref6 = ['Image Hover in Catalog', 'Auto Watch', 'Auto Watch Reply']; for (k = 0, len1 = ref6.length; k < len1; k++) { key = ref6[k]; setD(key, false); @@ -18295,6 +18295,7 @@ ThreadWatcher = (function() { $.on(sc, 'click', this.toggleWatcher); $.on(this.refreshButton, 'click', this.buttonFetchAll); $.on(this.closeButton, 'click', this.toggleWatcher); + this.menu.addHeaderMenuEntry(); $.onExists(doc, 'body', this.addDialog); switch (g.VIEW) { case 'index': @@ -18966,7 +18967,6 @@ ThreadWatcher = (function() { $.on($('.menu-button', ThreadWatcher.dialog), 'click', function(e) { return menu.toggle(e, this, ThreadWatcher); }); - this.addHeaderMenuEntry(); return this.addMenuEntries(); }, addHeaderMenuEntry: function() { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index bceef50f3..6972f59d1 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 ba3333405..0f3861dcd 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.13.1.11 +// @version 1.13.1.12 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 5270471ba..8508c2cf3 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.13.1.11 +// @version 1.13.1.12 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -147,7 +147,7 @@ docSet = function() { }; g = { - VERSION: '1.13.1.11', + VERSION: '1.13.1.12', NAMESPACE: '4chan X.', boards: {} }; @@ -357,7 +357,7 @@ Config = (function() { 'Auto Update Thread Watcher': [true, 'Periodically check status of watched threads.'], 'Auto Watch': [true, 'Automatically watch threads you start.'], 'Auto Watch Reply': [true, 'Automatically watch threads you reply to.'], - 'Auto Prune': [true, 'Automatically remove dead threads.'], + 'Auto Prune': [false, 'Automatically remove dead threads.'], 'Show Unread Count': [true, 'Show number of unread posts in watched threads.'] }, filter: { @@ -11190,7 +11190,7 @@ Settings = (function() { } } if (compareString < '00001.00012.00003.00000') { - ref6 = ['Image Hover in Catalog', 'Auto Watch', 'Auto Watch Reply', 'Auto Prune']; + ref6 = ['Image Hover in Catalog', 'Auto Watch', 'Auto Watch Reply']; for (k = 0, len1 = ref6.length; k < len1; k++) { key = ref6[k]; setD(key, false); @@ -18295,6 +18295,7 @@ ThreadWatcher = (function() { $.on(sc, 'click', this.toggleWatcher); $.on(this.refreshButton, 'click', this.buttonFetchAll); $.on(this.closeButton, 'click', this.toggleWatcher); + this.menu.addHeaderMenuEntry(); $.onExists(doc, 'body', this.addDialog); switch (g.VIEW) { case 'index': @@ -18966,7 +18967,6 @@ ThreadWatcher = (function() { $.on($('.menu-button', ThreadWatcher.dialog), 'click', function(e) { return menu.toggle(e, this, ThreadWatcher); }); - this.addHeaderMenuEntry(); return this.addMenuEntries(); }, addHeaderMenuEntry: function() { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index cc7258bb5..612c3247b 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 1050a151e..6fb69cd1c 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 955cba155..43be9b1d0 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index d9cbd4500..c43a760dc 100644 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -24,6 +24,7 @@ ThreadWatcher = $.on @refreshButton, 'click', @buttonFetchAll $.on @closeButton, 'click', @toggleWatcher + @menu.addHeaderMenuEntry() $.onExists doc, 'body', @addDialog switch g.VIEW @@ -414,7 +415,6 @@ ThreadWatcher = menu = @menu = new UI.Menu 'thread watcher' $.on $('.menu-button', ThreadWatcher.dialog), 'click', (e) -> menu.toggle e, @, ThreadWatcher - @addHeaderMenuEntry() @addMenuEntries() addHeaderMenuEntry: -> diff --git a/version.json b/version.json index ed1080dbb..84c96bf70 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.13.1.11", - "date": "2016-11-26T10:56:59.519Z" + "version": "1.13.1.12", + "date": "2016-11-27T03:18:15.395Z" } \ No newline at end of file