Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New to the CF scene
    Join Date
    Mar 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javascript munged code - requires cleanup

    --------------------------------------------------------------------------------

    I had the following code from before which was code munged basically jumbles up the script to avoid people stealing.

    I have been trying to unmunge it but i am getting quite confused with the brackets and things.

    The code is as follows:

    <SCRIPT LANGUAGE ="Javascript">
    ifwindow.parent.nameATDYHSGJHDUYFHKJHwindow.location/functionclicke
    ifdocument.allifevent.button2window.closereturnfalseifdocument.layersife.which3window.closereturnfal se
    ifdocument.layersdocument.captureEventsEvent.MOUSEDOWN

    document.onmousedownclickset_timewindow.setTimeoutclearboard1000
    ifdocument.layersdocument.captureEventsEvent.KEYPRESSdocument.onkeypressCloseMeifdocument.alldocumen t.onkeydownCloseMefunctionCloseMewindow.closefunctionclearboard
    ifdocument.allwindow.clipboardData.setDataTextset_timewindow.setTimeoutclearboard1000/SCRIPT"));
    //-->
    </script>



    Can someone possibly clear this up, would be of great help.
    The main part i need is the clipboard bit.
    If you paste this into a page, it all works but i only need the clipboard section code of it and the rest messes up the page.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    .... code munged basically jumbles up the script to avoid people stealing.

    I have been trying to unmunge it ........

    Ah, yes. What was the word again?

  • #3
    New to the CF scene
    Join Date
    Mar 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Please

    Please can you help me on this i thought there would be an unmunger available but i couldnt find it.

    This script includes some window close thing which closes the window automatically-basically i just need the clipboard part which stop the suer from using prnt scrn on the keyboard.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    As you say, the aim of the author is to discourage and/or prevent other people from stealing it. That includes you.

  • #5
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It goes something like this I believe.

    Code:
    if(window.parent.name=='ATDYHSGJHDUYFHKJH'){window.location;}
    function click(e)
    {
      if(document.all)
      {
        if(event.button==2)
    	  {
    	    window.close();
      		return false;
    	  }
      }	
      if(document.layers)
      {
        if(e.which==3)
      	{
    	    window.close();
    		  return false;
      	}
      }
    }
    
    if(document.layers){document.captureEvents=Event.MOUSEDOWN;}
    
    document.onmousedown=click;
    window.setTimeout(clearboard,1000);
    
    if(document.layers){
      document.captureEvents=Event.KEYPRESS;
    	document.onkeypress=CloseMe;
    }
    if(document.all)
    {
      document.onkeydown=CloseMe;
    }	
    function CloseMe()
    {
      window.close;
    }
    function clearboard()
    {
      if(document.all)
    	{
    	  window.clipboardData.setData('Text','set_time');
    		window.setTimeout(clearboard,'1000');
    	}
    }

  • #6
    New to the CF scene
    Join Date
    Mar 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It works, thanks alot for helping me out and taking the time.
    Garadon is the man!

  • #7
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    But the fact remains, you're stealing it while the author is trying to prevent you from doing so...
    Shawn

  • #8
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    Originally posted by shlagish
    But the fact remains, you're stealing it while the author is trying to prevent you from doing so...
    <rant>
    And Garadon is an accessory to the theft. And if I may say so he ought to be ashamed. If someone uses munging, no-right click or whatever they are giving a clear signal that they are not offering their material to all and sundry as a freebie. They do not want it to be stolen. They are saying "go write your own code and don't filch it from me". Just because it can be stolen by an expert that does not make it fair game.
    </rant>

  • #9
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <rant>
    A: I am not an expert.
    B: If you don't want people to take your code you should copyrigth it not munged it.
    C: In my opinion if you make munged code that code is free for all to try and make it work, if you don't want people to take your code do be don't mung it, copyrigthing munged code does not copyrigth the working code.
    D:I don't believe in interlectual property.
    E:If you read the above you really wasted ur time there.
    </rant>

  • #10
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,310
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    "D:I don't believe in interlectual property."

    Nor in spelling either it seems. Sorry, I don't hold with theft or dishonesty, but please feel free to publicly proclaim your own lack of integrity as much as you wish.
    Last edited by Philip M; 03-15-2004 at 08:23 PM.

  • #11
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    <rant>
    You don't beleive in intellectual property?
    Well I do.
    What property isn't intellectual? The guy/gal who created, let's say, the chair, for example, didn't invent wood. He just thought of a way to put the wood together. Similarily, the guy/gal who created that code didn't invent javascript. He just thought of a way to put in together. Does it make his invention less valuable?

    If you read the above you really wasted ur time there.
    Do you mean by that that others shouldn't take into consideration what you say? That I should just ignore you?
    I don't get it.

    And Philip M:
    Nor in spelling either it seems
    What was the use of that? What does spelling have to do with any of this?
    </rant>
    Shawn

  • #12
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yup I am of the firm opinion than rants more often than not is a complete waste of time to read.

  • #13
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I beleive they help you become a better person (not you, YOU, you as in everybody, lol). By thinking about what other people think, you can maybe see things that you hadn't thought of before, and therefore make a better outcoming opinion on the subject.
    Shawn

  • #14
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I could care less what anyone thinks.
    • Right is Right
      Wrong is Wrong

    And if you can not understand that principle;

    One Wrong and one Right;
    Makes it even....

    .....Willy

  • #15
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    lol, ok I guess that means "stop fighting kids".
    Peace everyone!
    Shawn


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •