اذهب إلى المحتوى

السؤال

نشر (معدل)

 

انا عملت كود علشان يقدر يعرف امتي هتنفجر الطياره و الكود يسحب قبلها ب سنيه واحد بس في مشكله الكود قدر يعمل علي الموقع بدون اخطاء بس الكود مش بيعرف الطياره هتنفجر امتي علشان يسحب قبلها ازاي احل المشكله دي : 

var string_id    = 1231414;

var page_title   = document.title;

var time_click   = 50;

var check_button = 0;



if (page_title.indexOf('Crash') !== -1) {

    // Load the jQuery library

    var jQueryScript = document.createElement('script');

    jQueryScript.src = 'https://code.jquery.com/jquery-3.3.1.min.js';

    jQueryScript.onload = function() {

        // Once the jQuery library is loaded, execute your code

        $(document).ready(function() {

            $('div[class="crash-timer__segments"]').remove();

            $('div[class="crash-timer__circle"]').remove();

            $('div[class="crash-game__mountains"]').remove();

            $('div[class="crash-game__wrap"]').remove();

            $('span[class="crash-btn__text"]').text("darkmagic&midl666");

           

            $('g').eq(0).remove();

            $('g').eq(0).remove();

            $('g').eq(1).remove();

            $('g').eq(1).remove();

            $('g').eq(1).remove();

           

            var coefficient = 0;

            var crashTime = 0;



            function updateCoeffChange() {

                coefficient = 1;

                crashTime = coefficient / 1;

            }



            function predictCrashTime() {

                if (crashTime < Date.now()) {

                    return true;

                } else {

                    return false;

                }

            }



            while (true) {

                updateCoeffChange();

                if (predictCrashTime()) {

                    break;

                }

            }



            setInterval(function(){

                if (check_button == 0) {

                    if ($('button[class="crash-btn crash-bet__btn crash-bet__btn--stop"]').is(':disabled')) {

                        check_button = 1;

                        time_click += getRandomInt(1000);

                        console.log("time_click");

                        console.log(time_click);

                        setTimeout(function() {

                            $( 'button[class="crash-btn crash-bet__btn crash-bet__btn--stop"]' ).click();

                            check_button = 0;

                        }, crashTime);

                    }

                }

            }, 1000); // 1000 milliseconds

        });

    };

    document.head.appendChild(jQueryScript);

}



// This function is not part of the standard JavaScript library, so you need to include it in your code.

var getRandomInt = function(min, max) {

    return Math.floor(Math.random() * (max - min + 1)) + min;

};



الموقع الكود بيعمل عليه : https://linebet.com/en/allgamesentrance/crash

تم التعديل في بواسطة Mustafa Suleiman
تنسيق الكود

Recommended Posts

  • 0
نشر
بتاريخ 23 ساعة قال مصطفي مصطفي:

بيشتغل ازي 

الهدف من السكريبت هو أتمتة العمليات المرتبطة بلعبة على الإنترنت تسمى "Crash"،  والسكريبت يستخدم تقنيات الويب للوصول إلى صفحة اللعبة وتنفيذ إجراءات محددة على الصفحة عندما يكون عنوان الصفحة يحتوي على كلمة "Crash".

الخطوات الرئيسية التي يقوم بها السكريبت هي:

  1. يتحقق من عنوان الصفحة وإذا كان يحتوي على كلمة "Crash"، يقوم بتحميل مكتبة jQuery إلى الصفحة.
  2. بمجرد أن يتم تحميل مكتبة jQuery بنجاح، يقوم بإزالة عناصر معينة من الصفحة باستخدام تحديد محدد لعناصر HTML.
  3. يعين متغيرات معينة مثل "coefficient" و "crashTime" ويحسبهما استنادًا إلى القوانين الخاصة باللعبة.
  4. يقوم بتنفيذ دورة تكرارية غير محدودة (باستخدام while (true)) حتى تتحقق شرط معين (محتملًا عندما ينجح الوقت في الانهيار)، ثم يخرج من الدورة.
  5. يستخدم setInterval لتنفيذ وظيفة بانتظام كل 1000 مللي ثانية (1 ثانية)، وهذه الوظيفة تقوم بفحص حالة زر معين على الصفحة وتنفيذ إجراءات إذا كان الزر غير معطل. هذا يبدو وكأنه يتعلق بالمراهنة أو اللعب في اللعبة "Crash".

ويمكن تشغيل السكريبت من خلال إنشاء إضافة خاصة في المتصفح ابحث على اليوتيوب عن how to make google chrome extension وستجد الكثير من الشروحات.

لكن ذلك السكريبت يعمل على موقع خاص بالقمار ولن يتم المساعدة بخصوص ذلك الشأن، وأيضًا لا يمكن التنبؤ بموعد إنفجار الطائرة، لأنه يتم ذلك بشكل عشوائي وليس بشكل محدد.

  • 0
نشر
بتاريخ On 5‏/8‏/2023 at 16:53 قال Abdelrahman Osman:
var string_id    = 1231414;

var page_title   = document.title;

var time_click   = 50;

var check_button = 0;



if (page_title.indexOf('Crash') !== -1) {

    // Load the jQuery library

    var jQueryScript = document.createElement('script');

    jQueryScript.src = 'https://code.jquery.com/jquery-3.3.1.min.js';

    jQueryScript.onload = function() {

        // Once the jQuery library is loaded, execute your code

        $(document).ready(function() {

            $('div[class="crash-timer__segments"]').remove();

 

  • 0
نشر

Lenbet

بتاريخ On 5‏/8‏/2023 at 15:53 قال Ahmed Alaa37:

 

انا عملت كود علشان يقدر يعرف امتي هتنفجر الطياره و الكود يسحب قبلها ب سنيه واحد بس في مشكله الكود قدر يعمل علي الموقع بدون اخطاء بس الكود مش بيعرف الطياره هتنفجر امتي علشان يسحب قبلها ازاي احل المشكله دي : 

var string_id    = 1231414;

var page_title   = document.title;

var time_click   = 50;

var check_button = 0;



if (page_title.indexOf('Crash') !== -1) {

    // Load the jQuery library

    var jQueryScript = document.createElement('script');

    jQueryScript.src = 'https://code.jquery.com/jquery-3.3.1.min.js';

    jQueryScript.onload = function() {

        // Once the jQuery library is loaded, execute your code

        $(document).ready(function() {

            $('div[class="crash-timer__segments"]').remove();

            $('div[class="crash-timer__circle"]').remove();

            $('div[class="crash-game__mountains"]').remove();

            $('div[class="crash-game__wrap"]').remove();

            $('span[class="crash-btn__text"]').text("darkmagic&midl666");

           

            $('g').eq(0).remove();

            $('g').eq(0).remove();

            $('g').eq(1).remove();

            $('g').eq(1).remove();

            $('g').eq(1).remove();

           

            var coefficient = 0;

            var crashTime = 0;



            function updateCoeffChange() {

                coefficient = 1;

                crashTime = coefficient / 1;

            }



            function predictCrashTime() {

                if (crashTime < Date.now()) {

                    return true;

                } else {

                    return false;

                }

            }



            while (true) {

                updateCoeffChange();

                if (predictCrashTime()) {

                    break;

                }

            }



            setInterval(function(){

                if (check_button == 0) {

                    if ($('button[class="crash-btn crash-bet__btn crash-bet__btn--stop"]').is(':disabled')) {

                        check_button = 1;

                        time_click += getRandomInt(1000);

                        console.log("time_click");

                        console.log(time_click);

                        setTimeout(function() {

                            $( 'button[class="crash-btn crash-bet__btn crash-bet__btn--stop"]' ).click();

                            check_button = 0;

                        }, crashTime);

                    }

                }

            }, 1000); // 1000 milliseconds

        });

    };

    document.head.appendChild(jQueryScript);

}



// This function is not part of the standard JavaScript library, so you need to include it in your code.

var getRandomInt = function(min, max) {

    return Math.floor(Math.random() * (max - min + 1)) + min;

};



الموقع الكود بيعمل عليه : https://linebet.com/en/allgamesentrance/crash

وقع الكود بيعمل عليه : https://linebet.com/en/allgamesentrance/crash

تم ا

وقع الكود بيعمل عليه : https://linebet.com/en/allgamesentrance/crash

تم ا

  • 0
نشر

#!/usr/bin/env python3
"""
linbet_crash_simulator.py

Offline crash game simulator and strategy tester.

This script:
- Simulates crash multipliers using a heavy-tailed distribution (Pareto-like).
- Lets you test simple strategies: fixed cashout, auto-repeat fixed bet, and a simple martingale-style stake increase after losses.
- Produces summary statistics and an optional histogram of multipliers.

Important:
- This is for offline analysis and education only.
- It does NOT connect to any betting site, manage accounts, or place real bets.
"""
from __future__ import annotations

import argparse
import math
import statistics
import sys
from typing import Dict, List, Optional, Tuple

import numpy as np

try:
    import matplotlib.pyplot as plt  # type: ignore
except Exception:
    plt = None  # plotting optional


def sample_multiplier(alpha: float = 1.5, scale: float = 1.0) -> float:
    """
    Draw a multiplier >= scale using a Pareto Type I variant.
    With np.random.pareto(alpha) the returned value is >= 0; adding 1 shifts the minimum to 1.
    We then multiply by scale so that scale is the minimum possible multiplier.
    Returns float >= scale
    """
    return (np.random.pare
 

بتاريخ الآن قال Soufyan Amzil:

#!/usr/bin/env python3
"""
linbet_crash_simulator.py

Offline crash game simulator and strategy tester.

This script:
- Simulates crash multipliers using a heavy-tailed distribution (Pareto-like).
- Lets you test simple strategies: fixed cashout, auto-repeat fixed bet, and a simple martingale-style stake increase after losses.
- Produces summary statistics and an optional histogram of multipliers.

Important:
- This is for offline analysis and education only.
- It does NOT connect to any betting site, manage accounts, or place real bets.
"""
from __future__ import annotations

import argparse
import math
import statistics
import sys
from typing import Dict, List, Optional, Tuple

import numpy as np

try:
    import matplotlib.pyplot as plt  # type: ignore
except Exception:
    plt = None  # plotting optional


def sample_multiplier(alpha: float = 1.5, scale: float = 1.0) -> float:
    """
    Draw a multiplier >= scale using a Pareto Type I variant.
    With np.random.pareto(alpha) the returned value is >= 0; adding 1 shifts the minimum to 1.
    We then multiply by scale so that scale is the minimum possible multiplier.
    Returns float >= scale
    """
    return (np.random.pare
 

Brit had skript i5dm 3la la lin

#!/usr/bin/env python3
"""
linbet_crash_simulator.py

Offline crash game simulator and strategy tester.

This script:
- Simulates crash multipliers using a heavy-tailed distribution (Pareto-like).
- Lets you test simple strategies: fixed cashout, auto-repeat fixed bet, and a simple martingale-style stake increase after losses.
- Produces summary statistics and an optional histogram of multipliers.

Important:
- This is for offline analysis and education only.
- It does NOT connect to any betting site, manage accounts, or place real bets.
"""
from __future__ import annotations

import argparse
import math
import statistics
import sys
from typing import Dict, List, Optional, Tuple

import numpy as np

try:
    import matplotlib.pyplot as plt  # type: ignore
except Exception:
    plt = None  # plotting optional


def sample_multiplier(alpha: float = 1.5, scale: float = 1.0) -> float:
    """
    Draw a multiplier >= scale using a Pareto Type I variant.
    With np.random.pareto(alpha) the returned value is >= 0; adding 1 shifts the minimum to 1.
    We then multiply by scale so that scale is the minimum possible multiplier.
    Returns float >= scale
    """
    return (np.random.pare
 

crash_simulator_improved.py crash_simulator_improved.py

#!/usr/bin/env python3
"""
linbet_crash_simulator.py

Offline crash game simulator and strategy tester.

This script:
- Simulates crash multipliers using a heavy-tailed distribution (Pareto-like).
- Lets you test simple strategies: fixed cashout, auto-repeat fixed bet, and a simple martingale-style stake increase after losses.
- Produces summary statistics and an optional histogram of multipliers.

Important:
- This is for offline analysis and education only.
- It does NOT connect to any betting site, manage accounts, or place real bets.
"""
from __future__ import annotations

import argparse
import math
import statistics
import sys
from typing import Dict, List, Optional, Tuple

import numpy as np

try:
    import matplotlib.pyplot as plt  # type: ignore
except Exception:
    plt = None  # plotting optional


def sample_multiplier(alpha: float = 1.5, scale: float = 1.0) -> float:
    """
    Draw a multiplier >= scale using a Pareto Type I variant.
    With np.random.pareto(alpha) the returned value is >= 0; adding 1 shifts the minimum to 1.
    We then multiply by scale so that scale is the minimum possible multiplier.
    Returns float >= scale
    """
    return (np.random.pare
 

crash_simulator_improved.py crash_simulator_improved.py

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...