// =========== 01_search_input ========= function search_email() { y = document.getElementsByTagName("input"); l = y.length; console.log(l); for(i=0;l > i;i++) { x = y[i]; console.log(x); c = x.placeholder; switch(c) { case "Email address": x.value = "al03@bb.dp.ua"; x.focus(); break; case "Email verification code": x.value = 123123; x.focus(); break; } // console.log(x.placeholder); } // setTimeout(click_login,1000); } function click_login() { y = document.getElementsByTagName("button"); l = y.length; console.log(l); for(i=0;l > i;i++) { x = y[i]; console.log(x.innerHTML); c = x.innerHTML; switch(c) { case "LOGIN": //x.innerHTML = "xxx"; x.click(); break; } } } // =========== 02_copy_to_clipboard ========= function copyToclipboard(copyText) { // Get the text field // var copyText = document.getElementById("myInput"); // Select the text field // copyText.select(); //copyText.setSelectionRange(0, 99999); // For mobile devices // Copy the text inside the text field navigator.clipboard.writeText(copyText); // Alert the copied text console.log("Copied the text: " + copyText); } // =========== 03_addons_uri ========= function addons_uri() { var ret = ""; y = document.getElementsByTagName("input"); l = y.length; console.log(l); for(i=0;l > i;i++) { x = y[i]; console.log(x); c = x.placeholder; switch(c) { case "Email verification code": ret = x.value; break; } } console.log("RET: "+ret); // console.log(enBase64(123)); console.log(btoa(123)); return ""; // return "//"+ret; } // =========== 04_test_chunk ========= function fromChunk() { alert('fromChunk'); }