From d8f6deb447d958a8f3c6c69e8e8a2941dc37d35f Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 6 Aug 2011 20:45:10 -0700 Subject: [PATCH] attach error message to text --- 4chan_x.user.js | 1 + script.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index 18da7935f..4cd6e2734 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1342,6 +1342,7 @@ qr.autoPost(); } } else if (data.textContent === 'Error: Duplicate file entry detected.' && qr.files.childElementCount) { + $('textarea', qr.el).value += '\n' + data.textContent + ' ' + data.href; qr.attachNext(); if (qr.captcha.length) { qr.autoPost(); diff --git a/script.coffee b/script.coffee index c59758f06..99e5ec540 100644 --- a/script.coffee +++ b/script.coffee @@ -1087,6 +1087,7 @@ qr = if qr.captcha.length qr.autoPost() else if data.textContent is 'Error: Duplicate file entry detected.' and qr.files.childElementCount + $('textarea', qr.el).value += '\n' + data.textContent + ' ' + data.href qr.attachNext() if qr.captcha.length qr.autoPost()