1. JavaScript / Говнокод #606

    +132.2

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    (function($) {
    	$(document).ready(function(){
    		//Love jQuery :)
    		$("#noscript_testimonials").parent().append($('#noscript_testimonials > *').clone().css({"overflow": "hidden", "position": "relative", "width": "250px", "margin-left": "15px"}).find(".noscript_testimonials").each(function (){ $(this).remove();	}).end()).find("#noscript_testimonials").remove().end().find('#testimonials').cycle({
    		  fx: 'scrollDown',
    		  cleartype: true,
    		  pause: true
    		});
    	});
    })(jQuery);

    И обфускация не нужна)

    guest, 25 Февраля 2009

    Комментарии (1)
  2. JavaScript / Говнокод #598

    +138

    1. 1
    alert('Anticat!!!!!1 ;)');

    AlexTheC0d3r

    guest, 22 Февраля 2009

    Комментарии (4)
  3. JavaScript / Говнокод #593

    +213.2

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    function validateForm(form) {
        if (isNotEmpty(form.name1)) {
            if (isNotEmpty(form.name2)) {
                if (isNotEmpty(form.eMail)) {
                    if (isEMailAddr(form.eMail)) {
                        if (isChosen(form.continent)) {
                            if (isValidRadio(form.accept)) {
                                return true;
                            }
                        }
                    }
                }
            }
        }
        return false;
    }

    решение "в лоб".

    guest, 20 Февраля 2009

    Комментарии (2)
  4. JavaScript / Говнокод #582

    +157.9

    1. 1
    var ext = /(\.[^.]*?)$/.exec(filename)?/(\.[^.]*?)$/.exec(filename)[1]:/[\/\\]([^\/\\]*?)$/.exec(filename)?/[\/\\]([^\/\\]*?)$/.exec(filename)[1]:filename; // I love JavaScript :)

    получаем расширение файла )

    guest, 19 Февраля 2009

    Комментарии (0)
  5. JavaScript / Говнокод #574

    +158.9

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    if(this.o)
    {
        if((cur=='1')||(cur=='2'))cur='2';
        if((cur=='3')||(cur=='4'))cur='4';
        if((cur=='5')||(cur=='6'))cur='6';
        if((cur=='7')||(cur=='8'))cur='8';
    };
    
    /*
        Ну а чувакам пИсавшим эту функциию, посвящается:
    */
    if(cur & 1)
        ++cur;

    Фрагмент кода из CMS Bitrix 7

    guest, 19 Февраля 2009

    Комментарии (3)
  6. JavaScript / Говнокод #519

    +166.1

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    <script language='JavaScript' type='text/javascript'>
    document.write( '<span style=\'display: none;\'>' );
    </script>
    Этот e-mail адрес защищен от спам-ботов, для его просмотра у Вас должен быть включен Javascript
    <script language='JavaScript' type='text/javascript'>
    document.write( '</' );
    document.write( 'span>' );
    </script>

    guest, 09 Февраля 2009

    Комментарии (0)
  7. JavaScript / Говнокод #518

    +141.7

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    function GetRandomChance(startchance,endchance)
    {
    	var randomvalue = new Array;
    	randomvalue[0]=(Math.random()*(startchance/endchance));
    	randomvalue[1]=(Math.random()*(endchance/startchance));
    	randomvalue[2]=(Math.random()*(48375427/54277435));
    	randomvalue[3]=(randomvalue[0]/randomvalue[1]);
    	randomvalue[4]=(randomvalue[3]/randomvalue[2]);
    	randomvalue[5]=(randomvalue[4]*(startchance/endchance));
    	randomvalue[6]=(randomvalue[5]*Math.random()*182473646646*134636463*randomvalue[0]*randomvalue[3]*randomvalue[5]);
    	return(randomvalue[6]);
    }
    
    function GetSSIODC(siteSpoiler)
    {
    	BaseCutR=siteSpoiler.indexOf("["+defCut+"=");
    	StartCutR=(BaseCutR+("["+defCut+"=").length);
    	PreCutR=(siteSpoiler.slice(StartCutR).indexOf("]"));
    	EndCutR=(StartCutR+PreCutR);
    	CheckCutR=(EndCutR+siteSpoiler.slice(StartCutR).indexOf('['+defCut));
    	if(CheckCutR==EndCutR-1||EndCutR<CheckCutR){BoolCutR=true;}
    	if(BoolCutR==true){StringCutR=siteSpoiler.slice(StartCutR,EndCutR);}
    }
    
    function GetSSIODCNG(siteSpoiler)
    {
    	BaseCut2R=siteSpoiler.indexOf("["+defCutNG+"=");
    	StartCut2R=(BaseCut2R+("["+defCutNG+"=").length);
    	PreCut2R=(siteSpoiler.slice(StartCut2R).indexOf("]"));
    	EndCut2R=(StartCut2R+PreCut2R);
    	CheckCut2R=(EndCut2R+siteSpoiler.slice(StartCut2R).indexOf('['+defCutNG));
    	if(CheckCut2R==EndCut2R-1||EndCut2R<CheckCut2R)
    	{
    		BoolCut2R=true;
    	}
    	if(BoolCut2R==true)
    	{
    		StringCut2R=siteSpoiler.slice(StartCut2R, EndCut2R);
    	}
    }
    
    function RetAHSFGSHS(siteSpoiler)
    {
    	Random[1]=GetRandomChance(1000000000,100000);
    	Random[2]=GetRandomChance(1000000,100);
    	siteSpoiler=siteSpoiler.replace('['+defCutNG+']',f_defPreSPMsgTitle1a(""+Random[1]+i)+Random[1]+i+f_defPreSPMsgTitle1b+(x_imageSpoilerIcon_cl&&x_imageSpoilerIcon_op?(f_defPreSPMsgSPICON_x_imageSp()+Random[1]+i+f_defPostSPMsgSPICON_x_imageSp):"")+DefaultSpoilerText+f_defPostSPMsgTitle1a+Random[1]+i+f_defPostSPMsgTitle1b).replace('['+defCutNG+'=',f_defPreSPMsgTitle1a(""+Random[2]+i)+Random[2]+i+f_defPreSPMsgTitle1b+(x_imageSpoilerIcon_cl&&x_imageSpoilerIcon_op?(f_defPreSPMsgSPICON_x_imageSp()+Random[2]+i+f_defPostSPMsgSPICON_x_imageSp):"")+StringCut2R+f_defPostSPMsgTitle1a+Random[2]+i+f_defPostSPMsgTitle1b).replace((StringCut2R+']'),'');
    	return(siteSpoiler);
    }
    
    function RetAHSFGNOSHS(siteSpoiler)
    {
    	siteSpoiler=siteSpoiler.replace('['+defCutNG+']',defPreHTWSPMsgTitle+DefaultHiddenTextWarning+defPostHTWSPMsgTitle).replace('['+defCutNG+'=',defPreHTW2SPMsgTitle+StringCut2R+defPostHTW2SPMsgTitle+DefaultHiddenTextWarning+defPost2HTW2SPMsgTitle).replace((StringCut2R+']'),'');
    	return(siteSpoiler);
    }
    
    function RetSTDAHSFG(siteSpoiler)
    {
    	Random[3]=GetRandomChance(1000000000,100000);
    	Random[4]=GetRandomChance(1000000,100);
    	siteSpoiler=siteSpoiler.replace('['+defCut+']',f_defPreSPMsgTitle1a(""+Random[3]+i)+Random[3]+i+f_defPreSPMsgTitle1b+(x_imageSpoilerIcon_cl&&x_imageSpoilerIcon_op?(f_defPreSPMsgSPICON_x_imageSp()+Random[3]+i+f_defPostSPMsgSPICON_x_imageSp):"")+DefaultSpoilerText+f_defPostSPMsgTitle1a+Random[3]+i+f_defPostSPMsgTitle1b).replace('['+defCut+'=',f_defPreSPMsgTitle1a(""+Random[4]+i)+Random[4]+i+f_defPreSPMsgTitle1b+(x_imageSpoilerIcon_cl&&x_imageSpoilerIcon_op?(f_defPreSPMsgSPICON_x_imageSp()+Random[4]+i+f_defPostSPMsgSPICON_x_imageSp):"")+StringCutR+f_defPostSPMsgTitle1a+Random[4]+i+f_defPostSPMsgTitle1b).replace((StringCutR+']'), '');
    	return(siteSpoiler);
    }
    
    function RetNOAHSFGSHS(siteSpoiler)
    {
    	Random[5]=GetRandomChance(1000000000,100000);
    	Random[6]=GetRandomChance(1000000,100);
    	Random[7]=GetRandomChance(1000000000000,100000);
    	Random[8]=GetRandomChance(1000000,100000);
    	siteSpoiler=siteSpoiler.replace('['+defCutNG+']',f_defPreSPMsgTitle1a(""+Random[5]+i)+Random[5]+i+f_defPreSPMsgTitle1b+(x_imageSpoilerIcon_cl&&x_imageSpoilerIcon_op?(f_defPreSPMsgSPICON_x_imageSp()+Random[5]+i+f_defPostSPMsgSPICON_x_imageSp):"")+DefaultSpoilerText+f_defPostSPMsgTitle1a+Random[5]+i+f_defPostSPMsgTitle1b).replace('['+defCutNG+'=',f_defPreSPMsgTitle1a(""+Random[6]+i)+Random[6]+i+f_defPreSPMsgTitle1b+(x_imageSpoilerIcon_cl&&x_imageSpoilerIcon_op?(f_defPreSPMsgSPICON_x_imageSp()+Random[6]+i+f_defPostSPMsgSPICON_x_imageSp):"")+StringCut2R+f_defPostSPMsgTitle1a+Random[6]+i+f_defPostSPMsgTitle1b).replace((StringCut2R+']'),'');
    	siteSpoiler=siteSpoiler.replace('['+defCut+']',f_defPreSPMsgTitle1a(""+Random[7]+i)+Random[7]+i+f_defPreSPMsgTitle1b+(x_imageSpoilerIcon_cl&&x_imageSpoilerIcon_op?(f_defPreSPMsgSPICON_x_imageSp()+Random[7]+i+f_defPostSPMsgSPICON_x_imageSp):"")+DefaultSpoilerText+f_defPostSPMsgTitle1a+Random[7]+i+f_defPostSPMsgTitle1b).replace('['+defCut+'=',f_defPreSPMsgTitle1a(""+Random[8]+i)+Random[8]+i+ f_defPreSPMsgTitle1b+(x_imageSpoilerIcon_cl&&x_imageSpoilerIcon_op?(f_defPreSPMsgSPICON_x_imageSp()+Random[8]+i+f_defPostSPMsgSPICON_x_imageSp):"")+StringCutR+f_defPostSPMsgTitle1a+Random[8]+i+f_defPostSPMsgTitle1b).replace((StringCutR+']'),'');
    	return(siteSpoiler);
    }
    
    function RetNOAHSFGNOSHS(siteSpoiler)
    {
    	siteSpoiler=siteSpoiler.replace('['+defCutNG+']',defPreHTWSPMsgTitle+DefaultHiddenTextWarning+defPostHTWSPMsgTitle).replace('['+defCutNG +'=',defPreHTW2SPMsgTitle+StringCut2R+defPostHTW2SPMsgTitle+DefaultHiddenTextWarning+defPost2HTW2SPMsgTitle).replace((StringCut2R+']'),'');
    	siteSpoiler=siteSpoiler.replace('['+defCut+']',defPreHTWSPMsgTitle+DefaultHiddenTextWarning+defPostHTWSPMsgTitle).replace('['+defCut+'=',defPreHTW2SPMsgTitle+StringCutR+defPostHTW2SPMsgTitle+DefaultHiddenTextWarning+defPost2HTW2SPMsgTitle).replace((StringCutR+']'),'');
    	return(siteSpoiler);
    }

    guest, 09 Февраля 2009

    Комментарии (0)
  8. JavaScript / Говнокод #474

    +148

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    <script type="text/javascript">
    $(document).ready(function(){
    
    $(".in").hover(
      function () {
      $(this).css("background-color","#EEE7C5");
      },
      function () {
      $(this).css("background-color","#97CAFF");
      }
    )
    });
    </script>
    
    
    
    
    
    <div onclick="location.href='feed2.png';" style="cursor: pointer;" class="in">
    Блог
    </div>

    guest, 28 Января 2009

    Комментарии (4)
  9. JavaScript / Говнокод #473

    +162.8

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    function time__down_guest_book_IESHNIK_PIDARAS() //су..а на..уй в рот е.ись! //я это я процензурил ж) 
    { 
     scroll_book.setValueBy(0.05);
     if(parseInt($('scrol_book').style.top) < ($('scrol_book_container').getHeight()-22) && guest_opened == 1){
       
       down=setTimeout("time__down_guest_book()",25);
       processing = 1;
     } else {
      // $('scrol_book_container').style.display = 'none'; 
       guest_opened = 0;
      // alert($('scrol_book_container').style.zindex);
       $('scrol_book_container').className = 'guest_closed';
     }
    }

    у меня истерика была..

    guest, 28 Января 2009

    Комментарии (2)
  10. JavaScript / Говнокод #468

    +176.4

    1. 1
    2. 2
    3. 3
    4. 4
    if ('yes'!= 'yes') {
    	checkCaptcha();
    	return true;
    }

    в кодах блог движка нашел подобное..

    guest, 27 Января 2009

    Комментарии (5)