Remove unneeded escaping.
This commit is contained in:
parent
20b5dac267
commit
1c81838a91
@ -5,9 +5,6 @@ doc = d.documentElement
|
|||||||
g =
|
g =
|
||||||
VERSION: '<%= meta.version %>'
|
VERSION: '<%= meta.version %>'
|
||||||
NAMESPACE: '<%= meta.name %>.'
|
NAMESPACE: '<%= meta.name %>.'
|
||||||
NAME: '<%= meta.name %>'
|
|
||||||
FAQ: '<%= meta.faq %>'
|
|
||||||
CHANGELOG: '<%= meta.repo %>blob/<%= meta.mainBranch %>/CHANGELOG.md'
|
|
||||||
boards: {}
|
boards: {}
|
||||||
|
|
||||||
E = do ->
|
E = do ->
|
||||||
|
|||||||
@ -508,8 +508,8 @@ Header =
|
|||||||
|
|
||||||
el = $.el 'span',
|
el = $.el 'span',
|
||||||
<%= html(
|
<%= html(
|
||||||
'${g.NAME} needs your permission to show desktop notifications. ' +
|
meta.name + ' needs your permission to show desktop notifications. ' +
|
||||||
'[<a href="${g.FAQ}#why-is-4chan-x-asking-for-permission-to-show-desktop-notifications" target="_blank">FAQ</a>]<br>' +
|
'[<a href="' + meta.faq + '#why-is-4chan-x-asking-for-permission-to-show-desktop-notifications" target="_blank">FAQ</a>]<br>' +
|
||||||
'<button>Authorize</button> or <button>Disable</button>'
|
'<button>Authorize</button> or <button>Disable</button>'
|
||||||
) %>
|
) %>
|
||||||
[authorize, disable] = $$ 'button', el
|
[authorize, disable] = $$ 'button', el
|
||||||
|
|||||||
@ -168,7 +168,7 @@ Main =
|
|||||||
return if previousversion is g.VERSION
|
return if previousversion is g.VERSION
|
||||||
if previousversion
|
if previousversion
|
||||||
el = $.el 'span',
|
el = $.el 'span',
|
||||||
<%= html('${g.NAME} has been updated to <a href="${g.CHANGELOG}" target="_blank">version ${g.VERSION}</a>.') %>
|
<%= html(meta.name + ' has been updated to <a href="' + meta.repo + 'blob/' + meta.mainBranch + '/CHANGELOG.md" target="_blank">version ' + meta.version + '</a>.') %>
|
||||||
new Notice 'info', el, 15
|
new Notice 'info', el, 15
|
||||||
else
|
else
|
||||||
Settings.open()
|
Settings.open()
|
||||||
|
|||||||
@ -48,8 +48,8 @@ $.ajax = do ->
|
|||||||
blockedURLs[url] = true
|
blockedURLs[url] = true
|
||||||
message = $.el 'div',
|
message = $.el 'div',
|
||||||
<%= html(
|
<%= html(
|
||||||
'${g.NAME} was blocked from loading the following URL:<br><span></span><br>' +
|
meta.name + ' was blocked from loading the following URL:<br><span></span><br>' +
|
||||||
'[<a href="${g.FAQ}#why-was-4chan-x-blocked-from-loading-a-url" target="_blank">More info</a>]'
|
'[<a href="' + meta.faq + '#why-was-4chan-x-blocked-from-loading-a-url" target="_blank">More info</a>]'
|
||||||
) %>
|
) %>
|
||||||
$('span', message).textContent = (if /^\/\//.test url then location.protocol else '') + url
|
$('span', message).textContent = (if /^\/\//.test url then location.protocol else '') + url
|
||||||
new Notice 'error', message, 30, -> delete blockedURLs[url]
|
new Notice 'error', message, 30, -> delete blockedURLs[url]
|
||||||
|
|||||||
@ -625,7 +625,7 @@ QR =
|
|||||||
<%= html(
|
<%= html(
|
||||||
meta.name + ' encountered an error while posting. ' +
|
meta.name + ' encountered an error while posting. ' +
|
||||||
'[<a href="//4chan.org/banned" target="_blank">Banned?</a>] ' +
|
'[<a href="//4chan.org/banned" target="_blank">Banned?</a>] ' +
|
||||||
'[<a href="${g.FAQ}#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean" target="_blank">More info</a>]'
|
'[<a href="' + meta.faq + '#what-does-4chan-x-encountered-an-error-while-posting-please-try-again-mean" target="_blank">More info</a>]'
|
||||||
) %>
|
) %>
|
||||||
extra =
|
extra =
|
||||||
form: $.formData formData
|
form: $.formData formData
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user