Better identification of variable-setting script. #199?
This commit is contained in:
parent
163c8dc6b8
commit
3b1c585eb4
@ -67,7 +67,9 @@ Get =
|
||||
{boardID, postID} = Get.postDataFromLink quotelink
|
||||
boardID is post.board.ID and postID is post.ID
|
||||
scriptData: ->
|
||||
$('script:not([src])', d.head)?.textContent or ''
|
||||
for script in $$ 'script:not([src])', d.head
|
||||
return script.textContent if /\bcooldowns *=/.test script.textContent
|
||||
''
|
||||
postClone: (boardID, threadID, postID, root, context) ->
|
||||
if post = g.posts["#{boardID}.#{postID}"]
|
||||
Get.insert post, root, context
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user