Update settings import from loadletter fork.
This commit is contained in:
parent
9b99127d26
commit
2cc144b535
@ -259,17 +259,20 @@ Settings =
|
|||||||
'Disable 4chan\'s extension': 'Disable Native Extension'
|
'Disable 4chan\'s extension': 'Disable Native Extension'
|
||||||
'Comment Auto-Expansion': ''
|
'Comment Auto-Expansion': ''
|
||||||
'Remove Slug': ''
|
'Remove Slug': ''
|
||||||
|
'Always HTTPS': 'Redirect to HTTPS'
|
||||||
'Check for Updates': ''
|
'Check for Updates': ''
|
||||||
'Recursive Filtering': 'Recursive Hiding'
|
'Recursive Filtering': 'Recursive Hiding'
|
||||||
'Reply Hiding': 'Reply Hiding Buttons'
|
'Reply Hiding': 'Reply Hiding Buttons'
|
||||||
'Thread Hiding': 'Thread Hiding Buttons'
|
'Thread Hiding': 'Thread Hiding Buttons'
|
||||||
'Show Stubs': 'Stubs'
|
'Show Stubs': 'Stubs'
|
||||||
'Image Auto-Gif': 'Replace GIF'
|
'Image Auto-Gif': 'Replace GIF'
|
||||||
|
'Expand All WebM': 'Expand videos'
|
||||||
'Reveal Spoilers': 'Reveal Spoiler Thumbnails'
|
'Reveal Spoilers': 'Reveal Spoiler Thumbnails'
|
||||||
'Expand From Current': 'Expand from here'
|
'Expand From Current': 'Expand from here'
|
||||||
'Current Page': 'Page Count in Stats'
|
'Current Page': 'Page Count in Stats'
|
||||||
'Current Page Position': ''
|
'Current Page Position': ''
|
||||||
'Alternative captcha': 'Use Recaptcha v1'
|
'Alternative captcha': 'Use Recaptcha v1'
|
||||||
|
'Alt index captcha': 'Use Recaptcha v1 on Index'
|
||||||
'Auto Submit': 'Post on Captcha Completion'
|
'Auto Submit': 'Post on Captcha Completion'
|
||||||
'Open Reply in New Tab': 'Open Post in New Tab'
|
'Open Reply in New Tab': 'Open Post in New Tab'
|
||||||
'Remember QR size': 'Remember QR Size'
|
'Remember QR size': 'Remember QR Size'
|
||||||
@ -293,6 +296,7 @@ Settings =
|
|||||||
'spoiler': 'Spoiler tags'
|
'spoiler': 'Spoiler tags'
|
||||||
'sageru': 'Toggle sage'
|
'sageru': 'Toggle sage'
|
||||||
'code': 'Code tags'
|
'code': 'Code tags'
|
||||||
|
'sjis': 'SJIS tags'
|
||||||
'submit': 'Submit QR'
|
'submit': 'Submit QR'
|
||||||
'watch': 'Watch'
|
'watch': 'Watch'
|
||||||
'update': 'Update'
|
'update': 'Update'
|
||||||
@ -313,6 +317,9 @@ Settings =
|
|||||||
# updater
|
# updater
|
||||||
'Scrolling': 'Auto Scroll'
|
'Scrolling': 'Auto Scroll'
|
||||||
'Verbose': ''
|
'Verbose': ''
|
||||||
|
if 'Always CDN' of data.Conf
|
||||||
|
data.Conf['fourchanImageHost'] = if data.Conf['Always CDN'] then 'i.4cdn.org' else ''
|
||||||
|
delete data.Conf['Always CDN']
|
||||||
data.Conf.sauces = data.Conf.sauces.replace /\$\d/g, (c) ->
|
data.Conf.sauces = data.Conf.sauces.replace /\$\d/g, (c) ->
|
||||||
switch c
|
switch c
|
||||||
when '$1'
|
when '$1'
|
||||||
@ -329,10 +336,10 @@ Settings =
|
|||||||
data.Conf[key] = data.Conf[key].replace(/ctrl|alt|meta/g, (s) -> "#{s[0].toUpperCase()}#{s[1..]}").replace /(^|.+\+)[A-Z]$/g, (s) ->
|
data.Conf[key] = data.Conf[key].replace(/ctrl|alt|meta/g, (s) -> "#{s[0].toUpperCase()}#{s[1..]}").replace /(^|.+\+)[A-Z]$/g, (s) ->
|
||||||
"Shift+#{s[0...-1]}#{s[-1..].toLowerCase()}"
|
"Shift+#{s[0...-1]}#{s[-1..].toLowerCase()}"
|
||||||
if data.WatchedThreads
|
if data.WatchedThreads
|
||||||
data.Conf['watchedThreads'] = boards: $.dict()
|
data.Conf['watchedThreads'] = $.dict.clone {'4chan.org': {boards: {}}}
|
||||||
for boardID, threads of data.WatchedThreads
|
for boardID, threads of data.WatchedThreads
|
||||||
for threadID, threadData of threads
|
for threadID, threadData of threads
|
||||||
(data.Conf['watchedThreads'].boards[boardID] or= $.dict())[threadID] = excerpt: threadData.textContent
|
(data.Conf['watchedThreads']['4chan.org'].boards[boardID] or= $.dict())[threadID] = excerpt: threadData.textContent
|
||||||
data
|
data
|
||||||
|
|
||||||
upgrade: (data, version) ->
|
upgrade: (data, version) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user