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, postID} = Get.postDataFromLink quotelink
|
||||||
boardID is post.board.ID and postID is post.ID
|
boardID is post.board.ID and postID is post.ID
|
||||||
scriptData: ->
|
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) ->
|
postClone: (boardID, threadID, postID, root, context) ->
|
||||||
if post = g.posts["#{boardID}.#{postID}"]
|
if post = g.posts["#{boardID}.#{postID}"]
|
||||||
Get.insert post, root, context
|
Get.insert post, root, context
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user