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

Ebay somehow jailing Javascript?

Discussion in 'Ebay' started by Orebil, Jul 29, 2008.

  1. Orebil

    Orebil Registered Member

    Joined:
    Jul 13, 2008
    Messages:
    66
    Likes Received:
    13
    Occupation:
    Web Developer
    Location:
    USA
    Has anyone dug deep into ebay's JS code? It seems they're somehow jailing certain attributes and commands to prevent them from running. My JS debugger says the script is executing but nothing happens. It works fine off of ebay. I could dig through their code but it's rather extensive. Has anyone looked at it?
     
  2. Essential Clix

    Essential Clix Executive VIP Premium Member

    Joined:
    Jul 30, 2007
    Messages:
    1,755
    Likes Received:
    2,791
    Location:
    USA
    I know ebay prevents certain javascript functions from working properly, particularly the ones that used to make my no-right-click script work. They've been doing this for some time now. Not 100% sure if this is what you're talking about tho...
     
  3. fl*oorg0d

    fl*oorg0d Registered Member

    Joined:
    Apr 16, 2008
    Messages:
    50
    Likes Received:
    20
    I don't know much at all about javascript, but I believe the following code still works on e*bay for disabling right click. At least it did last week when I removed it from an old auction template that I still had it on.

    Code:
     
    <SCRIPT language=javascript>
    var message="Function Disabled!";
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }
    function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }
    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }
    document.oncontextmenu=new Function("alert(message);return false;")
    </SCRIPT>
    
    .
     
  4. Essential Clix

    Essential Clix Executive VIP Premium Member

    Joined:
    Jul 30, 2007
    Messages:
    1,755
    Likes Received:
    2,791
    Location:
    USA
    I think I may have been mistaken. I think it was the "scramble text" script, not the no-right-click.
     
  5. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107
    If you read the heading on the edit listing text when you create an auction you will see what javascript code they do not allow. You can enter it in but they will automagically remove it from your html codez. If you try to get tricky, they will probably warn you then shit can you.. I thought I was getting sneaky with some shit I was doing, but they caught on. :(

    Code:
    http://pages.ebay.com/help/policies/listing-javascript.html
     
  6. tonlilaz

    tonlilaz Executive VIP Premium Member

    Joined:
    Feb 28, 2008
    Messages:
    1,558
    Likes Received:
    1,700
    Occupation:
    Deleting crappy threads on BHW, making good use of
    Location:
    Over There
    Home Page:
    you know what? that only used to happen when i tried to revise some ebay auctions with auctiva ( when i was a member of auctiva) then i'd see all kinds of code that didn't exist before

    interesting to get that kind of error with auctiva, eh?
     
  7. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107

    I looked at what auctiva does.. Man they load a ton of crap, a few flash things, a couple javascript shit to do stats and some flash gallery.. They are dirty. Too bad I didn't come up with something like that :D
     
  8. Orebil

    Orebil Registered Member

    Joined:
    Jul 13, 2008
    Messages:
    66
    Likes Received:
    13
    Occupation:
    Web Developer
    Location:
    USA
    Thanks but I can get my code past those filters. It gets into the auction fine but when the page loads the code does nothing. As far as I can tell ebay's own JS is blocking it from working.
     
  9. gragster

    gragster Regular Member

    Joined:
    May 24, 2008
    Messages:
    231
    Likes Received:
    38
    Seems they are getting smarter
     
  10. JohnDoe

    JohnDoe Junior Member

    Joined:
    Dec 28, 2007
    Messages:
    159
    Likes Received:
    21
    Orebil download and firebug and take a look at the dom window and see what is happening with the javascript