diff --git a/CHANGELOG.md b/CHANGELOG.md index 21bc0e5e2..e2696a512 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### v1.7.54 +*2014-06-09* + **ccd0** - Remove captcha doubling from report form. - Remove any whitespace trimming from captchas. diff --git a/LICENSE b/LICENSE index 8d3d87d9c..114b570c4 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.7.53 - 2014-06-08 +* 4chan X - Version 1.7.54 - 2014-06-09 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js index 60e2731b6..bc862de0e 100755 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.7.53 +// @version 1.7.54 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 226b46ddd..e58d91802 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.7.53 +// @version 1.7.54 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.7.53 - 2014-06-08 +* 4chan X - Version 1.7.54 - 2014-06-09 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -373,7 +373,7 @@ doc = d.documentElement; g = { - VERSION: '1.7.53', + VERSION: '1.7.54', NAMESPACE: '4chan X.', boards: {} }; @@ -6805,9 +6805,6 @@ } } } - if (response) { - response = response.trim(); - } return { challenge: challenge, response: response @@ -6815,7 +6812,7 @@ }, save: function() { var response; - if (!(response = this.nodes.input.value.trim())) { + if (!/\S/.test(response = this.nodes.input.value)) { return; } this.nodes.input.value = ''; @@ -12337,20 +12334,11 @@ ready: function() { var field; field = $.id('recaptcha_response_field'); - $.on(field, 'keydown', function(e) { + return $.on(field, 'keydown', function(e) { if (e.keyCode === 8 && !field.value) { - return $.globalEval('Recaptcha.reload("t")'); + return $.globalEval('Recaptcha.reload()'); } }); - return $.on($('form'), 'submit', function(e) { - var response; - e.preventDefault(); - response = field.value.trim(); - if (!/\s/.test(response)) { - field.value = "" + response + " " + response; - } - return this.submit(); - }); } }; @@ -12490,7 +12478,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13335,7 +13323,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.7.53.' + innerHTML: '4chan X has been updated to version 1.7.54.' }); new Notice('info', el, 15); } else { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 01dd8694d..51a642e3d 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/crx.crx b/builds/crx.crx index 73ed8c7b3..392b29741 100644 Binary files a/builds/crx.crx and b/builds/crx.crx differ diff --git a/builds/crx/manifest.json b/builds/crx/manifest.json index ae53fee9f..b899d58ec 100755 --- a/builds/crx/manifest.json +++ b/builds/crx/manifest.json @@ -1,6 +1,6 @@ { "name": "4chan X", - "version": "1.7.53", + "version": "1.7.54", "manifest_version": 2, "description": "Cross-browser userscript for maximum lurking on 4chan.", "icons": { diff --git a/builds/crx/script.js b/builds/crx/script.js index b395adc8a..a5954a023 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.7.53 - 2014-06-08 +* 4chan X - Version 1.7.54 - 2014-06-09 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -348,7 +348,7 @@ doc = d.documentElement; g = { - VERSION: '1.7.53', + VERSION: '1.7.54', NAMESPACE: '4chan X.', boards: {} }; @@ -6828,9 +6828,6 @@ } } } - if (response) { - response = response.trim(); - } return { challenge: challenge, response: response @@ -6838,7 +6835,7 @@ }, save: function() { var response; - if (!(response = this.nodes.input.value.trim())) { + if (!/\S/.test(response = this.nodes.input.value)) { return; } this.nodes.input.value = ''; @@ -12313,20 +12310,11 @@ ready: function() { var field; field = $.id('recaptcha_response_field'); - $.on(field, 'keydown', function(e) { + return $.on(field, 'keydown', function(e) { if (e.keyCode === 8 && !field.value) { - return $.globalEval('Recaptcha.reload("t")'); + return $.globalEval('Recaptcha.reload()'); } }); - return $.on($('form'), 'submit', function(e) { - var response; - e.preventDefault(); - response = field.value.trim(); - if (!/\s/.test(response)) { - field.value = "" + response + " " + response; - } - return this.submit(); - }); } }; @@ -12466,7 +12454,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13298,7 +13286,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.7.53.' + innerHTML: '4chan X has been updated to version 1.7.54.' }); new Notice('info', el, 15); } else { diff --git a/builds/updates.xml b/builds/updates.xml index 74306e83c..95ba47336 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/wcrx/manifest.json b/builds/wcrx/manifest.json index 79174f2ed..4781a2368 100644 --- a/builds/wcrx/manifest.json +++ b/builds/wcrx/manifest.json @@ -1,6 +1,6 @@ { "name": "4chan X", - "version": "1.7.53", + "version": "1.7.54", "manifest_version": 2, "description": "Cross-browser userscript for maximum lurking on 4chan.", "icons": { diff --git a/builds/wcrx/script.js b/builds/wcrx/script.js index b395adc8a..a5954a023 100644 --- a/builds/wcrx/script.js +++ b/builds/wcrx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.7.53 - 2014-06-08 +* 4chan X - Version 1.7.54 - 2014-06-09 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -348,7 +348,7 @@ doc = d.documentElement; g = { - VERSION: '1.7.53', + VERSION: '1.7.54', NAMESPACE: '4chan X.', boards: {} }; @@ -6828,9 +6828,6 @@ } } } - if (response) { - response = response.trim(); - } return { challenge: challenge, response: response @@ -6838,7 +6835,7 @@ }, save: function() { var response; - if (!(response = this.nodes.input.value.trim())) { + if (!/\S/.test(response = this.nodes.input.value)) { return; } this.nodes.input.value = ''; @@ -12313,20 +12310,11 @@ ready: function() { var field; field = $.id('recaptcha_response_field'); - $.on(field, 'keydown', function(e) { + return $.on(field, 'keydown', function(e) { if (e.keyCode === 8 && !field.value) { - return $.globalEval('Recaptcha.reload("t")'); + return $.globalEval('Recaptcha.reload()'); } }); - return $.on($('form'), 'submit', function(e) { - var response; - e.preventDefault(); - response = field.value.trim(); - if (!/\s/.test(response)) { - field.value = "" + response + " " + response; - } - return this.submit(); - }); } }; @@ -12466,7 +12454,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13298,7 +13286,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.7.53.' + innerHTML: '4chan X has been updated to version 1.7.54.' }); new Notice('info', el, 15); } else { diff --git a/package.json b/package.json index 52e6380eb..6b1241cc7 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "4chan-X", - "version": "1.7.53", + "version": "1.7.54", "description": "Cross-browser userscript for maximum lurking on 4chan.", "meta": { "name": "4chan X",