diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b86b4e44..d6cc57028 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,11 @@ The links to individual versions below are to copies of the script with the upda - (Zixaphir, ccd0) Various other minor changes and bugfixes. +### v1.9.23.11 +*2015-02-12* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.23.11/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.23.11/builds/4chan-X-noupdate.crx "Chromium version")] + +- Fix importing/resetting settings in Firefox 35+. + ### v1.9.23.10 *2015-02-11* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.23.10/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.23.10/builds/4chan-X-noupdate.crx "Chromium version")] diff --git a/src/General/lib/$.coffee b/src/General/lib/$.coffee index 8d7700ee2..d4bb4ce10 100755 --- a/src/General/lib/$.coffee +++ b/src/General/lib/$.coffee @@ -495,7 +495,16 @@ $.set = do -> set key, val return $.clear = (cb) -> - $.delete GM_listValues().map (key) -> key.replace g.NAMESPACE, '' + try + $.delete GM_listValues().map (key) -> key.replace g.NAMESPACE, '' + catch err + # XXX https://github.com/greasemonkey/greasemonkey/issues/2033 + $.delete Object.keys(Conf) + $.delete ['previousversion', 'AutoWatch', 'cooldown.global', 'QR Size', 'captchas', 'QR.persona', 'hiddenPSA'] + $.delete ("#{id}.position" for id in ['embedding', 'updater', 'thread-stats', 'thread-watcher', 'qr']) + boards = (a.textContent for a in $$ '#boardNavDesktop > .boardList > a') + boards.push 'qa' + $.delete ("cooldown.#{board}" for board in boards) cb?() <% } %>