From acd4eef587f2e6cca54fa3270825ea849b81ad40 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 15 Nov 2015 21:33:16 -0800 Subject: [PATCH] Persistent QR off, and other defaults changes. #584 --- src/General/Config.coffee | 12 ++++++------ src/General/Settings.coffee | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/General/Config.coffee b/src/General/Config.coffee index f6b57155b..f5293e97f 100644 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -98,7 +98,7 @@ Config = 'Show notifications when <%= meta.name %> is successfully updated.' ] 'Color User IDs': [ - false + true 'Assign unique colors to user IDs on boards that use them' ] 'Remove Spoilers': [ @@ -251,11 +251,11 @@ Config = 'Add link in header menu to turn on image preloading.' ] 'Fappe Tyme': [ - false + true 'Hide posts without images when header menu item is checked. *hint* *hint*' ] 'Werk Tyme': [ - false + true 'Hide all post images when header menu item is checked.' ] 'Autoplay': [ @@ -415,7 +415,7 @@ Config = 1 ] 'Persistent QR': [ - true + false 'The Quick reply won\'t disappear after posting.' 1 ] @@ -549,12 +549,12 @@ Config = 'Add \'(You)\' to quotes linking to your posts.' ] 'Highlight Posts Quoting You': [ - false + true 'Highlights any posts that contain a quote to your post.' 1 ] 'Highlight Own Posts': [ - false + true 'Highlights own posts if Mark Quotes of You is enabled.' 1 ] diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index 8d2c39ce0..ef49ca063 100644 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -297,6 +297,9 @@ Settings = if (rice = Config['usercss'].match(/\/\* Board title rice \*\/(?:\n.+)*/)[0]) if data['usercss']? and data['usercss'].indexOf(rice) < 0 changes['usercss'] = rice + '\n\n' + data['usercss'] + if compareString < '00001.00011.00017.00000' + for key in ['Persistent QR', 'Color User IDs', 'Fappe Tyme', 'Werk Tyme', 'Highlight Posts Quoting You', 'Highlight Own Posts'] + changes[key] = (key is 'Persistent QR') unless data[key]? changes loadSettings: (data, cb) ->