GM help really quickly?

Discussion in 'World of SPAM' started by Fexxel, Jun 20, 2009.

  1. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    Realy simple question.
    How do I make it so that when the window location is a certain url the script does stuff?
    I'm trying something like this:
    Code (Text):
    1.  
    2. if window.location.href = "url here"
    3. {
    4. GM_openInTab("http://www.neopets.com/shop_of_offers.phtml?slorg_payout=yes")
    5.     GM_openInTab("http://www.neopets.com/prehistoric/omelette.phtml?type=get_omelette")
    6.     GM_openInTab("http://www.neopets.com/jelly/jelly.phtml?type=get_jelly")
    7.     GM_openInTab("http://www.neopets.com/desert/fruitmachine2.phtml")
    8.     GM_openInTab("http://www.neopets.com/faerieland/springs.phtml?type=heal")
    9.     GM_openInTab("http://www.neopets.com/water/fishing.phtml?go_fish=1"
    10.     GM_openInTab("http://www.neopets.com/worlds/geraptiku/process_tomb.phtml")
    11.     GM_openInTab("http://www.neopets.com/games/play.phtml?game_id=13")
    12.     GM_openInTab("http://www.neopets.com/faerieland/wheel.phtml")
    13.     GM_openInTab("http://www.neopets.com/faerieland/wheel2.phtml?")
    14.     GM_openInTab("http://www.neopets.com/desert/shrine.phtml?type=approach")
    15. }
    16.  
    But it's not working
    How do I get it to work?
    And yeah, I edited out the window location = part because you can't like to other sites.
    Thanks in advance :)
     
  2. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    WAIT!
    I FIGURED IT OUT!
    WOO!!!
    A mod can delete this thread lol... Please?
     
  3. Commy

    Commy Moderator
    Staff Member

    Joined:
    Aug 11, 2007
    Messages:
    2,781
    Likes Received:
    108
    Location:
    Melbourne
  4. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    exactly