בעיה | בעיה | בעיה בדידלי קיצור קישורים
-
@בנימין-מחשבים עכשיו זה שוב לא עובד
אבל אם אני פונה ישר לקיצור זה עובד
יצרתי סימניה שעושה את זה החיסרון הוא שזה לא משוייך לחשבון שלך
הסימניה בלחיצה עליה פותחת חלון ליצירת הקיצור בברירת מחדש יש שם את הקישור שבו אתה נמצא כרגע
אפשר להחליף
לחיצה על אישור/אנטר
זה פונה אליהם יוצר קישור מקוצר מציג לך אותו להעתקה
הנה הקוד לסימנייהjavascript:!function(){var t=prompt("הכנס את הקישור שברצונך לקצר:",window.location.href);if(t){try{new URL(t)}catch(t){return void alert("הכתובת שהוזנה אינה תקינה.")}fetch("https://6ejpppqpkh.execute-api.eu-west-1.amazonaws.com/Prod/create",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify({url:t})}).then(function(t){return t.text().then(function(e){var r;try{r=JSON.parse(e)}catch(t){r=null}if(!t.ok){var o=r&&(r.message||r.error)||e||"שגיאת שרת: "+t.status;throw new Error(o)}return r})}).then(function(t){var e=t&&(t.shortUrl||t.short_url||t.shorturl||t.url);if(!e&&t&&t.code&&(e="https://did.li/"+t.code),e){var r=document.createElement("div");r.style="position:fixed;top:20px;left:50%;transform:translateX(-50%);background:#fff;color:#333;padding:20px;border-radius:8px;box-shadow:0 4px 15px rgba(0,0,0,0.2);z-index:999999;direction:rtl;font-family:Arial,sans-serif;text-align:center;border:2px solid #407be3;",r.innerHTML='<h3 style="margin:0 0 10px 0;color:#407be3;">הקישור קוצר בהצלחה!</h3><input id="shortUrlField" type="text" value="'+e+'" style="width:250px;padding:5px;text-align:center;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;"><br><button id="copyBtn" style="background:#407be3;color:#fff;border:none;padding:5px 15px;border-radius:4px;cursor:pointer;margin-left:5px;">העתק</button><button id="closeBtn" style="background:#888;color:#fff;border:none;padding:5px 15px;border-radius:4px;cursor:pointer;">סגור</button>',document.body.appendChild(r);var o=document.getElementById("shortUrlField");o.focus(),o.select(),document.getElementById("copyBtn").onclick=function(){o.select(),navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(o.value).then(function(){alert("הועתק ללוח!"),r.remove()}).catch(function(){document.execCommand("copy"),alert("הועתק ללוח!"),r.remove()}):(document.execCommand("copy"),alert("הועתק ללוח!"),r.remove())},document.getElementById("closeBtn").onclick=function(){r.remove()}}else alert("התקבלה תשובה לא צפויה מהשרת:\n"+JSON.stringify(t))}).catch(function(e){var r=!1;navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(t).then(function(){r=!0}).catch(function(){}),setTimeout(function(){alert("האתר הנוכחי חוסם קיצור אוטומטי (הגנת אבטחה של האתר עצמו).\n"+(r?"העתקתי את הקישור ללוח - ":"")+"פותח עכשיו את did.li בטאב חדש, פשוט הדבק שם ולחץ על קיצור."),window.open("https://did.li/","_blank")},r?100:0)})}}();זה מה שקורה כשלוחצים על הסימנייה

כאן אפשר לאשר או להחליף את הקישור
ואז זה נסגר לרגע ונפתח שוב ככה

בהצלחה
-
@מרדכי לא
זה כולה סמנייה קטנה
שפונה מבקשת קיצור ומוציאה
ייתכן שאפשר להוסיף אבל אז זה יהיה פחות נוח
כל המטרה של זה הייתה כדי שאני יוכל ליצור קיצור בשלוש לחיצות
אדרבה תוסיף@צול-גאה
הצלחתי ב"ה
קישור לדוגמה:
https://did.li/PROBLEM-DID
מצו"ב הקוד לסימניה:javascript:(function(){var t=prompt("הכנס את הקישור שברצונך לקצר:",window.location.href);if(t){try{new URL(t)}catch(e){return void alert("הכתובת שהוזנה אינה תקינה.")}var e=prompt("הכנס סיומת מותאמת אישית (השאר ריק עבור קישור אקראי):",""),r={url:t};if(e&&""!==e.trim()){var a=e.trim();r.alias=a,r.custom=a,r.slug=a,r.keyword=a,r.short=a,r.path=a,r.custom_path=a,r.code=a,r.customCode=a,r.id=a}fetch("https://6ejpppqpkh.execute-api.eu-west-1.amazonaws.com/Prod/create",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(r)}).then(function(t){return t.text().then(function(e){var r;try{r=JSON.parse(e)}catch(a){r=null}if(!t.ok){var o=r&&(r.message||r.error)||e||"שגיאת שרת: "+t.status;throw new Error(o)}return r})}).then(function(r){var o=r&&(r.shortUrl||r.short_url||r.shorturl||r.url);if(!o&&r&&r.code&&(o="https://did.li/"+r.code),!o&&e&&(o="https://did.li/"+e.trim()),o){var n=document.createElement("div");n.style="position:fixed;top:20px;left:50%;transform:translateX(-50%);background:#fff;color:#333;padding:20px;border-radius:8px;box-shadow:0 4px 15px rgba(0,0,0,0.2);z-index:999999;direction:rtl;font-family:Arial,sans-serif;text-align:center;border:2px solid #407be3;",n.innerHTML='<h3 style="margin:0 0 10px 0;color:#407be3;">הקישור קוצר בהצלחה!</h3><input id="shortUrlField" type="text" value="'+o+'" style="width:250px;padding:5px;text-align:center;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;"><br><button id="copyBtn" style="background:#407be3;color:#fff;border:none;padding:5px 15px;border-radius:4px;cursor:pointer;margin-left:5px;">העתק</button><button id="closeBtn" style="background:#888;color:#fff;border:none;padding:5px 15px;border-radius:4px;cursor:pointer;">סגור</button>',document.body.appendChild(n);var c=document.getElementById("shortUrlField");c.focus(),c.select(),document.getElementById("copyBtn").onclick=function(){c.select(),navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(c.value).then(function(){alert("הועתק ללוח!"),n.remove()}).catch(function(){document.execCommand("copy"),alert("הועתק ללוח!"),n.remove()}):(document.execCommand("copy"),alert("הועתק ללוח!"),n.remove())},document.getElementById("closeBtn").onclick=function(){n.remove()}}else alert("התקבלה תשובה לא צפויה מהשרת:\n"+JSON.stringify(r))}).catch(function(e){var r=!1;navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(t).then(function(){r=!0}).catch(function(){}),setTimeout(function(){alert("האתר הנוכחי חוסם קיצור אוטומטי (הגנת אבטחה של האתר עצמו).\n"+(r?"העתקתי את הקישור המקורי ללוח - ":"")+"פותח עכשיו את did.li בטאב חדש, פשוט הדבק שם ולחץ על קיצור."),window.open("https://did.li/","_blank")},r?100:0)})}})();בהצלחה
-
@צול-גאה
הצלחתי ב"ה
קישור לדוגמה:
https://did.li/PROBLEM-DID
מצו"ב הקוד לסימניה:javascript:(function(){var t=prompt("הכנס את הקישור שברצונך לקצר:",window.location.href);if(t){try{new URL(t)}catch(e){return void alert("הכתובת שהוזנה אינה תקינה.")}var e=prompt("הכנס סיומת מותאמת אישית (השאר ריק עבור קישור אקראי):",""),r={url:t};if(e&&""!==e.trim()){var a=e.trim();r.alias=a,r.custom=a,r.slug=a,r.keyword=a,r.short=a,r.path=a,r.custom_path=a,r.code=a,r.customCode=a,r.id=a}fetch("https://6ejpppqpkh.execute-api.eu-west-1.amazonaws.com/Prod/create",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(r)}).then(function(t){return t.text().then(function(e){var r;try{r=JSON.parse(e)}catch(a){r=null}if(!t.ok){var o=r&&(r.message||r.error)||e||"שגיאת שרת: "+t.status;throw new Error(o)}return r})}).then(function(r){var o=r&&(r.shortUrl||r.short_url||r.shorturl||r.url);if(!o&&r&&r.code&&(o="https://did.li/"+r.code),!o&&e&&(o="https://did.li/"+e.trim()),o){var n=document.createElement("div");n.style="position:fixed;top:20px;left:50%;transform:translateX(-50%);background:#fff;color:#333;padding:20px;border-radius:8px;box-shadow:0 4px 15px rgba(0,0,0,0.2);z-index:999999;direction:rtl;font-family:Arial,sans-serif;text-align:center;border:2px solid #407be3;",n.innerHTML='<h3 style="margin:0 0 10px 0;color:#407be3;">הקישור קוצר בהצלחה!</h3><input id="shortUrlField" type="text" value="'+o+'" style="width:250px;padding:5px;text-align:center;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;"><br><button id="copyBtn" style="background:#407be3;color:#fff;border:none;padding:5px 15px;border-radius:4px;cursor:pointer;margin-left:5px;">העתק</button><button id="closeBtn" style="background:#888;color:#fff;border:none;padding:5px 15px;border-radius:4px;cursor:pointer;">סגור</button>',document.body.appendChild(n);var c=document.getElementById("shortUrlField");c.focus(),c.select(),document.getElementById("copyBtn").onclick=function(){c.select(),navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(c.value).then(function(){alert("הועתק ללוח!"),n.remove()}).catch(function(){document.execCommand("copy"),alert("הועתק ללוח!"),n.remove()}):(document.execCommand("copy"),alert("הועתק ללוח!"),n.remove())},document.getElementById("closeBtn").onclick=function(){n.remove()}}else alert("התקבלה תשובה לא צפויה מהשרת:\n"+JSON.stringify(r))}).catch(function(e){var r=!1;navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(t).then(function(){r=!0}).catch(function(){}),setTimeout(function(){alert("האתר הנוכחי חוסם קיצור אוטומטי (הגנת אבטחה של האתר עצמו).\n"+(r?"העתקתי את הקישור המקורי ללוח - ":"")+"פותח עכשיו את did.li בטאב חדש, פשוט הדבק שם ולחץ על קיצור."),window.open("https://did.li/","_blank")},r?100:0)})}})();בהצלחה
-
אני מנסה להיכנס לאתר קיצור קישורים
https://did.li/
והוא כותב לי שגיאה 403 אינך מורשה לבצע פעולה זו
ניסיתי מכמה מחשבים מאורח אנונימי וכולי לא עזר
יש לציין שלפני חצי שעה כן עבד לי
עריכה נכון לבעיה עכשיו יש פתרון
https://mitmachim.top/post/1202919
-
@צול-גאה יש אצלי בפרופיל האחד הנושאים
מדבר על הבעיה הזאת של חוסר ידע
אצל מי התקלה אצלך או אצלו
https://mitmachim.top/post/1181769 -
@הנגבי נכון
ואני כתבתי על אחד מהם
https://mitmachim.top/post/1181769
שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.
נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.
בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗
הרשמה התחברות