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

Repin iMacros

Discussion in 'Pinterest' started by Bluearrow, Jun 16, 2015.

  1. Bluearrow

    Bluearrow Regular Member

    Joined:
    Jul 8, 2010
    Messages:
    365
    Likes Received:
    93
    I have checked every iMacro I could find on BHW for Repin but none of these are working anymore. Anyone have a working script or good tutorial to make one ?




    ..
     
  2. IAmFromTheInternet

    IAmFromTheInternet Junior Member

    Joined:
    Feb 13, 2015
    Messages:
    180
    Likes Received:
    180
    I have this one: (By MasterPTC)

    Code:
    //AMF Advanced Script v2.1//by masterbots.net // Masterptc - Blackhatworld.com
    //support this free bot - masterbots.net/donate
    
    
    var email = "[email protected]";
    var pass = "password1234";
    
    
    var loopRandom = Math.floor(Math.random()*5 + 5); loopRandom;
    var points = 1; //click all set to 1
    
    
    
    
    var loginAmf;
    loginAmf =  "CODE:";
    loginAmf +=  "TAG POS=1 TYPE=INPUT:EMAIL FORM=NAME:NoFormName ATTR=NAME:email CONTENT={{EMAIL}}" + "\n"; 
    loginAmf +=  "SET !ENCRYPTION NO" + "\n"; 
    loginAmf +=  "TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:NoFormName ATTR=NAME:password CONTENT={{PASSWORD}}" + "\n"; 
    loginAmf +=  "TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:NoFormName ATTR=NAME:remember CONTENT=YES" + "\n"; 
    loginAmf +=  "TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:NoFormName ATTR=NAME:login_button&&VALUE:Login" + "\n"; 
    
    
    
    
    var errorOne = "#EANF#";
    var errorOneLowercase = "#eanf#";
    var errorTwo = "null";
    var counter = 0;
    var countNoAds = 0;
    var pointcount = 0;
    
    
    
    
    var tabClose;
        tabClose = "CODE:";
        tabClose += "TAB CLOSE";
        
        
    var tabsCloseAll;
        tabsCloseAll = "CODE:";
        tabsCloseAll += "TAB CLOSEALLOTHERS";
    
    
    var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
    .getInterface(Components.interfaces.nsIWebNavigation)
    .QueryInterface(Components.interfaces.nsIDocShellTreeItem)
    .rootTreeItem
    .QueryInterface(Components.interfaces.nsIInterfaceRequestor)
    .getInterface(Components.interfaces.nsIDOMWindow);
    
    
    function TabLeft()
    {
    mainWindow.gBrowser.tabContainer.advanceSelectedTab(-5, true);
    return "True";
    }    
        
    var scrollTop;
        scrollTop = "CODE:";
        scrollTop += "URL GOTO=javascript:window.scrollBy(0,-5000)" + "\n";
        scrollTop +=  "WAIT SECONDS=0.5" + "\n";
        
    var waitSeconds;
        waitSeconds = "CODE:";
        waitSeconds += "WAIT SECONDS=2";
    
    
        
    var skip;
    skip =  "CODE:";
    skip +=  "TAG POS=2 TYPE=DIV ATTR=TXT:Skip" + "\n";
    skip +=  "WAIT SECONDS=2" + "\n";
    
    
        
        
        
    var waitSecondsThree;
        waitSecondsThree = "CODE:";
        waitSecondsThree += "WAIT SECONDS=3";
        
    var waitSecondsTen;
        waitSecondsTen = "CODE:";
        waitSecondsTen += "WAIT SECONDS=10";
        
    var waitSecondsSeven;
        waitSecondsSeven = "CODE:";
        waitSecondsSeven += "WAIT SECONDS=7";
    
    
    var startingUrl;
    startingUrl =  "CODE:";
    startingUrl +=  "SET !TIMEOUT_PAGE 15" + "\n";
    startingUrl +=  "URL GOTO=http://addmefast.com" + "\n";
    
    
    var loggedInLink = "http://addmefast.com/free_points";
    var loggedOutLink = "http://addmefast.com/";
    var pinterestRepinPage = "http://addmefast.com/free_points/pinterest_repin";
    
    
    var pinterestRepinLink;
    pinterestRepinLink =  "CODE:";
    pinterestRepinLink +=  "TAG POS=1 TYPE=A ATTR=TXT:Pinterest<SP>Repins" + "\n";
    pinterestRepinLink +=  "WAIT SECONDS=2" + "\n";
    
    
    var pinterestRepin;
    pinterestRepin =  "CODE:";
    pinterestRepin +=  "SET !TIMEOUT_PAGE 10" + "\n";
    pinterestRepin +=  "SET !TIMEOUT_STEP 2" + "\n";
    pinterestRepin +=  "TAG POS=1 TYPE=DIV ATTR=TXT:Repin" + "\n";
    pinterestRepin +=  "FRAME F=0" + "\n";
    pinterestRepin +=  "WAIT SECONDS=3.5" + "\n";
    
    
    var pinterestRepinTwo;
    pinterestRepinTwo =  "CODE:";
    pinterestRepinTwo +=  "SET !TIMEOUT_PAGE 10" + "\n";
    pinterestRepinTwo +=  "SET !TIMEOUT_STEP 2" + "\n";
    pinterestRepinTwo +=  "TAG POS=2 TYPE=DIV ATTR=TXT:Repin" + "\n";
    pinterestRepinTwo +=  "FRAME F=0" + "\n";
    pinterestRepinTwo +=  "WAIT SECONDS=3.5" + "\n";
    
    
    
    
    var doPinterestRepin;
    doPinterestRepin =  "CODE:";
    doPinterestRepin +=  "SET !TIMEOUT_PAGE 10" + "\n";
    doPinterestRepin +=  "SET !TIMEOUT_STEP 2" + "\n";
    doPinterestRepin +=  "TAG POS=1 TYPE=BUTTON ATTR=TXT:Pin<SP>it" + "\n";
    doPinterestRepin +=  "WAIT SECONDS=2" + "\n";
    doPinterestRepin +=  "TAG POS=1 TYPE=BUTTON ATTR=TXT:Pin<SP>it CONTENT=EVENT:MOUSEOVER" + "\n";
    doPinterestRepin +=  "WAIT SECONDS=1" + "\n";
    doPinterestRepin +=  "TAG POS=1 TYPE=BUTTON ATTR=TYPE:button&&CLASS:Button<SP>Module<SP>btn<SP>primary<SP>primaryOnHover<SP>repinSmall<SP>repinBtn<SP>rounded" + "\n";
    doPinterestRepin +=  "WAIT SECONDS=1" + "\n";
    
    
    iimPlay(startingUrl);
    
    
    if (loggedInLink != window.location){
        iimSet("EMAIL", email);
        iimSet("PASSWORD", pass);
        iimPlay(loginAmf);
             }
    
    
    iimPlay(pinterestRepinLink);
    var stopButton = "Macro stopped manually";
    
    
    for (i = 1; i <= loopRandom; i++) {
    
    
    ////Check for stopButton
    var macroError = iimGetLastError();
    if (macroError == stopButton){
    break;
    }
    //
    
    
    
    
    iimDisplay("Current loop: "+ i);
    
    
    var loopNumberCheck = i === 25 || i === 50 || i === 75 || i === 100 || i === 125 || i === 150 || i === 175 || i === 200 || i === 225 || i === 250;
    
    
    if(loopNumberCheck === true){
    iimPlay(waitSecondsTen);
    }
    
    
    
    
    if (window.location == loggedOutLink){
        iimSet("EMAIL", email);
        iimSet("PASSWORD", pass);
        iimPlay(loginAmf);
        iimPlay(pinterestRepinLink);
             }
            
             
    if (window.location != pinterestRepinPage) {
    iimPlay(pinterestRepinLink);
    }     
             
             
    //Check if the page has ads    
    var checkAvailableAds;
        checkAvailableAds = "CODE:";
        checkAvailableAds += "TAG POS=1 TYPE=DIV ATTR=ID:site-links-list EXTRACT=TXT";
    iimPlay(checkAvailableAds);
    var checkAvailableAds = iimGetLastExtract().toLowerCase();
    var checkAvailableAdsCheck = checkAvailableAds.contains("no items in this network for now. please try later.");
    
    
    if (checkAvailableAdsCheck === true){
    countNoAds++ 
    iimPlay ("CODE:WAIT SECONDS=1");
    iimPlay(pinterestRepinLink);
    iimPlay ("CODE:WAIT SECONDS=1");
    
    
    ///Second check <<
    var checkAvailableAds;
        checkAvailableAds = "CODE:";
        checkAvailableAds += "TAG POS=1 TYPE=DIV ATTR=ID:site-links-list EXTRACT=TXT";
    iimPlay(checkAvailableAds);
    var checkAvailableAds = iimGetLastExtract().toLowerCase();
    var checkAvailableAdsCheck = checkAvailableAds.contains("no items in this network for now. please try later.");
    
    
    if (checkAvailableAdsCheck === true){
    countNoAds++ 
    iimPlay(waitSeconds);
    } else {
    var countNoAds = 0;
    iimPlay ("CODE:WAIT SECONDS=1");
    }
    
    
    
    
    
    
    } else {
    var countNoAds = 0;
    }
    
    
    if (countNoAds >= 2){
    iimDisplay("No more ads in network. Try again later.");
    break;
    } 
           
    ///// 
    ///      
             
             
             
             
    
    
    var extractTitle;
    extractTitle =  "CODE:";
    extractTitle +=  "SET !TIMEOUT_STEP 2" + "\n";
    extractTitle +=  "TAG POS=1 TYPE=DIV ATTR=CLASS:likedPagesSingle EXTRACT=TXT" + "\n";
    
    
    iimPlay(extractTitle);
    var extractTitle = iimGetLastExtract().toLowerCase();
    var extractTitleCheck = extractTitle.contains("you will get") && extractTitle.contains("points for repinning.");
    
    
    
    
    //////////added v1.2
    if (extractTitleCheck  != true) {
    iimPlay(waitSecondsThree);
    
    
    var extractTitle;
    extractTitle =  "CODE:";
    extractTitle +=  "SET !TIMEOUT_STEP 6" + "\n";
    extractTitle +=  "TAG POS=1 TYPE=DIV ATTR=CLASS:likedPagesSingle EXTRACT=TXT" + "\n";
    
    
    iimPlay(extractTitle);
    var extractTitle = iimGetLastExtract().toLowerCase();
    var extractTitleCheck = extractTitle.contains("you will get") && extractTitle.contains("points for repinning.");
    
    
    }
    ////////////////
    
    
    
    
    if (extractTitleCheck  === true) {
    
    
    
    
    
    
    
    
    
    
    /////////added v2.1
    var numberPattern = /\d+/g;
    var renum = extractTitle.match(numberPattern);
    
    
    if(renum[0] >= points){
    pointcount = 0;
            
    iimPlay(pinterestRepin);
    
    
    if (window.location == pinterestRepinPage) {
    iimPlay(pinterestRepinTwo);
    }
    
    
    ////Check for stopButton
    var macroError = iimGetLastError();
    if (macroError == stopButton){
    break;
    }
    //
    
    
    //////check if page loaded
    var checkPageActive = window.location;
    var checkActivePage = String(checkPageActive).contains("pinterest.com");
    if (checkActivePage === true){
    /////
    
    
    
    
    iimPlay(doPinterestRepin);
    
    
    ////Check for stopButton
    var macroError = iimGetLastError();
    if (macroError == stopButton){
    break;
    }
    //
    
    
    
    
    var currentWindow = window.location;
    var currentWindowCheck = String(currentWindow).contains("pinterest.com");
    if (currentWindowCheck === true){
        iimPlay(tabClose);
             }
    
    
    
    
    iimPlay(scrollTop);
    var randomNumber = Math.floor(Math.random()*3 + 3); randomNumber;
    
    
    var waitSecondsRandom;
        waitSecondsRandom = "CODE:";
        waitSecondsRandom += "WAIT SECONDS={{SECONDS}}";
        
    iimSet("SECONDS", randomNumber);
    iimPlay(waitSecondsRandom);
    
    
    ////Check for stopButton
    var macroError = iimGetLastError();
    if (macroError == stopButton){
    break;
    }
    //
    
    
    ///////////////////////
    //////////////////////Check for points success message
    var extractError = function()
    {
    extractErrorMessage =  "CODE:";
    extractErrorMessage +=  "SET !TIMEOUT_STEP 1" + "\n";
    extractErrorMessage +=  "TAG POS=1 TYPE=DIV ATTR=CLASS:error_like EXTRACT=TXT" + "\n";
    iimPlay(extractErrorMessage);
    }    
    
    
    var extractSuccess = function()
    {
    extractSuccessMessage =  "CODE:";
    extractSuccessMessage +=  "SET !TIMEOUT_STEP 1" + "\n";
    extractSuccessMessage +=  "TAG POS=1 TYPE=DIV ATTR=CLASS:success_like EXTRACT=TXT" + "\n";
    iimPlay(extractSuccessMessage);
    }
    
    
    extractError();
    extractErrorMessage = iimGetLastExtract().toLowerCase();
    extractSuccess();
    extractSuccessMessage = iimGetLastExtract().toLowerCase();
    
    
    if (extractErrorMessage == errorOneLowercase && extractSuccessMessage == errorOneLowercase){
    iimPlay(waitSecondsSeven);
    extractError();
    extractErrorMessage = iimGetLastExtract().toLowerCase();
    extractSuccess();
    extractSuccessMessage = iimGetLastExtract().toLowerCase();
    }
    
    
    
    
    if (extractSuccessMessage != errorOneLowercase) {
    var counter = 0;
    } else {
    iimPlay(pinterestRepinLink);
    counter++
    }
    ///////////////////
    //////////////
    
    
    if(counter >= 3){
    break;
    }
    
    
    ////addition
    } else{
    TabLeft();
    iimPlay(tabsCloseAll);
    iimPlay(pinterestRepinLink);
    
    
    
    
    
    
    
    
    
    
    
    
    //------------
    var extractTitle;
    extractTitle =  "CODE:";
    extractTitle +=  "SET !TIMEOUT_STEP 2" + "\n";
    extractTitle +=  "TAG POS=1 TYPE=DIV ATTR=CLASS:likedPagesSingle EXTRACT=TXT" + "\n";
    
    
    iimPlay(extractTitle);
    var extractTitle = iimGetLastExtract().toLowerCase();
    var extractTitleCheck = extractTitle.contains("you will get")
    if(extractTitleCheck != true){
    iimPlay("CODE:WAIT SECONDS=7");
    }
    //-------------
    
    
    ////Check for stopButton
    var macroError = iimGetLastError();
    if (macroError == stopButton){
    break;}
    //
    
    
    
    
    ////second check
    iimPlay(pinterestRepin);
    
    
    if (window.location == pinterestRepinPage) {
    iimPlay(pinterestRepinTwo);
    }
    
    
    var checkPageActive = window.location;
    var checkActivePage = String(checkPageActive).contains("pinterest.com");
    if (checkActivePage === false){
    TabLeft();
    iimPlay(tabsCloseAll);
    iimDisplay("Pinterest is not loading correctly.");
    break;
    }else{
    TabLeft();
    iimPlay(tabsCloseAll);
    iimPlay(pinterestRepinLink);
    }
    ///
    
    
    
    
    }
    /////
    
    
    
    
    //update v2.1 // if points lower than wanted,
    }else{
    iimPlay(waitSeconds);
    
    
    ////Check for stopButton
    var macroError = iimGetLastError();
    if (macroError == stopButton){
    break;}
    //
    
    
    iimPlay(skip);
    iimPlay(scrollTop);
    pointcount++
    
    
    ////Check for stopButton
    var macroError = iimGetLastError();
    if (macroError == stopButton){
    break;}
    //
    
    
    if(i > 1){
    i--
    }
    
    
    if(pointcount >= 7){
    iimDisplay("7 loop point check error: Cant find any ads that meet your requirements." + "\n" + "Try again Later.");
    break;
    }
    
    
    }
    //end v2.1
    
    
    
    
    
    
    } else {
    iimPlay(waitSeconds);
    iimPlay(pinterestRepinLink);
    }
    
    
    TabLeft();
    iimPlay(tabsCloseAll);
    
    
    var current = window.location;
    if (String(current).contains("about")){
    iimPlay(startingUrl);
    }
    
    
    ////Check for stopButton
    var macroError = iimGetLastError();
    if (macroError == stopButton){
    break;
    }
    //
    
    
    }
     
    • Thanks Thanks x 1
  3. Bluearrow

    Bluearrow Regular Member

    Joined:
    Jul 8, 2010
    Messages:
    365
    Likes Received:
    93
    I saw that one too. I'm looking for a script use for my pinterest accounts. Just to pick a board and repin number of pins into one of my boards. ))
     
  4. rexymaris

    rexymaris Registered Member

    Joined:
    May 8, 2016
    Messages:
    51
    Likes Received:
    2
    hi, i have seen your script, could you explain how this script works and what it could do please?