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

IMacros Url current change

Discussion in 'Black Hat SEO Tools' started by haidernou, Jul 19, 2014.

  1. haidernou

    haidernou Newbie

    Joined:
    Jul 19, 2014
    Messages:
    1
    Likes Received:
    0
    Hallo everyone

    I want to make a imacros code dealing with this

    1-the current url must be copied
    2- doing some change on it

    exp.
    current url=example.url/aaa/1245.html
    aaa have to be changed to bbb
     
  2. allroy

    allroy Registered Member

    Joined:
    Aug 4, 2013
    Messages:
    67
    Likes Received:
    18
    Something like this maybe?

    Code:
    SET !VAR1 EVAL("var s=\"{{!URLCURRENT}}\"; s.replace(\"aaa\",\"bbb\"); ")
    URL GOTO={{!VAR1}}
    For regex search switch out \"aaa\" with /aaa/ like this

    Code:
    SET !VAR1 EVAL("var s=\"{{!URLCURRENT}}\"; s.replace(/aaa/,\"bbb\"); ")
    URL GOTO={{!VAR1}}
    Seemed to work for me.
     
    Last edited: Jul 30, 2014
  3. rpkrocks

    rpkrocks Jr. VIP Jr. VIP

    Joined:
    Feb 4, 2010
    Messages:
    922
    Likes Received:
    918
    Location:
    Bḥārata
    Home Page:
    You have to use JS with Imacros (use imacroseditor to convert )


    This is how you write it :
    Then Extract URLCURRENT! using extract tag and use

    Variable url will contain the url and you can to anything with it ,USE REGEXP if you want .