- הוסף לסימניות
- #2,941
האמת שניסיתי אתמול לבנות משהו כזה... והתייאשתיטוב רבותי חבל עם הזמן שלכם יש לכם "כולל" מחר, או עבודה לנשות ישראל שמחזיקות את האברכים יותר מהכמה שקלים שהמכירה חוסכת...
אז לתועלתכם אני מעלה פה סקריפט וכמובן שאני לא לוקח שום אחריות משפטית או אחריות מכל סוג שהוא על השימוש בו אם זה מותר או אסור, והשימוש בו הוא על אחריות המשתמש בלבד.
את הסקריפט הפשוט הזה תפעילו ואז לכו לישון ובבוקר תגלו מה עלה בחכתכם.
תכנסו לעמוד של המוצר עצמו (בבשר וכד') ואז תתקינו לפי ההוראות.
ללחוץ קליק ימני, לבחור בדיקה,ואז יפתח החלון של הקוד של הדף, למטה יש אזור שנקרא מסוף בעברית או console באנגלית שמה אתם תדביקו את הקוד הזה
פעם ראשונה יהיה איזה שגיאה שהוא יבקש ממכם להקליד אישור שאתם מודעים לכך שאתם מזריקים קוד, באנגלית או בעברית תלוי מה מוגדר לו בשפה אם זה בעברית כבר תבינו מה לכתוב, אם זה באנגלית אז תקלידו allow pasting א"א להעתיק צריך להקליד.קוד:// ==UserScript== // @name Auto Click with Default Fallback // @namespace local.autoclick // @version 1.8 // @description אם המשתמש בוחר טווח קטן מ־120 שניות → חזרה לברירת מחדל 120–400 // @match https://example.com/* // <--- שנה לכתובת האתר שלך // @run-at document-idle // @grant none // ==/UserScript== (function () { 'use strict'; const SELECTOR = 'button.cart-btn-dt'; let running = false; let timerId = null; let countdownId = null; let minDelay = 120; let maxDelay = 400; let timeLeft = 0; function clickIfExists() { if (!running) return; const btn = document.querySelector(SELECTOR); if (btn && !btn.disabled) { btn.click(); playSound(); console.log('[auto-click] נלחץ ב:', new Date().toLocaleTimeString()); } else { console.log('[auto-click] כפתור לא נמצא או לא זמין'); } scheduleNextClick(); } function scheduleNextClick() { if (!running) return; const delay = (Math.floor(Math.random() * (maxDelay - minDelay + 1)) + minDelay); timeLeft = delay; console.log(`[auto-click] הלחיצה הבאה בעוד ${delay} שניות`); updateCountdown(); timerId = setTimeout(clickIfExists, delay * 1000); } function updateCountdown() { clearInterval(countdownId); countdownId = setInterval(() => { if (!running) { countdownDisplay.textContent = '—'; clearInterval(countdownId); return; } if (timeLeft > 0) { countdownDisplay.textContent = timeLeft + 's'; timeLeft--; } }, 1000); } function start() { if (running) return; let minVal = parseInt(document.getElementById('minDelay').value, 10); let maxVal = parseInt(document.getElementById('maxDelay').value, 10); if (isNaN(minVal) || isNaN(maxVal) || minVal >= maxVal) { alert('אנא הזן ערכים תקינים (מינימום קטן ממקסימום)'); return; } if ((maxVal - minVal) < 120) { alert('הטווח שבחרת קטן מ-120 שניות. חוזרים לברירת מחדל (120–400).'); minVal = 120; maxVal = 400; document.getElementById('minDelay').value = minVal; document.getElementById('maxDelay').value = maxVal; } minDelay = minVal; maxDelay = maxVal; running = true; console.log('[auto-click] הופעל'); clickIfExists(); toggleBtn.style.background = '#4caf50'; toggleBtn.textContent = '⏸ עצור'; } function stop() { running = false; clearTimeout(timerId); clearInterval(countdownId); countdownDisplay.textContent = '—'; console.log('[auto-click] נעצר'); toggleBtn.style.background = '#f44336'; toggleBtn.textContent = '▶ הפעל'; } // צליל קצר בכל לחיצה function playSound() { const ctx = new (window.AudioContext || window.webkitAudioContext)(); const osc = ctx.createOscillator(); const gain = ctx.createGain(); osc.type = 'sine'; osc.frequency.setValueAtTime(880, ctx.currentTime); gain.gain.setValueAtTime(0.1, ctx.currentTime); osc.connect(gain); gain.connect(ctx.destination); osc.start(); osc.stop(ctx.currentTime + 0.2); } // כפתור צף const toggleBtn = document.createElement('button'); toggleBtn.textContent = '▶ הפעל'; toggleBtn.style.position = 'fixed'; toggleBtn.style.bottom = '20px'; toggleBtn.style.right = '20px'; toggleBtn.style.zIndex = '99999'; toggleBtn.style.padding = '10px 15px'; toggleBtn.style.border = 'none'; toggleBtn.style.borderRadius = '8px'; toggleBtn.style.color = '#fff'; toggleBtn.style.cursor = 'pointer'; toggleBtn.style.background = '#f44336'; document.body.appendChild(toggleBtn); // תיבת קונפיגורציה ברורה const configDiv = document.createElement('div'); configDiv.style.position = 'fixed'; configDiv.style.bottom = '100px'; configDiv.style.right = '20px'; configDiv.style.zIndex = '99999'; configDiv.style.background = '#ffff99'; configDiv.style.color = '#000'; configDiv.style.border = '2px solid #000'; configDiv.style.borderRadius = '8px'; configDiv.style.padding = '10px'; configDiv.style.fontSize = '14px'; configDiv.style.fontFamily = 'sans-serif'; configDiv.style.boxShadow = '0 0 10px rgba(0,0,0,0.4)'; configDiv.innerHTML = ` <label>מינימום (שניות): <input type="number" id="minDelay" value="${minDelay}" style="width:80px"></label><br><br> <label>מקסימום (שניות): <input type="number" id="maxDelay" value="${maxDelay}" style="width:80px"></label><br><br> <label>טיימר: <span id="countdown">—</span></label> `; document.body.appendChild(configDiv); const countdownDisplay = document.getElementById('countdown'); toggleBtn.addEventListener('click', () => { if (running) { stop(); } else { start(); } }); })();
אחר שעשיתם את זה תדביקו עוד פעם את הקוד,
תגדירו למטה הגדרת פערי זמן תלחצו הפעל,
וזהו לכו לישון,
כל כמה דקות המערכת תנסה להזמין את המוצר מעצמה. עד שיהיה ואז זה יעבוד - לא יקרה כלום אם זה ימשיך לעבוד אחרי שזה יצליח להזמין.
הנושאים החמים

Reactions: לארג', פרפר משי ו-קלימנטינה3 //