I'm dumb.

This commit is contained in:
Zixaphir 2015-01-16 10:26:10 -07:00
parent 37e43ad19d
commit 930ed6c3d3
6 changed files with 10 additions and 10 deletions

View File

@ -11,7 +11,7 @@
// @match *://sys.4chan.org/* // @match *://sys.4chan.org/*
// @match *://a.4cdn.org/* // @match *://a.4cdn.org/*
// @match *://i.4cdn.org/* // @match *://i.4cdn.org/*
// @match *://www.google.com/recaptcha/api/fallback?k=6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs // @match *://www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc
// @exclude *://blog.4chan.org/* // @exclude *://blog.4chan.org/*
// @exclude *://dis.4chan.org/* // @exclude *://dis.4chan.org/*
// @grant GM_getValue // @grant GM_getValue

View File

@ -12,7 +12,7 @@
// @match *://sys.4chan.org/* // @match *://sys.4chan.org/*
// @match *://a.4cdn.org/* // @match *://a.4cdn.org/*
// @match *://i.4cdn.org/* // @match *://i.4cdn.org/*
// @match *://www.google.com/recaptcha/api/fallback?k=6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs // @match *://www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc
// @exclude *://blog.4chan.org/* // @exclude *://blog.4chan.org/*
// @exclude *://dis.4chan.org/* // @exclude *://dis.4chan.org/*
// @grant GM_getValue // @grant GM_getValue
@ -8787,7 +8787,7 @@
Captcha.noscript = { Captcha.noscript = {
lifetime: 2 * $.MINUTE, lifetime: 2 * $.MINUTE,
iframeURL: '//www.google.com/recaptcha/api/fallback?k=6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs', iframeURL: '//www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc',
init: function() { init: function() {
var container, input; var container, input;
if (d.cookie.indexOf('pass_enabled=1') >= 0) { if (d.cookie.indexOf('pass_enabled=1') >= 0) {
@ -9218,7 +9218,7 @@
childList: true, childList: true,
subtree: true subtree: true
}); });
return $.globalEval('(function() {\n function render() {\n var container = document.querySelector("#qr .captcha-container");\n container.dataset.widgetID = window.grecaptcha.render(container, {\n sitekey: \'6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs\',\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 $.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: \'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})();');
}, },
afterSetup: function(mutations) { afterSetup: function(mutations) {
var iframe, mutation, node, textarea, _i, _j, _len, _len1, _ref; var iframe, mutation, node, textarea, _i, _j, _len, _len1, _ref;

View File

@ -10,7 +10,7 @@
}, },
"content_scripts": [{ "content_scripts": [{
"js": ["script.js"], "js": ["script.js"],
"matches": ["*://*.4chan.org/*","*://boards.4chan.org/*","*://sys.4chan.org/*","*://a.4cdn.org/*","*://i.4cdn.org/*","*://www.google.com/recaptcha/api/fallback?k=6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs"], "matches": ["*://*.4chan.org/*","*://boards.4chan.org/*","*://sys.4chan.org/*","*://a.4cdn.org/*","*://i.4cdn.org/*","*://www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc"],
"all_frames": true, "all_frames": true,
"run_at": "document_start" "run_at": "document_start"
}], }],

View File

@ -8828,7 +8828,7 @@
Captcha.noscript = { Captcha.noscript = {
lifetime: 2 * $.MINUTE, lifetime: 2 * $.MINUTE,
iframeURL: '//www.google.com/recaptcha/api/fallback?k=6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs', iframeURL: '//www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc',
init: function() { init: function() {
var container, input; var container, input;
if (d.cookie.indexOf('pass_enabled=1') >= 0) { if (d.cookie.indexOf('pass_enabled=1') >= 0) {
@ -9259,7 +9259,7 @@
childList: true, childList: true,
subtree: true subtree: true
}); });
return $.globalEval('(function() {\n function render() {\n var container = document.querySelector("#qr .captcha-container");\n container.dataset.widgetID = window.grecaptcha.render(container, {\n sitekey: \'6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs\',\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 $.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: \'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})();');
}, },
afterSetup: function(mutations) { afterSetup: function(mutations) {
var iframe, mutation, node, textarea, _i, _j, _len, _len1, _ref; var iframe, mutation, node, textarea, _i, _j, _len, _len1, _ref;

View File

@ -8,7 +8,7 @@
"repo": "https://github.com/zixaphir/appchan-x/", "repo": "https://github.com/zixaphir/appchan-x/",
"page": "http://zixaphir.github.com/appchan-x/", "page": "http://zixaphir.github.com/appchan-x/",
"faq": "https://github.com/zixaphir/appchan-x/wiki/Frequently-Asked-Questions", "faq": "https://github.com/zixaphir/appchan-x/wiki/Frequently-Asked-Questions",
"recaptchaKey": "6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs", "recaptchaKey": "6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc",
"youtubeAPIKey": "AIzaSyCrvwsT3ub8sDl3S5APhok2eY-OzRcCK5U", "youtubeAPIKey": "AIzaSyCrvwsT3ub8sDl3S5APhok2eY-OzRcCK5U",
"buildsPath": "builds/", "buildsPath": "builds/",
"mainBranch": "master", "mainBranch": "master",
@ -18,7 +18,7 @@
"*://sys.4chan.org/*", "*://sys.4chan.org/*",
"*://a.4cdn.org/*", "*://a.4cdn.org/*",
"*://i.4cdn.org/*", "*://i.4cdn.org/*",
"*://www.google.com/recaptcha/api/fallback?k=6Ld9lQATAAAAAN6ZHhqB_oOjm7jat0swNdi0mmCs" "*://www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc"
], ],
"excludes": [ "excludes": [
"*://blog.4chan.org/*", "*://blog.4chan.org/*",

View File

@ -76,7 +76,7 @@ Captcha.v2 =
var container = document.querySelector("#qr .captcha-container"); var container = document.querySelector("#qr .captcha-container");
container.dataset.widgetID = window.grecaptcha.render(container, { container.dataset.widgetID = window.grecaptcha.render(container, {
sitekey: '<%= meta.recaptchaKey %>', sitekey: '<%= meta.recaptchaKey %>',
theme: document.documentElement.classList.contains('tomorrow') ? 'dark' : 'light', theme: 'light',
callback: function(response) { callback: function(response) {
window.dispatchEvent(new CustomEvent("captcha:success", {detail: response})); window.dispatchEvent(new CustomEvent("captcha:success", {detail: response}));
} }