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

Script to void a nested javascript....?

Discussion in 'General Scripting Chat' started by Capital Gains, May 26, 2009.

  1. Capital Gains

    Capital Gains Registered Member

    Joined:
    Nov 19, 2008
    Messages:
    75
    Likes Received:
    24
    I did one of those deals with godaddy for regisering 5 domains and get free hosting.

    What I want to know is if there is a script that will make a script that godaddy has place null and void, or to where it wont caryy out its action.

    This is the script they have:

    Code:
    <script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>
    They put it after the closing HTML tag.

    Thanks

    Capital Gains
     
  2. equin0x

    equin0x Newbie

    Joined:
    May 28, 2009
    Messages:
    15
    Likes Received:
    32
    Complete stab in the dark but you could try adding an unclosed comment declaration after or before the closing html tag. The browser will read the rest of the html as code comments so their js won't be executed.

    Code:
    </html>
    <!--
    
    or

    Code:
    <!---
    </html>
    
     
  3. monk13

    monk13 Power Member

    Joined:
    Jul 10, 2009
    Messages:
    547
    Likes Received:
    268
    they have some measures against that, rather than that, use a div, with a z index set to 0 set to float and just block out the ads, then submit a report to google about a site in violation of adsense tos (your site) and the ads get pulled off
    (yes, the ads are provided by adsense)
    be careful to remove the floating div after google checks and removes the ads, otherwise godaddy will revoke hosting based on terms of service violation
     
    • Thanks Thanks x 1
  4. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
    Nice one monk13 :)
     
    • Thanks Thanks x 1