s/this\./@

This commit is contained in:
James Campos 2010-12-08 21:19:41 -08:00
parent 35acc63d53
commit 1efac0a239

View File

@ -201,7 +201,7 @@ autoWatch = ->
GM_setValue('autoText', "/#{g.BOARD}/ - #{autoText}") GM_setValue('autoText', "/#{g.BOARD}/ - #{autoText}")
closeQR = -> closeQR = ->
div = this.parentNode.parentNode div = @parentNode.parentNode
remove div remove div
clearHidden = -> clearHidden = ->
@ -237,7 +237,7 @@ expandComment = (e) ->
href = a.getAttribute('href') href = a.getAttribute('href')
r = new XMLHttpRequest() r = new XMLHttpRequest()
r.onload = -> r.onload = ->
onloadComment(this.responseText, a, href) onloadComment(@responseText, a, href)
r.open('GET', href, true) r.open('GET', href, true)
r.send() r.send()
g.xhrs.push { g.xhrs.push {
@ -267,7 +267,7 @@ expandThread = ->
#create new request #create new request
r = new XMLHttpRequest() r = new XMLHttpRequest()
r.onload = -> r.onload = ->
onloadThread this.responseText, span onloadThread @responseText, span
r.open 'GET', "res/#{id}", true r.open 'GET', "res/#{id}", true
r.send() r.send()
g.xhrs.push { g.xhrs.push {
@ -298,7 +298,7 @@ formSubmit = (e) ->
recaptcha.focus() recaptcha.focus()
hideReply = (reply) -> hideReply = (reply) ->
if p = this.parentNode if p = @parentNode
reply = p.nextSibling reply = p.nextSibling
g.hiddenReplies.push { g.hiddenReplies.push {
id: reply.id id: reply.id
@ -629,11 +629,11 @@ quickReply = (e) ->
textarea.focus() textarea.focus()
#we can't just use @textContent b/c of the xxxs. goddamit moot. #we can't just use @textContent b/c of the xxxs. goddamit moot.
textarea.value += '>>' + @parentNode.id.match(/\d+$/)[0] + '\n' textarea.value += '>>' + @parentNode.id.match(/\d+$/)[0] + '\n'
if text and id is this.parentNode.id if text and id is @parentNode.id
textarea.value += ">#{text}\n" textarea.value += ">#{text}\n"
recaptchaListener = (e) -> recaptchaListener = (e) ->
if e.keyCode is 8 and this.value is '' if e.keyCode is 8 and @value is ''
recaptchaReload() recaptchaReload()
recaptchaReload = -> recaptchaReload = ->
@ -685,7 +685,7 @@ scroll = (count) ->
location.hash = hash location.hash = hash
showReply = -> showReply = ->
div = this.parentNode div = @parentNode
table = div.nextSibling table = div.nextSibling
show(table) show(table)
remove(div) remove(div)
@ -729,9 +729,9 @@ threadF = (current) ->
threadF(current) threadF(current)
watch = -> watch = ->
id = this.nextSibling.name id = @nextSibling.name
if this.src[0] is 'd'#data:png if @src[0] is 'd'#data:png
this.src = g.favNormal @src = g.favNormal
text = "/#{g.BOARD}/ - " + text = "/#{g.BOARD}/ - " +
x('following-sibling::blockquote', this).textContent.slice(0,25) x('following-sibling::blockquote', this).textContent.slice(0,25)
g.watched[g.BOARD] or= [] g.watched[g.BOARD] or= []
@ -740,7 +740,7 @@ watch = ->
text: text text: text
} }
else else
this.src = g.favEmpty @src = g.favEmpty
g.watched[g.BOARD] = slice(g.watched[g.BOARD], id) g.watched[g.BOARD] = slice(g.watched[g.BOARD], id)
GM_setValue('watched', JSON.stringify(g.watched)) GM_setValue('watched', JSON.stringify(g.watched))
watcherUpdate() watcherUpdate()