diff --git a/CHANGELOG.md b/CHANGELOG.md index 04c478941..e8f5092d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor ### v1.11.23 +**v1.11.23.1** *(2016-01-25)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.23.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.23.1/builds/4chan-X-noupdate.crx "Chromium version")] +- Show dark theme captcha in the Quick Reply if the document has the class `dark-captcha`. + **v1.11.23.0** *(2016-01-24)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.23.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.23.0/builds/4chan-X-noupdate.crx "Chromium version")] - Based on v1.11.22.4. - Show warnings when running multiple copies of 4chan X or the page doesn't load completely. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index e272ef70b..655077607 100644 Binary files a/builds/4chan-X-beta.crx and b/builds/4chan-X-beta.crx differ diff --git a/builds/4chan-X-beta.meta.js b/builds/4chan-X-beta.meta.js index 33d995eed..34f1b0e63 100644 --- a/builds/4chan-X-beta.meta.js +++ b/builds/4chan-X-beta.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X beta -// @version 1.11.23.0 +// @version 1.11.23.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js index 05d7cf5d8..c7098e0a8 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X beta -// @version 1.11.23.0 +// @version 1.11.23.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -434,7 +434,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.23.0', + VERSION: '1.11.23.1', NAMESPACE: '4chan X.', boards: {} }; @@ -8663,7 +8663,32 @@ return $.add(this.nodes.container, [iframe, div]); }, setupJS: function() { - return $.globalEval('(function() {\n function render() {\n var container = document.querySelector("#qr .captcha-container");\n container.dataset.widgetID = window.grecaptcha.render(container, {\n sitekey: \'6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc\',\n theme: document.documentElement.classList.contains(\'tomorrow\') ? \'dark\' : \'light\',\n callback: function(response) {\n window.dispatchEvent(new CustomEvent("captcha:success", {detail: response}));\n }\n });\n }\n if (window.grecaptcha) {\n render();\n } else {\n var cbNative = window.onRecaptchaLoaded;\n window.onRecaptchaLoaded = function() {\n render();\n cbNative();\n }\n }\n})();'); + return $.global(function() { + var cbNative, render; + render = function() { + var classList, container; + classList = document.documentElement.classList; + container = document.querySelector('#qr .captcha-container'); + return container.dataset.widgetID = window.grecaptcha.render(container, { + sitekey: '6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc', + theme: classList.contains('tomorrow') || classList.contains('dark-captcha') ? 'dark' : 'light', + callback: function(response) { + return window.dispatchEvent(new CustomEvent('captcha:success', { + detail: response + })); + } + }); + }; + if (window.grecaptcha) { + return render(); + } else { + cbNative = window.onRecaptchaLoaded; + return window.onRecaptchaLoaded = function() { + render(); + return cbNative(); + }; + } + }); }, afterSetup: function(mutations) { var iframe, k, len1, len2, mutation, node, q, ref, textarea; @@ -8819,7 +8844,11 @@ this.destroy(); return this.setup(false, true); } else { - return $.globalEval('(function() {\n var container = document.querySelector("#qr .captcha-container");\n window.grecaptcha.reset(container.dataset.widgetID);\n})();'); + return $.global(function() { + var container; + container = document.querySelector('#qr .captcha-container'); + return window.grecaptcha.reset(container.dataset.widgetID); + }); } } }; diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index a9a2ca4b5..3791e9adb 100644 Binary files a/builds/4chan-X-noupdate.crx and b/builds/4chan-X-noupdate.crx differ diff --git a/builds/4chan-X-noupdate.user.js b/builds/4chan-X-noupdate.user.js index 1208be8a3..7b0d82a08 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.11.23.0 +// @version 1.11.23.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -434,7 +434,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.23.0', + VERSION: '1.11.23.1', NAMESPACE: '4chan X.', boards: {} }; @@ -8663,7 +8663,32 @@ return $.add(this.nodes.container, [iframe, div]); }, setupJS: function() { - return $.globalEval('(function() {\n function render() {\n var container = document.querySelector("#qr .captcha-container");\n container.dataset.widgetID = window.grecaptcha.render(container, {\n sitekey: \'6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc\',\n theme: document.documentElement.classList.contains(\'tomorrow\') ? \'dark\' : \'light\',\n callback: function(response) {\n window.dispatchEvent(new CustomEvent("captcha:success", {detail: response}));\n }\n });\n }\n if (window.grecaptcha) {\n render();\n } else {\n var cbNative = window.onRecaptchaLoaded;\n window.onRecaptchaLoaded = function() {\n render();\n cbNative();\n }\n }\n})();'); + return $.global(function() { + var cbNative, render; + render = function() { + var classList, container; + classList = document.documentElement.classList; + container = document.querySelector('#qr .captcha-container'); + return container.dataset.widgetID = window.grecaptcha.render(container, { + sitekey: '6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc', + theme: classList.contains('tomorrow') || classList.contains('dark-captcha') ? 'dark' : 'light', + callback: function(response) { + return window.dispatchEvent(new CustomEvent('captcha:success', { + detail: response + })); + } + }); + }; + if (window.grecaptcha) { + return render(); + } else { + cbNative = window.onRecaptchaLoaded; + return window.onRecaptchaLoaded = function() { + render(); + return cbNative(); + }; + } + }); }, afterSetup: function(mutations) { var iframe, k, len1, len2, mutation, node, q, ref, textarea; @@ -8819,7 +8844,11 @@ this.destroy(); return this.setup(false, true); } else { - return $.globalEval('(function() {\n var container = document.querySelector("#qr .captcha-container");\n window.grecaptcha.reset(container.dataset.widgetID);\n})();'); + return $.global(function() { + var container; + container = document.querySelector('#qr .captcha-container'); + return window.grecaptcha.reset(container.dataset.widgetID); + }); } } }; diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 62d2fe8c7..8643dcc54 100644 Binary files a/builds/4chan-X.crx and b/builds/4chan-X.crx differ diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js index b69a4f6c8..971e974a5 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.11.23.0 +// @version 1.11.23.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 0915b0816..f80b5aa4f 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.11.23.0 +// @version 1.11.23.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -434,7 +434,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.23.0', + VERSION: '1.11.23.1', NAMESPACE: '4chan X.', boards: {} }; @@ -8663,7 +8663,32 @@ return $.add(this.nodes.container, [iframe, div]); }, setupJS: function() { - return $.globalEval('(function() {\n function render() {\n var container = document.querySelector("#qr .captcha-container");\n container.dataset.widgetID = window.grecaptcha.render(container, {\n sitekey: \'6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc\',\n theme: document.documentElement.classList.contains(\'tomorrow\') ? \'dark\' : \'light\',\n callback: function(response) {\n window.dispatchEvent(new CustomEvent("captcha:success", {detail: response}));\n }\n });\n }\n if (window.grecaptcha) {\n render();\n } else {\n var cbNative = window.onRecaptchaLoaded;\n window.onRecaptchaLoaded = function() {\n render();\n cbNative();\n }\n }\n})();'); + return $.global(function() { + var cbNative, render; + render = function() { + var classList, container; + classList = document.documentElement.classList; + container = document.querySelector('#qr .captcha-container'); + return container.dataset.widgetID = window.grecaptcha.render(container, { + sitekey: '6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc', + theme: classList.contains('tomorrow') || classList.contains('dark-captcha') ? 'dark' : 'light', + callback: function(response) { + return window.dispatchEvent(new CustomEvent('captcha:success', { + detail: response + })); + } + }); + }; + if (window.grecaptcha) { + return render(); + } else { + cbNative = window.onRecaptchaLoaded; + return window.onRecaptchaLoaded = function() { + render(); + return cbNative(); + }; + } + }); }, afterSetup: function(mutations) { var iframe, k, len1, len2, mutation, node, q, ref, textarea; @@ -8819,7 +8844,11 @@ this.destroy(); return this.setup(false, true); } else { - return $.globalEval('(function() {\n var container = document.querySelector("#qr .captcha-container");\n window.grecaptcha.reset(container.dataset.widgetID);\n})();'); + return $.global(function() { + var container; + container = document.querySelector('#qr .captcha-container'); + return window.grecaptcha.reset(container.dataset.widgetID); + }); } } }; diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index cdc68d2fb..d1fcc09c8 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index 8fb3b6a41..93b89a636 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.xml b/builds/updates.xml index 6937a5612..e3103cada 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index 6460fa467..28357444e 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.11.23.0", - "date": "2016-01-25T04:51:14.827Z" + "version": "1.11.23.1", + "date": "2016-01-26T03:52:46.717Z" }