ЙажаСценарий / Говнокод #518 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  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 guest, (Updated )

Комментарии (0) RSS

Добавить комментарий

Помни, guest, за тобой могут следить!

    А не использовать ли нам bbcode?


    8