|
1 | 1 | (async () => { |
2 | 2 | const KEYS = { |
3 | | - 'linkedin': '3117BF26-4762-4F5A-8ED9-A85E69209A46', // Pick the image that is the correct way up |
4 | | - 'rockstar': 'A5A70501-FCDE-4065-AF18-D9FAF06EF479', // Pick the image that is the correct way up / Pick the dice pair whose top sides add up to 9 |
5 | | - 'github': '20782B4C-05D0-45D7-97A0-41641055B6F6', // Pick the spiral galaxy |
6 | | - 'paypal': '9409E63B-D2A5-9CBD-DBC0-5095707D0090', // Pick one square that shows two identical objects. |
7 | | - 'blizzard': 'E8A75615-1CBA-5DFF-8032-D16BCF234E10', // Pick the mouse that can't reach the cheese |
8 | | - 'twitch': 'E5554D43-23CC-1982-971D-6A2262A2CA24', // Pick the dice pair whose top sides add up to 5/6/7/8 |
9 | | - 'demo1': '804380F4-6844-FFA1-ED4E-5877CA1F1EA4', // Pick the image that is the correct way up |
10 | | - 'demo2': 'D39B0EE3-2973-4147-98EF-C92F93451E2D', // Pick the clipart object |
11 | | - // 'octocaptcha': '69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC', // Pick the clipart object |
12 | | - // 'outlook': 'B7D8911C-5CC8-A9A3-35B0-554ACEE604DA', |
13 | | - // 'roblox': 'A2A14B1D-1AF3-C791-9BBC-EE33CC7A0A6F', |
14 | | - // 'roblox': '9F35E182-C93C-EBCC-A31D-CF8ED317B996', |
15 | | - // 'roblox': '476068BF-9607-4799-B53D-966BE98E2B81', |
16 | | - 'ea signup': '73BEC076-3E53-30F5-B1EB-84F494D43DBA', // Pick one square that shows two identical objects. / Pick the mouse that can reach all the cheese in the maze / Pick the matching cards |
17 | | - 'ea signin': '0F5FE186-B3CA-4EDB-A39B-9B9A3397D01D', |
18 | | - 'myprepaidcenter': '0F941BF0-7303-D94B-B76A-EAA2E2048124', // Pick the image where all animals are walking in the same direction as the arrow |
19 | | - 'twitter': '2CB16598-CB82-4CF7-B332-5990DB66F3AB', // Pick the shadow with a different object silhouette |
| 3 | + 'linkedin': ['3117BF26-4762-4F5A-8ED9-A85E69209A46', false], // Pick the image that is the correct way up |
| 4 | + 'rockstar': ['A5A70501-FCDE-4065-AF18-D9FAF06EF479', false], // Pick the image that is the correct way up / Pick the dice pair whose top sides add up to 9 |
| 5 | + 'github': ['20782B4C-05D0-45D7-97A0-41641055B6F6', false], // Pick the spiral galaxy |
| 6 | + 'paypal': ['9409E63B-D2A5-9CBD-DBC0-5095707D0090', false], // Pick one square that shows two identical objects. |
| 7 | + 'blizzard': ['E8A75615-1CBA-5DFF-8032-D16BCF234E10', false], // Pick the mouse that can't reach the cheese |
| 8 | + 'twitch': ['E5554D43-23CC-1982-971D-6A2262A2CA24', false], // Pick the dice pair whose top sides add up to 5/6/7/8 |
| 9 | + 'demo1': ['804380F4-6844-FFA1-ED4E-5877CA1F1EA4', false], // Pick the image that is the correct way up |
| 10 | + 'demo2': ['D39B0EE3-2973-4147-98EF-C92F93451E2D', false], // Pick the clipart object |
| 11 | + // 'octocaptcha': ['69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC', false], // Pick the clipart object |
| 12 | + // 'outlook': ['B7D8911C-5CC8-A9A3-35B0-554ACEE604DA', false], |
| 13 | + // 'roblox': ['A2A14B1D-1AF3-C791-9BBC-EE33CC7A0A6F', false], |
| 14 | + // 'roblox': ['9F35E182-C93C-EBCC-A31D-CF8ED317B996', false], |
| 15 | + // 'roblox': ['476068BF-9607-4799-B53D-966BE98E2B81', false], |
| 16 | + 'ea signup': ['73BEC076-3E53-30F5-B1EB-84F494D43DBA', false], // Pick one square that shows two identical objects. / Pick the mouse that can reach all the cheese in the maze / Pick the matching cards |
| 17 | + 'ea signin': ['0F5FE186-B3CA-4EDB-A39B-9B9A3397D01D', false], |
| 18 | + 'myprepaidcenter': ['0F941BF0-7303-D94B-B76A-EAA2E2048124', false], // Pick the image where all animals are walking in the same direction as the arrow |
| 19 | + 'twitter': ['2CB16598-CB82-4CF7-B332-5990DB66F3AB', true], // Pick the shadow with a different object silhouette |
20 | 20 | }; |
21 | 21 | const SRCS = { |
22 | | - 'outlook': 'https://iframe.arkoselabs.com/B7D8911C-5CC8-A9A3-35B0-554ACEE604DA/index.html?mkt=en', // Pick the penguin |
23 | | - 'outlook auth': 'https://iframe-auth.arkoselabs.com/B7D8911C-5CC8-A9A3-35B0-554ACEE604DA/index.html?mkt=en', // Pick one square that shows two identical objects. |
| 22 | + 'outlook': ['https://iframe.arkoselabs.com/B7D8911C-5CC8-A9A3-35B0-554ACEE604DA/index.html?mkt=en', false], // Pick the penguin |
| 23 | + 'outlook auth': ['https://iframe-auth.arkoselabs.com/B7D8911C-5CC8-A9A3-35B0-554ACEE604DA/index.html?mkt=en', false], // Pick one square that shows two identical objects. |
24 | 24 | }; |
25 | 25 | const MAX_BTNS_PER_ROW = 7; |
26 | 26 |
|
27 | | - let nframes = 10; |
| 27 | + let nframes = 18; |
28 | 28 |
|
29 | 29 |
|
30 | 30 | reset(); |
|
94 | 94 | // }`, |
95 | 95 | `.iframe_wrap { |
96 | 96 | background-color: #eee; |
97 | | - width: 175px; |
98 | | - height: 150px; |
| 97 | + width: 275px; |
| 98 | + height: 275px; |
99 | 99 | padding: 0; |
100 | 100 | overflow: hidden; |
101 | 101 | }`, |
102 | 102 | `iframe { |
103 | | - width: 350px !important; |
104 | | - height: 300px !important; |
105 | 103 | border: none !important; |
| 104 | + width: 400px !important; |
| 105 | + height: 400px !important; |
| 106 | + -ms-zoom: 0.75 !important; |
| 107 | + -moz-transform: scale(0.75) !important; |
| 108 | + -moz-transform-origin: 0 0 !important; |
| 109 | + -o-transform: scale(0.75) !important; |
| 110 | + -o-transform-origin: 0 0 !important; |
| 111 | + -webkit-transform: scale(0.75) !important; |
| 112 | + -webkit-transform-origin: 0 0 !important; |
| 113 | + }`, |
| 114 | + `iframe.small { |
| 115 | + width: 550px !important; |
| 116 | + height: 550px !important; |
106 | 117 | -ms-zoom: 0.5 !important; |
107 | 118 | -moz-transform: scale(0.5) !important; |
108 | 119 | -moz-transform-origin: 0 0 !important; |
|
210 | 221 | } |
211 | 222 | // console.log('open_frame_src', k, n); |
212 | 223 | for (let i = 0; i < n; i++) { |
213 | | - create_frame(k, row, SRCS[k]); |
| 224 | + create_frame(k, row, SRCS[k][0], SRCS[k][1]); |
214 | 225 | } |
215 | 226 | } |
216 | 227 |
|
217 | | - function create_frame(name, row, src) { |
| 228 | + function create_frame(name, row, src, is_small=false) { |
218 | 229 | const $wrap = document.createElement('div'); |
219 | 230 | $wrap.classList.add('iframe_wrap'); |
220 | 231 |
|
221 | 232 | const $iframe = document.createElement('iframe'); |
| 233 | + if (is_small) { |
| 234 | + $iframe.classList.add('small'); |
| 235 | + } |
222 | 236 | $wrap.append($iframe); |
223 | 237 | $iframe.frameborder = 0; |
224 | 238 | $iframe.scrolling = 'no'; |
|
241 | 255 | } |
242 | 256 |
|
243 | 257 | async function load_captcha(name, row) { |
244 | | - const pk = KEYS[name]; |
| 258 | + const pk = KEYS[name][0]; |
245 | 259 |
|
246 | 260 | const host = ''; |
247 | 261 | const url = `https://api.funcaptcha.com/fc/gt2/public_key/${pk}`; |
|
286 | 300 | } |
287 | 301 | const url_params = (new URLSearchParams(params)).toString(); |
288 | 302 | const src = `https://api.funcaptcha.com/fc/gc/?${url_params}`; |
289 | | - create_frame(name, row, src); |
| 303 | + create_frame(name, row, src, KEYS[name][1]); |
290 | 304 | } |
291 | 305 |
|
292 | 306 |
|
293 | 307 | /** |
294 | 308 | Manually get the iframe src from roblox.com |
295 | 309 | */ |
296 | | - // const TOKEN = '945635c4051b7b638.9142447501'; |
| 310 | + // const TOKEN = '400635fb675f05f61.0554348501'; |
297 | 311 | // const roblox_src = `https://roblox-api.arkoselabs.com/fc/gc/?token=${TOKEN}&r=us-east-1&metabgclr=transparent&guitextcolor=%23474747&maintxtclr=%23b8b8b8&metaiconclr=%23757575&meta=3&lang=en&pk=A2A14B1D-1AF3-C791-9BBC-EE33CC7A0A6F&at=40&ht=1&ag=101&cdn_url=https%3A%2F%2Froblox-api.arkoselabs.com%2Fcdn%2Ffc&lurl=https%3A%2F%2Faudio-us-east-1.arkoselabs.com&surl=https%3A%2F%2Froblox-api.arkoselabs.com&smurl=https%3A%2F%2Froblox-api.arkoselabs.com%2Fcdn%2Ffc%2Fassets%2Fstyle-manager`; |
298 | 312 | // for (let i = 0; i < nframes; i++) create_frame('roblox', 0, roblox_src); |
299 | 313 |
|
|
0 commit comments