diff --git a/src/General/Main.coffee b/src/General/Main.coffee
index 86db2a84f..b6e11514f 100755
--- a/src/General/Main.coffee
+++ b/src/General/Main.coffee
@@ -186,9 +186,8 @@ Main =
$.get 'previousversion', null, ({previousversion}) ->
return if previousversion is g.VERSION
if previousversion
- changelog = '<%= meta.repo %>blob/<%= meta.mainBranch %>/CHANGELOG.md'
el = $.el 'span',
- innerHTML: "<%= meta.name %> has been updated to version #{g.VERSION}."
+ innerHTML: '<%= meta.name %> has been updated to version <%= version %>.'
new Notice 'info', el, 15
else
Settings.open()
@@ -243,7 +242,7 @@ Main =
return
div = $.el 'div',
- innerHTML: "#{errors.length} errors occurred. [show]"
+ innerHTML: "#{+errors.length} errors occurred. [show]"
$.on div.lastElementChild, 'click', ->
[@textContent, logs.hidden] = if @textContent is 'show'
['hide', false]
diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee
index c50bdad80..f228b9031 100755
--- a/src/General/Settings.coffee
+++ b/src/General/Settings.coffee
@@ -28,15 +28,13 @@ Settings =
return if Settings.dialog
$.event 'CloseMenu'
- html = <%= importHTML('Settings/Settings') %>
-
Settings.overlay = overlay = $.el 'div',
id: 'overlay'
Settings.dialog = dialog = $.el 'div',
id: 'fourchanx-settings'
className: 'dialog'
- innerHTML: html
+ innerHTML: <%= importHTML('Settings/Settings') %>
$.on $('.export', Settings.dialog), 'click', Settings.export
$.on $('.import', Settings.dialog), 'click', Settings.import
@@ -92,7 +90,8 @@ Settings =
inputs = {}
for key, obj of Config.main
fs = $.el 'fieldset',
- innerHTML: ""
+ innerHTML: ''
+ fs.firstElementChild.textContent = key
for key, arr of obj
description = arr[1]
div = $.el 'div'
@@ -113,7 +112,7 @@ Settings =
return
div = $.el 'div',
- innerHTML: ": Clear manually-hidden threads and posts on all boards. Reload the page to apply."
+ innerHTML: ': Clear manually-hidden threads and posts on all boards. Reload the page to apply.'
button = $ 'button', div
$.get {hiddenThreads: {}, hiddenPosts: {}}, ({hiddenThreads, hiddenPosts}) ->
hiddenNum = 0
@@ -422,16 +421,13 @@ Settings =
favicon: ->
Favicon.switch()
Unread.update() if g.VIEW is 'thread' and Conf['Unread Favicon']
- @nextElementSibling.innerHTML = """
-
-
-
-
- """
+ img = @nextElementSibling.children
+ img[0].src = Favicon.default
+ img[1].src = Favicon.unreadSFW
+ img[2].src = Favicon.unreadNSFW
+ img[3].src = Favicon.unreadDead
sageEmoji: ->
- @nextElementSibling.innerHTML = """
-
- """
+ @nextElementSibling.firstElementChild.src = "data:image/png;base64,#{Emoji.sage[@value]}"
togglecss: ->
if $('textarea[name=usercss]', $.x 'ancestor::fieldset[1]', @).disabled = !@checked
CustomCSS.rmStyle()
@@ -450,7 +446,8 @@ Settings =
inputs = {}
for key, arr of Config.hotkeys
tr = $.el 'tr',
- innerHTML: "