[-]
FORUM NEWS

Check out this Bitcoin T-shirt! It is limited edition, so hurry up!



Advertisement
Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Share Post: Facebook Twitter Reddit StumbleUpon
Need help with iMacros script, .JS javascript
14-09-2016, 11:48 AM (This post was last modified: 20-09-2016 06:28 AM by Munem2x.)
Post: #1
Need help with iMacros script, .JS javascript
Site for which i want to create script change time after every claim(it goes up to 1h)
,so i need some1 who know .JS


countdown is in code
Code:
<span id="countdown" class="timer">13 min. and 21 sec.</span>
Code:
var seconds = 1491;
    function secondPassed() {
        var minutes = Math.round((seconds - 30)/60);
        var remainingSeconds = seconds % 60;
        if (remainingSeconds < 10) {
            remainingSeconds = "0" + remainingSeconds;
        }
        if (minutes < 10) {
            minutes = "0" + minutes;
        }
        document.getElementById('countdown').innerHTML = minutes + " min. and " + remainingSeconds + " sec.";
        document.title = minutes + "m " + remainingSeconds + "s - Free Bitcoin Faucet";
        if (seconds == 0) {
            clearInterval(countdownTimer);
            location.reload();
        } else {
            seconds--;
        }
    }
        var countdownTimer = setInterval('secondPassed()', 1000);
    

    // Read the cookie (note this will only work on the page loads after the cookie is created)
    var myCookie = readCookie('eas');
    var address = readCookie('bitcoin_faucet');
    var amount = readCookie('amount');
    if(myCookie == "existing") {
        identify(address);
        addressSubmitted("eas",address);
        paid(amount);
    } else if (myCookie == "new"){
        identify(address);
        addressSubmitted("new",address);
        paid(amount);
    }

    function readCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
    }
Find all posts by this user
Like Post Quote this message in a reply
Advertisement
15-09-2016, 02:22 AM
Post: #2
RE: Need help with iMacros script, .JS javascript
(14-09-2016 11:48 AM)Munem2x Wrote: You are not allowed to view links. Register or Login to view.Site for which i want to create script change time after every claim(it goes up to 1h)
,so i need some1 who know .JS

You are not allowed to view links. Register or Login to view.

countdown is in code
Code:
<span id="countdown" class="timer">13 min. and 21 sec.</span>
Code:
var seconds = 1491;
    function secondPassed() {
        var minutes = Math.round((seconds - 30)/60);
        var remainingSeconds = seconds % 60;
        if (remainingSeconds < 10) {
            remainingSeconds = "0" + remainingSeconds;
        }
        if (minutes < 10) {
            minutes = "0" + minutes;
        }
        document.getElementById('countdown').innerHTML = minutes + " min. and " + remainingSeconds + " sec.";
        document.title = minutes + "m " + remainingSeconds + "s - Free Bitcoin Faucet";
        if (seconds == 0) {
            clearInterval(countdownTimer);
            location.reload();
        } else {
            seconds--;
        }
    }
        var countdownTimer = setInterval('secondPassed()', 1000);
    

    // Read the cookie (note this will only work on the page loads after the cookie is created)
    var myCookie = readCookie('eas');
    var address = readCookie('bitcoin_faucet');
    var amount = readCookie('amount');
    if(myCookie == "existing") {
        identify(address);
        addressSubmitted("eas",address);
        paid(amount);
    } else if (myCookie == "new"){
        identify(address);
        addressSubmitted("new",address);
        paid(amount);
    }

    function readCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
    }

you must make imacros file and convert it to js, you can find the tool name is imacros code creator. find it on google

jov3n85, Member of Bitcoin Black Hat since Jul 2016.
Find all posts by this user
Like Post Quote this message in a reply
15-09-2016, 03:36 AM
Post: #3
RE: Need help with iMacros script, .JS javascript
it look you didn't understand me,i need some1 to show me how to solve countdown change time after every claim
Find all posts by this user
Like Post Quote this message in a reply
20-09-2016, 05:18 AM
Post: #4
RE: Need help with iMacros script, .JS javascript
(14-09-2016 11:48 AM)Munem2x Wrote: You are not allowed to view links. Register or Login to view.Site for which i want to create script change time after every claim(it goes up to 1h)
,so i need some1 who know .JS

You are not allowed to view links. Register or Login to view.

countdown is in code
Code:
<span id="countdown" class="timer">13 min. and 21 sec.</span>
Code:
var seconds = 1491;
    function secondPassed() {
        var minutes = Math.round((seconds - 30)/60);
        var remainingSeconds = seconds % 60;
        if (remainingSeconds < 10) {
            remainingSeconds = "0" + remainingSeconds;
        }
        if (minutes < 10) {
            minutes = "0" + minutes;
        }
        document.getElementById('countdown').innerHTML = minutes + " min. and " + remainingSeconds + " sec.";
        document.title = minutes + "m " + remainingSeconds + "s - Free Bitcoin Faucet";
        if (seconds == 0) {
            clearInterval(countdownTimer);
            location.reload();
        } else {
            seconds--;
        }
    }
        var countdownTimer = setInterval('secondPassed()', 1000);
    

    // Read the cookie (note this will only work on the page loads after the cookie is created)
    var myCookie = readCookie('eas');
    var address = readCookie('bitcoin_faucet');
    var amount = readCookie('amount');
    if(myCookie == "existing") {
        identify(address);
        addressSubmitted("eas",address);
        paid(amount);
    } else if (myCookie == "new"){
        identify(address);
        addressSubmitted("new",address);
        paid(amount);
    }

    function readCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
    }

Please reference at least one site where you want to do this

bar4ka, Member of Bitcoin Black Hat since Sep 2016.
3Gmrj3fdP6uQD7CzzWWDSwgEzrG59bUM2h
DECAPTCHA PROJECT:
You are not allowed to view links. Register or Login to view.
BITCOIN SITE:
You are not allowed to view links. Register or Login to view.
Find all posts by this user
Like Post Quote this message in a reply
Advertisement
20-09-2016, 06:28 AM
Post: #5
RE: Need help with iMacros script, .JS javascript
You are not allowed to view links. Register or Login to view.
Find all posts by this user
Like Post Quote this message in a reply
28-09-2016, 01:28 AM (This post was last modified: 28-09-2016 01:28 AM by btcludo.)
Post: #6
RE: Need help with iMacros script, .JS javascript
If you want to do this from client side it won't work. You can change the timer but it will be changed just in your computer. Last claim will be recorded in the site's database and when you reload the page the timer will go back to normal.

If you want to bypass the timer you can send a post request to the site with the same parameters as the claim button do but if the site has been developed in an acceptable way that request will be checked at server side again and won't work.

If you are the page admin and you want to set a random timer every time a user claims then you have to do that from server side. Inserting a record in the database stating how much time to wait until next claim and then generating the page in consequence.

Hope I'm not late Big Grin
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Help me code imacros for bitcoinker. com! LeePhan 2 255 17-05-2017 06:16 PM
Last Post: DarkStalker
  Various iMacros Questions? davidxy 8 1,120 30-09-2016 06:58 AM
Last Post: btcludo
  Imacros Bitcoin Bot Mauphillips 0 1,856 07-07-2016 06:09 AM
Last Post: Mauphillips
  Imacros or bot Mentalist87 2 1,216 22-05-2016 09:37 AM
Last Post: Mentalist87

Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Advertisement

Contact Us | Advertise with Us! | Return to Top | Return to Content | Mobile Version | RSS Syndication