1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

console script for browser

Discussion in 'HTML & JavaScript' started by dalooroorl, Jun 28, 2014.

  1. dalooroorl

    dalooroorl Newbie

    Joined:
    Sep 15, 2013
    Messages:
    15
    Likes Received:
    0
    Hi.

    I want a script to click in a input box, every 2 seconds, that i can run in a browser console.
    Its for a game, as i to other stuff in other tabs, it plays for me :D


    prntscr.co m/ 3xd 9w (dunno why u guys wont allow links, but ok :x )


    EDIT: setInterval(function () {document.getElementById("myButtonId").click();}, 1000); dosnt work
     
    Last edited: Jun 28, 2014
  2. mypmmail

    mypmmail Junior Member

    Joined:
    Jan 31, 2008
    Messages:
    111
    Likes Received:
    27
    I think that is because this feature has been disabled on most browser now.

    To make it work, you can make a bookmarklet out of it and run the bookmarklet.