Replace a few innerHTML = to textContent =
This commit is contained in:
parent
257a31f8be
commit
06e450160f
@ -719,7 +719,7 @@
|
|||||||
a = $('.omittedposts', thread);
|
a = $('.omittedposts', thread);
|
||||||
switch (a.textContent[0]) {
|
switch (a.textContent[0]) {
|
||||||
case '+':
|
case '+':
|
||||||
if ((_ref = $('.op .container', thread)) != null) _ref.innerHTML = '';
|
if ((_ref = $('.op .container', thread)) != null) _ref.textContent = '';
|
||||||
a.textContent = a.textContent.replace('+', 'X Loading...');
|
a.textContent = a.textContent.replace('+', 'X Loading...');
|
||||||
return $.cache(pathname, (function() {
|
return $.cache(pathname, (function() {
|
||||||
return expandThread.parse(this, pathname, thread, a);
|
return expandThread.parse(this, pathname, thread, a);
|
||||||
@ -2963,7 +2963,7 @@
|
|||||||
var body, href, html, link, newInline, op, quote, reply, _i, _j, _len, _len2, _ref, _ref2;
|
var body, href, html, link, newInline, op, quote, reply, _i, _j, _len, _len2, _ref, _ref2;
|
||||||
if (!inline.parentNode) return;
|
if (!inline.parentNode) return;
|
||||||
if (req.status !== 200) {
|
if (req.status !== 200) {
|
||||||
inline.innerHTML = "" + req.status + " " + req.statusText;
|
inline.textContent = "" + req.status + " " + req.statusText;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
body = $.el('body', {
|
body = $.el('body', {
|
||||||
@ -3040,7 +3040,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
qp.innerHTML = "Loading " + id + "...";
|
qp.textContent = "Loading " + id + "...";
|
||||||
threadID = this.pathname.split('/').pop() || $.x('ancestor::div[@class="thread"]', this).firstChild.id;
|
threadID = this.pathname.split('/').pop() || $.x('ancestor::div[@class="thread"]', this).firstChild.id;
|
||||||
$.cache(this.pathname, (function() {
|
$.cache(this.pathname, (function() {
|
||||||
return quotePreview.parse(this, id, threadID);
|
return quotePreview.parse(this, id, threadID);
|
||||||
@ -3063,7 +3063,7 @@
|
|||||||
var body, html, op, qp, reply, _i, _len, _ref;
|
var body, html, op, qp, reply, _i, _len, _ref;
|
||||||
if (!((qp = ui.el) && (qp.innerHTML === ("Loading " + id + "...")))) return;
|
if (!((qp = ui.el) && (qp.innerHTML === ("Loading " + id + "...")))) return;
|
||||||
if (req.status !== 200) {
|
if (req.status !== 200) {
|
||||||
qp.innerHTML = "" + req.status + " " + req.statusText;
|
qp.textContent = "" + req.status + " " + req.statusText;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
body = $.el('body', {
|
body = $.el('body', {
|
||||||
@ -3476,7 +3476,7 @@
|
|||||||
return $.prepend(form, controls);
|
return $.prepend(form, controls);
|
||||||
},
|
},
|
||||||
resize: function() {
|
resize: function() {
|
||||||
return imgExpand.style.innerHTML = ".fitheight img[md5] + img {max-height:" + d.body.clientHeight + "px;}";
|
return imgExpand.style.textContent = ".fitheight img[md5] + img {max-height:" + d.body.clientHeight + "px;}";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -531,7 +531,7 @@ expandThread =
|
|||||||
|
|
||||||
switch a.textContent[0]
|
switch a.textContent[0]
|
||||||
when '+'
|
when '+'
|
||||||
$('.op .container', thread)?.innerHTML = ''
|
$('.op .container', thread)?.textContent = ''
|
||||||
a.textContent = a.textContent.replace '+', 'X Loading...'
|
a.textContent = a.textContent.replace '+', 'X Loading...'
|
||||||
$.cache pathname, (-> expandThread.parse @, pathname, thread, a)
|
$.cache pathname, (-> expandThread.parse @, pathname, thread, a)
|
||||||
|
|
||||||
@ -2343,7 +2343,7 @@ quoteInline =
|
|||||||
return unless inline.parentNode
|
return unless inline.parentNode
|
||||||
|
|
||||||
if req.status isnt 200
|
if req.status isnt 200
|
||||||
inline.innerHTML = "#{req.status} #{req.statusText}"
|
inline.textContent = "#{req.status} #{req.statusText}"
|
||||||
return
|
return
|
||||||
|
|
||||||
body = $.el 'body',
|
body = $.el 'body',
|
||||||
@ -2397,7 +2397,7 @@ quotePreview =
|
|||||||
if quote.hash[1..] is replyID
|
if quote.hash[1..] is replyID
|
||||||
quote.className = 'forwardlink'
|
quote.className = 'forwardlink'
|
||||||
else
|
else
|
||||||
qp.innerHTML = "Loading #{id}..."
|
qp.textContent = "Loading #{id}..."
|
||||||
threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]', @).firstChild.id
|
threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]', @).firstChild.id
|
||||||
$.cache @pathname, (-> quotePreview.parse @, id, threadID)
|
$.cache @pathname, (-> quotePreview.parse @, id, threadID)
|
||||||
ui.hover e
|
ui.hover e
|
||||||
@ -2415,7 +2415,7 @@ quotePreview =
|
|||||||
return unless (qp = ui.el) and (qp.innerHTML is "Loading #{id}...")
|
return unless (qp = ui.el) and (qp.innerHTML is "Loading #{id}...")
|
||||||
|
|
||||||
if req.status isnt 200
|
if req.status isnt 200
|
||||||
qp.innerHTML = "#{req.status} #{req.statusText}"
|
qp.textContent = "#{req.status} #{req.statusText}"
|
||||||
return
|
return
|
||||||
|
|
||||||
body = $.el 'body',
|
body = $.el 'body',
|
||||||
@ -2739,7 +2739,7 @@ imgExpand =
|
|||||||
$.prepend form, controls
|
$.prepend form, controls
|
||||||
|
|
||||||
resize: ->
|
resize: ->
|
||||||
imgExpand.style.innerHTML = ".fitheight img[md5] + img {max-height:#{d.body.clientHeight}px;}"
|
imgExpand.style.textContent = ".fitheight img[md5] + img {max-height:#{d.body.clientHeight}px;}"
|
||||||
|
|
||||||
Main =
|
Main =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user