שיתוף | כרטיסיה שתסכם ותתמצת לכם את השרשור במתמחים טופ!
-
טופל:
javascript:(async function(){const e=document.createElement("style");e.textContent=".ai-summary-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:2147483647;font-family:sans-serif}.ai-summary-popup{background:#f0f9ff;padding:24px;border-radius:12px;max-width:600px;width:90%;max-height:85vh;overflow-y:auto;direction:rtl;text-align:right;border:1px solid #b3e5fc;box-shadow:0 8px 32px rgba(0,0,0,.2)}.ai-summary-content{min-height:50px;line-height:1.7;color:#0c4a6e;margin-top:16px;white-space:pre-wrap}.ai-summary-close{float:left;cursor:pointer;font-size:28px;color:#999;line-height:1;transition:color .2s}.ai-summary-close:hover{color:#333}",document.head.appendChild(e);const t=document.createElement("div");t.className="ai-summary-overlay",t.onclick=e=>{e.target===t&&document.body.removeChild(t)};const o=document.createElement("div");o.className="ai-summary-popup",t.appendChild(o);const n=document.createElement("span");n.className="ai-summary-close",n.innerHTML="×",n.onclick=()=>document.body.removeChild(t),o.appendChild(n);const c=document.createElement("div");c.className="ai-summary-content",c.innerHTML="מנתח את תוכן הדף...",o.appendChild(c),document.body.appendChild(t);try{const s=%60--- סיכום הבעיה ---\n\nהבעיה המרכזית היא ...\n\nקשיים עיקриים: ...\n\n--- הפתרונות המוצעים ---\n\nפתרון א': ...\n\nפתרון ב': ...\n\nפתרון ג': ...\n\nפתרון שעובד במידה ויש:%60,a=%60מלא את התבנית הבאה באופן תמציתי ומדויק על סמך הטקסט מהדף:\n\n${s}\n\n---\nהטקסט לניתוח:\n${document.body.innerText.substring(0,7500)}%60,r=await fetch("https://php-render-test.onrender.com/main-ai.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:a})});if(!r.ok){const e=await r.text();throw new Error(%60שגיאת שרת (${r.status}): ${e}%60)}const i=await r.text();let l="";const d=i.split("\n");for(const e of d)if(e.startsWith("data: ")){const t=e.substring(6).trim();if(t&&"[DONE]"!==t)try{const e=JSON.parse(t)?.candidates?.[0]?.content?.parts?.[0]?.text;e&&(l+=e)}catch(e){console.warn("Could not parse JSON line:",t)}}l?c.innerHTML=l:(c.innerHTML='<b style="color:red;">לא התקבל סיכום תקין מהשרת.</b><br><small>ייתכן שהדף ריק או שהשרת החזיר תשובה לא צפויה.</small>',console.log("Raw server response:",i))}catch(e){c.innerHTML=%60<b style="color:red;">אירעה שגיאה קריטית:</b><br><pre style="white-space:pre-wrap;word-wrap:break-word;font-size:12px;background:#ffebee;padding:8px;border-radius:4px;color:#c62828">${e.message}</pre>%60}})();@יוסי-רחמים כתב בשיתוף | כרטיסיה שתסכם ותתמצת לכם את השרשור במתמחים טופ!:
טופל:
אירעה שגיאה קריטית:
Failed to fetch -
טופל:
javascript:(async function(){const e=document.createElement("style");e.textContent=".ai-summary-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:2147483647;font-family:sans-serif}.ai-summary-popup{background:#f0f9ff;padding:24px;border-radius:12px;max-width:600px;width:90%;max-height:85vh;overflow-y:auto;direction:rtl;text-align:right;border:1px solid #b3e5fc;box-shadow:0 8px 32px rgba(0,0,0,.2)}.ai-summary-content{min-height:50px;line-height:1.7;color:#0c4a6e;margin-top:16px;white-space:pre-wrap}.ai-summary-close{float:left;cursor:pointer;font-size:28px;color:#999;line-height:1;transition:color .2s}.ai-summary-close:hover{color:#333}",document.head.appendChild(e);const t=document.createElement("div");t.className="ai-summary-overlay",t.onclick=e=>{e.target===t&&document.body.removeChild(t)};const o=document.createElement("div");o.className="ai-summary-popup",t.appendChild(o);const n=document.createElement("span");n.className="ai-summary-close",n.innerHTML="×",n.onclick=()=>document.body.removeChild(t),o.appendChild(n);const c=document.createElement("div");c.className="ai-summary-content",c.innerHTML="מנתח את תוכן הדף...",o.appendChild(c),document.body.appendChild(t);try{const s=%60--- סיכום הבעיה ---\n\nהבעיה המרכזית היא ...\n\nקשיים עיקриים: ...\n\n--- הפתרונות המוצעים ---\n\nפתרון א': ...\n\nפתרון ב': ...\n\nפתרון ג': ...\n\nפתרון שעובד במידה ויש:%60,a=%60מלא את התבנית הבאה באופן תמציתי ומדויק על סמך הטקסט מהדף:\n\n${s}\n\n---\nהטקסט לניתוח:\n${document.body.innerText.substring(0,7500)}%60,r=await fetch("https://php-render-test.onrender.com/main-ai.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:a})});if(!r.ok){const e=await r.text();throw new Error(%60שגיאת שרת (${r.status}): ${e}%60)}const i=await r.text();let l="";const d=i.split("\n");for(const e of d)if(e.startsWith("data: ")){const t=e.substring(6).trim();if(t&&"[DONE]"!==t)try{const e=JSON.parse(t)?.candidates?.[0]?.content?.parts?.[0]?.text;e&&(l+=e)}catch(e){console.warn("Could not parse JSON line:",t)}}l?c.innerHTML=l:(c.innerHTML='<b style="color:red;">לא התקבל סיכום תקין מהשרת.</b><br><small>ייתכן שהדף ריק או שהשרת החזיר תשובה לא צפויה.</small>',console.log("Raw server response:",i))}catch(e){c.innerHTML=%60<b style="color:red;">אירעה שגיאה קריטית:</b><br><pre style="white-space:pre-wrap;word-wrap:break-word;font-size:12px;background:#ffebee;padding:8px;border-radius:4px;color:#c62828">${e.message}</pre>%60}})();@יוסי-רחמים מתי יחזור לעבוד?
-
@יוסי-רחמים מתי יחזור לעבוד?
@חנוך-הכהן כתב בשיתוף | כרטיסיה שתסכם ותתמצת לכם את השרשור במתמחים טופ!:
מתי יחזור לעבוד?
-
@חנוך-הכהן כתב בשיתוף | כרטיסיה שתסכם ותתמצת לכם את השרשור במתמחים טופ!:
מתי יחזור לעבוד?
-
@חנוך-הכהן
זה אמור להיות תקין החל ממחר(נגמר לי המגבלה של הAPI)javascript:(async function(){const e=document.createElement("style");e.textContent=".ai-summary-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:2147483647;font-family:sans-serif}.ai-summary-popup{background:#f0f9ff;padding:24px;border-radius:12px;max-width:600px;width:90%;max-height:85vh;overflow-y:auto;direction:rtl;text-align:right;border:1px solid #b3e5fc;box-shadow:0 8px 32px rgba(0,0,0,.2)}.ai-summary-content{min-height:50px;line-height:1.7;color:#0c4a6e;margin-top:16px;white-space:pre-wrap}.ai-summary-close{float:left;cursor:pointer;font-size:28px;color:#999;line-height:1;transition:color .2s}.ai-summary-close:hover{color:#333}",document.head.appendChild(e);const t=document.createElement("div");t.className="ai-summary-overlay",t.onclick=e=>{e.target===t&&document.body.removeChild(t)};const o=document.createElement("div");o.className="ai-summary-popup",t.appendChild(o);const n=document.createElement("span");n.className="ai-summary-close",n.innerHTML="\u00D7",n.onclick=()=>document.body.removeChild(t),o.appendChild(n);const c=document.createElement("div");c.className="ai-summary-content",c.innerHTML="מנתח את תוכן הדף...",o.appendChild(c),document.body.appendChild(t);try{const s=%60--- סיכום הבעיה ---\n\nהבעיה המרכזית היא ...\n\nקשיים עיקריים: ...\n\n--- הפתרונות המוצעים ---\n\nפתרון א': ...\n\nפתרון ב': ...\n\nפתרון ג': ...\n\nפתרון שעובד במידה ויש:%60;const pageTextContent=document.body.innerText.substring(0,7500).replace(/\\/g,"\\\\").replace(/%60/g,"\\%60").replace(/\$\{/g,"\\${");const a=%60מלא את התבנית הבאה באופן תמציתי ומדויק על סמך הטקסט מהדף:\n\n${s}\n\n---\nהטקסט לניתוח:\n${pageTextContent}%60;const r=await fetch("https://php-render-test.onrender.com/main-ai.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:a})});if(!r.ok){const errorText=await r.text();throw new Error(%60שגיאת שרת (${r.status}): ${errorText}%60)}if(!r.body){throw new Error("ReadableStream not available. Cannot process streamed data.")}const reader=r.body.getReader();const decoder=new TextDecoder("utf-8");let accumulatedData="";let currentBuffer="";let firstChunkProcessed=!1;c.innerHTML="מעבד נתונים מהשרת...";while(!0){const{value,done}=await reader.read();if(done){if(currentBuffer.trim()){accumulatedData+=currentBuffer;if(currentBuffer.startsWith("data: ")){const jsonData=currentBuffer.substring(6).trim();if(jsonData&&"[DONE]"!==jsonData.toUpperCase())try{const parsedData=JSON.parse(jsonData),textContent=parsedData?.candidates?.[0]?.content?.parts?.[0]?.text;textContent&&(firstChunkProcessed||(c.innerHTML="",firstChunkProcessed=!0),c.innerHTML+=textContent.replace(/\n/g,"<br>"))}catch(parseError){console.warn("Could not parse final JSON data line:",jsonData,parseError)}}}break}const chunk=decoder.decode(value,{stream:!0});accumulatedData+=chunk;currentBuffer+=chunk;let newlineIndex;while((newlineIndex=currentBuffer.indexOf("\n"))>=0){const line=currentBuffer.substring(0,newlineIndex).trim();currentBuffer=currentBuffer.substring(newlineIndex+1);if(line.startsWith("data: ")){const jsonData=line.substring(6).trim();if(jsonData&&"[DONE]"!==jsonData.toUpperCase())try{const parsedData=JSON.parse(jsonData),textContent=parsedData?.candidates?.[0]?.content?.parts?.[0]?.text,errorContent=parsedData?.error;textContent?(firstChunkProcessed||(c.innerHTML="",firstChunkProcessed=!0),c.innerHTML+=textContent.replace(/\n/g,"<br>")):errorContent&&errorContent.message&&(firstChunkProcessed||(c.innerHTML="",firstChunkProcessed=!0),c.innerHTML+=%60<br><b style="color:darkorange;">שגיאה מה-API בזרם: ${errorContent.message} (קוד: ${errorContent.code||"לא ידוע"})</b>%60)}catch(parseError){console.warn("Could not parse JSON data line:",jsonData,parseError)}}}}if(!firstChunkProcessed){let displayedError=!1;if(accumulatedData.trim())try{const potentialErrorJson=JSON.parse(accumulatedData.trim());if(potentialErrorJson.error&&potentialErrorJson.error.message){let errorMsg=%60<b style="color:red;">שגיאה מהשרת (API):</b><br><pre style="white-space:pre-wrap;word-wrap:break-word;font-size:12px;background:#ffebee;padding:8px;border-radius:4px;color:#c62828">(${potentialErrorJson.error.code||"N/A"}) ${potentialErrorJson.error.message}</pre>%60;potentialErrorJson.error.details&&potentialErrorJson.error.details[0]&&potentialErrorJson.error.details[0].reason&&(errorMsg+=%60<br><small>סיבה: ${potentialErrorJson.error.details[0].reason}</small>%60);c.innerHTML=errorMsg;displayedError=!0}}catch(e){console.warn("Accumulated data was not a parseable JSON error object:",accumulatedData.trim().substring(0,500)+"...")}if(!displayedError){let finalMsg='<b style="color:red;">לא התקבל סיכום תקין מהשרת.</b><br><small>ייתכן שהשרת לא החזיר תוכן בפורמט הצפוי, או שהתקשורת נקטעה.</small>';accumulatedData.trim()?finalMsg+=%60<br><details><summary style="font-size:10px; cursor:pointer;">תגובה גולמית שהתקבלה (לחץ להצגה)</summary><pre style="max-height: 100px; overflow-y: auto; font-size: 10px; background: #eee; padding: 5px; border:1px solid #ccc; margin-top:5px; white-space:pre-wrap; word-break:break-all;">${accumulatedData.trim().replace(/</g,"<").replace(/>/g,">")}</pre></details>%60:finalMsg+='<br><small>לא התקבלה תגובה כלל מהשרת.</small>';c.innerHTML=finalMsg}console.log("No valid data parts processed as stream. Full raw data received:",accumulatedData)}else if(""===c.innerHTML.trim())c.innerHTML='<b style="color:red;">הסיכום שהתקבל מהשרת ריק.</b>'}catch(criticalError){console.error("Critical error in summary script:",criticalError),c.innerHTML=%60<b style="color:red;">אירעה שגיאה קריטית:</b><br><pre style="white-space:pre-wrap;word-wrap:break-word;font-size:12px;background:#ffebee;padding:8px;border-radius:4px;color:#c62828">${criticalError.message}</pre>%60}})(); -
@חנוך-הכהן
זה אמור להיות תקין החל ממחר(נגמר לי המגבלה של הAPI)javascript:(async function(){const e=document.createElement("style");e.textContent=".ai-summary-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:2147483647;font-family:sans-serif}.ai-summary-popup{background:#f0f9ff;padding:24px;border-radius:12px;max-width:600px;width:90%;max-height:85vh;overflow-y:auto;direction:rtl;text-align:right;border:1px solid #b3e5fc;box-shadow:0 8px 32px rgba(0,0,0,.2)}.ai-summary-content{min-height:50px;line-height:1.7;color:#0c4a6e;margin-top:16px;white-space:pre-wrap}.ai-summary-close{float:left;cursor:pointer;font-size:28px;color:#999;line-height:1;transition:color .2s}.ai-summary-close:hover{color:#333}",document.head.appendChild(e);const t=document.createElement("div");t.className="ai-summary-overlay",t.onclick=e=>{e.target===t&&document.body.removeChild(t)};const o=document.createElement("div");o.className="ai-summary-popup",t.appendChild(o);const n=document.createElement("span");n.className="ai-summary-close",n.innerHTML="\u00D7",n.onclick=()=>document.body.removeChild(t),o.appendChild(n);const c=document.createElement("div");c.className="ai-summary-content",c.innerHTML="מנתח את תוכן הדף...",o.appendChild(c),document.body.appendChild(t);try{const s=%60--- סיכום הבעיה ---\n\nהבעיה המרכזית היא ...\n\nקשיים עיקריים: ...\n\n--- הפתרונות המוצעים ---\n\nפתרון א': ...\n\nפתרון ב': ...\n\nפתרון ג': ...\n\nפתרון שעובד במידה ויש:%60;const pageTextContent=document.body.innerText.substring(0,7500).replace(/\\/g,"\\\\").replace(/%60/g,"\\%60").replace(/\$\{/g,"\\${");const a=%60מלא את התבנית הבאה באופן תמציתי ומדויק על סמך הטקסט מהדף:\n\n${s}\n\n---\nהטקסט לניתוח:\n${pageTextContent}%60;const r=await fetch("https://php-render-test.onrender.com/main-ai.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:a})});if(!r.ok){const errorText=await r.text();throw new Error(%60שגיאת שרת (${r.status}): ${errorText}%60)}if(!r.body){throw new Error("ReadableStream not available. Cannot process streamed data.")}const reader=r.body.getReader();const decoder=new TextDecoder("utf-8");let accumulatedData="";let currentBuffer="";let firstChunkProcessed=!1;c.innerHTML="מעבד נתונים מהשרת...";while(!0){const{value,done}=await reader.read();if(done){if(currentBuffer.trim()){accumulatedData+=currentBuffer;if(currentBuffer.startsWith("data: ")){const jsonData=currentBuffer.substring(6).trim();if(jsonData&&"[DONE]"!==jsonData.toUpperCase())try{const parsedData=JSON.parse(jsonData),textContent=parsedData?.candidates?.[0]?.content?.parts?.[0]?.text;textContent&&(firstChunkProcessed||(c.innerHTML="",firstChunkProcessed=!0),c.innerHTML+=textContent.replace(/\n/g,"<br>"))}catch(parseError){console.warn("Could not parse final JSON data line:",jsonData,parseError)}}}break}const chunk=decoder.decode(value,{stream:!0});accumulatedData+=chunk;currentBuffer+=chunk;let newlineIndex;while((newlineIndex=currentBuffer.indexOf("\n"))>=0){const line=currentBuffer.substring(0,newlineIndex).trim();currentBuffer=currentBuffer.substring(newlineIndex+1);if(line.startsWith("data: ")){const jsonData=line.substring(6).trim();if(jsonData&&"[DONE]"!==jsonData.toUpperCase())try{const parsedData=JSON.parse(jsonData),textContent=parsedData?.candidates?.[0]?.content?.parts?.[0]?.text,errorContent=parsedData?.error;textContent?(firstChunkProcessed||(c.innerHTML="",firstChunkProcessed=!0),c.innerHTML+=textContent.replace(/\n/g,"<br>")):errorContent&&errorContent.message&&(firstChunkProcessed||(c.innerHTML="",firstChunkProcessed=!0),c.innerHTML+=%60<br><b style="color:darkorange;">שגיאה מה-API בזרם: ${errorContent.message} (קוד: ${errorContent.code||"לא ידוע"})</b>%60)}catch(parseError){console.warn("Could not parse JSON data line:",jsonData,parseError)}}}}if(!firstChunkProcessed){let displayedError=!1;if(accumulatedData.trim())try{const potentialErrorJson=JSON.parse(accumulatedData.trim());if(potentialErrorJson.error&&potentialErrorJson.error.message){let errorMsg=%60<b style="color:red;">שגיאה מהשרת (API):</b><br><pre style="white-space:pre-wrap;word-wrap:break-word;font-size:12px;background:#ffebee;padding:8px;border-radius:4px;color:#c62828">(${potentialErrorJson.error.code||"N/A"}) ${potentialErrorJson.error.message}</pre>%60;potentialErrorJson.error.details&&potentialErrorJson.error.details[0]&&potentialErrorJson.error.details[0].reason&&(errorMsg+=%60<br><small>סיבה: ${potentialErrorJson.error.details[0].reason}</small>%60);c.innerHTML=errorMsg;displayedError=!0}}catch(e){console.warn("Accumulated data was not a parseable JSON error object:",accumulatedData.trim().substring(0,500)+"...")}if(!displayedError){let finalMsg='<b style="color:red;">לא התקבל סיכום תקין מהשרת.</b><br><small>ייתכן שהשרת לא החזיר תוכן בפורמט הצפוי, או שהתקשורת נקטעה.</small>';accumulatedData.trim()?finalMsg+=%60<br><details><summary style="font-size:10px; cursor:pointer;">תגובה גולמית שהתקבלה (לחץ להצגה)</summary><pre style="max-height: 100px; overflow-y: auto; font-size: 10px; background: #eee; padding: 5px; border:1px solid #ccc; margin-top:5px; white-space:pre-wrap; word-break:break-all;">${accumulatedData.trim().replace(/</g,"<").replace(/>/g,">")}</pre></details>%60:finalMsg+='<br><small>לא התקבלה תגובה כלל מהשרת.</small>';c.innerHTML=finalMsg}console.log("No valid data parts processed as stream. Full raw data received:",accumulatedData)}else if(""===c.innerHTML.trim())c.innerHTML='<b style="color:red;">הסיכום שהתקבל מהשרת ריק.</b>'}catch(criticalError){console.error("Critical error in summary script:",criticalError),c.innerHTML=%60<b style="color:red;">אירעה שגיאה קריטית:</b><br><pre style="white-space:pre-wrap;word-wrap:break-word;font-size:12px;background:#ffebee;padding:8px;border-radius:4px;color:#c62828">${criticalError.message}</pre>%60}})();@יוסי-רחמים (429) You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits.
-
@יוסי-רחמים (429) You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits.
@חנוך-הכהן תסתכל מה כתבתי...
שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.
נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.
בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗
הרשמה התחברות
