formatting
This commit is contained in:
parent
37758db414
commit
fc4bd36637
@ -781,7 +781,7 @@ if getConfig 'Sauce'
|
|||||||
addTo span, tn(' '), link
|
addTo span, tn(' '), link
|
||||||
|
|
||||||
if getConfig('Reply Hiding')
|
if getConfig('Reply Hiding')
|
||||||
callbacks.push((root) ->
|
callbacks.push (root) ->
|
||||||
tds = $$('td.doubledash', root)
|
tds = $$('td.doubledash', root)
|
||||||
for td in tds
|
for td in tds
|
||||||
a = n 'a',
|
a = n 'a',
|
||||||
@ -795,7 +795,6 @@ if getConfig('Reply Hiding')
|
|||||||
for obj in hiddenReplies
|
for obj in hiddenReplies
|
||||||
if obj.id is id
|
if obj.id is id
|
||||||
hideReply(next)
|
hideReply(next)
|
||||||
)
|
|
||||||
|
|
||||||
if getConfig('Quick Reply')
|
if getConfig('Quick Reply')
|
||||||
iframe = n 'iframe',
|
iframe = n 'iframe',
|
||||||
@ -804,18 +803,17 @@ if getConfig('Quick Reply')
|
|||||||
hide(iframe)
|
hide(iframe)
|
||||||
addTo d.body, iframe
|
addTo d.body, iframe
|
||||||
|
|
||||||
callbacks.push((root) ->
|
callbacks.push (root) ->
|
||||||
quotes = $$('a.quotejs:not(:first-child)', root)
|
quotes = $$('a.quotejs:not(:first-child)', root)
|
||||||
for quote in quotes
|
for quote in quotes
|
||||||
quote.addEventListener('click', quickReply, true)
|
quote.addEventListener('click', quickReply, true)
|
||||||
)
|
|
||||||
|
|
||||||
#hack - nuke id so it doesn't grab focus when reloading
|
#hack - nuke id so it doesn't grab focus when reloading
|
||||||
recaptcha.id = ''
|
recaptcha.id = ''
|
||||||
|
|
||||||
|
|
||||||
if getConfig('Quick Report')
|
if getConfig('Quick Report')
|
||||||
callbacks.push((root) ->
|
callbacks.push (root) ->
|
||||||
arr = $$('span[id^=no]', root)
|
arr = $$('span[id^=no]', root)
|
||||||
for el in arr
|
for el in arr
|
||||||
a = n 'a',
|
a = n 'a',
|
||||||
@ -824,7 +822,6 @@ if getConfig('Quick Report')
|
|||||||
listener: ['click', report]
|
listener: ['click', report]
|
||||||
inAfter el, a
|
inAfter el, a
|
||||||
inAfter el, tn(' ')
|
inAfter el, tn(' ')
|
||||||
)
|
|
||||||
|
|
||||||
if getConfig('Thread Watcher')
|
if getConfig('Thread Watcher')
|
||||||
#create watcher
|
#create watcher
|
||||||
@ -852,7 +849,7 @@ if getConfig('Thread Watcher')
|
|||||||
inBefore input, img
|
inBefore input, img
|
||||||
|
|
||||||
if getConfig('Anonymize')
|
if getConfig('Anonymize')
|
||||||
callbacks.push((root) ->
|
callbacks.push (root) ->
|
||||||
names = $$('span.postername, span.commentpostername', root)
|
names = $$('span.postername, span.commentpostername', root)
|
||||||
for name in names
|
for name in names
|
||||||
name.innerHTML = 'Anonymous'
|
name.innerHTML = 'Anonymous'
|
||||||
@ -862,10 +859,9 @@ if getConfig('Anonymize')
|
|||||||
remove(trip.parentNode)
|
remove(trip.parentNode)
|
||||||
else
|
else
|
||||||
remove(trip)
|
remove(trip)
|
||||||
)
|
|
||||||
|
|
||||||
if getConfig('Reply Navigation')
|
if getConfig('Reply Navigation')
|
||||||
callbacks.push((root) ->
|
callbacks.push (root) ->
|
||||||
arr = $$('span[id^=norep]', root)
|
arr = $$('span[id^=norep]', root)
|
||||||
for el in arr
|
for el in arr
|
||||||
span = n 'span'
|
span = n 'span'
|
||||||
@ -879,7 +875,6 @@ if getConfig('Reply Navigation')
|
|||||||
listener: ['click', replyNav]
|
listener: ['click', replyNav]
|
||||||
addTo span, tn(' '), up, tn(' '), down
|
addTo span, tn(' '), up, tn(' '), down
|
||||||
inAfter el, span
|
inAfter el, span
|
||||||
)
|
|
||||||
|
|
||||||
if REPLY
|
if REPLY
|
||||||
if getConfig('Quick Reply') and getConfig('Persistent QR')
|
if getConfig('Quick Reply') and getConfig('Persistent QR')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user