diff --git a/CHANGELOG.md b/CHANGELOG.md index af36153e9..3c84dfa21 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ The attributions below are for work that has been incorporated into the script a The links to individual versions below are to copies of the script with the update URL removed. If you want automatic updates, install the script from the links on the [main page](https://github.com/ccd0/4chan-x). +### v1.9.22.2 +*2015-02-01* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.22.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.22.2/builds/4chan-X-noupdate.crx "Chromium version")] + +- 4chan X will now remember your last index mode regardless of how it was chosen (previously only index modes chosen with the drop-down menu were considered permanent choices). + ### v1.9.22.1 *2015-02-01* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.22.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.22.1/builds/4chan-X-noupdate.crx "Chromium version")] diff --git a/LICENSE b/LICENSE index 0c1a64788..53c56612e 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.9.22.1 +* 4chan X - Version 1.9.22.2 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 8b9b09aa6..0db63eacd 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 ec9aee9f1..83fb4d348 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.9.22.1 +// @version 1.9.22.2 // @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 1e94a6f9e..0c62e8c09 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.9.22.1 +// @version 1.9.22.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -25,7 +25,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.9.22.1 +* 4chan X - Version 1.9.22.2 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -400,7 +400,7 @@ doc = d.documentElement; g = { - VERSION: '1.9.22.1', + VERSION: '1.9.22.2', NAMESPACE: '4chan X.', NAME: '4chan X', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', @@ -2956,7 +2956,8 @@ state.search = Index.search = search; } if (Conf['Index Mode'] !== mode) { - state.mode = Conf['Index Mode'] = mode; + state.mode = mode; + Index.saveMode(mode); } if (Index.currentPage !== page) { state.page = Index.currentPage = page; @@ -3063,7 +3064,7 @@ if (mode === Conf['Index Mode']) { delete state.mode; } - Conf['Index Mode'] = mode; + Index.saveMode(mode); if (mode === 'all pages' || mode === 'catalog') { state.page = 1; } @@ -3085,6 +3086,14 @@ }, '', pathname + hash); return state; }, + saveMode: function(mode) { + Conf['Index Mode'] = mode; + $.set('Index Mode', mode); + if (mode !== 'catalog') { + Conf['Previous Index Mode'] = mode; + return $.set('Previous Index Mode', mode); + } + }, pageLoad: function(_arg) { var mode, scroll, search, sort; sort = _arg.sort, search = _arg.search, mode = _arg.mode, scroll = _arg.scroll; diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index e76cf31fc..648f32e70 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 c2cc531a4..2f7d8c5dd 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.9.22.1 +// @version 1.9.22.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.9.22.1 +* 4chan X - Version 1.9.22.2 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -399,7 +399,7 @@ doc = d.documentElement; g = { - VERSION: '1.9.22.1', + VERSION: '1.9.22.2', NAMESPACE: '4chan X.', NAME: '4chan X', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', @@ -2955,7 +2955,8 @@ state.search = Index.search = search; } if (Conf['Index Mode'] !== mode) { - state.mode = Conf['Index Mode'] = mode; + state.mode = mode; + Index.saveMode(mode); } if (Index.currentPage !== page) { state.page = Index.currentPage = page; @@ -3062,7 +3063,7 @@ if (mode === Conf['Index Mode']) { delete state.mode; } - Conf['Index Mode'] = mode; + Index.saveMode(mode); if (mode === 'all pages' || mode === 'catalog') { state.page = 1; } @@ -3084,6 +3085,14 @@ }, '', pathname + hash); return state; }, + saveMode: function(mode) { + Conf['Index Mode'] = mode; + $.set('Index Mode', mode); + if (mode !== 'catalog') { + Conf['Previous Index Mode'] = mode; + return $.set('Previous Index Mode', mode); + } + }, pageLoad: function(_arg) { var mode, scroll, search, sort; sort = _arg.sort, search = _arg.search, mode = _arg.mode, scroll = _arg.scroll; diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 16a423e0a..98d110b18 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 66c43e69d..b96da6b45 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.9.22.1 +// @version 1.9.22.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 7f21c50f7..99ca053dc 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.9.22.1 +// @version 1.9.22.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -25,7 +25,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.9.22.1 +* 4chan X - Version 1.9.22.2 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -400,7 +400,7 @@ doc = d.documentElement; g = { - VERSION: '1.9.22.1', + VERSION: '1.9.22.2', NAMESPACE: '4chan X.', NAME: '4chan X', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', @@ -2956,7 +2956,8 @@ state.search = Index.search = search; } if (Conf['Index Mode'] !== mode) { - state.mode = Conf['Index Mode'] = mode; + state.mode = mode; + Index.saveMode(mode); } if (Index.currentPage !== page) { state.page = Index.currentPage = page; @@ -3063,7 +3064,7 @@ if (mode === Conf['Index Mode']) { delete state.mode; } - Conf['Index Mode'] = mode; + Index.saveMode(mode); if (mode === 'all pages' || mode === 'catalog') { state.page = 1; } @@ -3085,6 +3086,14 @@ }, '', pathname + hash); return state; }, + saveMode: function(mode) { + Conf['Index Mode'] = mode; + $.set('Index Mode', mode); + if (mode !== 'catalog') { + Conf['Previous Index Mode'] = mode; + return $.set('Previous Index Mode', mode); + } + }, pageLoad: function(_arg) { var mode, scroll, search, sort; sort = _arg.sort, search = _arg.search, mode = _arg.mode, scroll = _arg.scroll; diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index c72036521..c8d3a9464 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 50e7b782f..00380b68d 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 66fef7575..5738711a7 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/package.json b/package.json index 77fa52f9d..e6f7bc13e 100755 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Cross-browser userscript for maximum lurking on 4chan.", "meta": { "name": "4chan X", - "version": "1.9.22.1", + "version": "1.9.22.2", "repo": "https://github.com/ccd0/4chan-x/", "page": "https://github.com/ccd0/4chan-x", "downloads": "https://ccd0.github.io/4chan-x/builds/",