From 3b1c585eb490a22cbfa50939eed6146d6f98a9b8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 31 Dec 2014 11:13:23 -0800 Subject: [PATCH] Better identification of variable-setting script. #199? --- src/General/Get.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/General/Get.coffee b/src/General/Get.coffee index cd20f3789..e8fc138a9 100755 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -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