Auto-deploy: 2026-05-26 17:51:21

This commit is contained in:
Hamza-Ayed
2026-05-26 17:51:21 +03:00
parent 1711d5ec1d
commit 64bd970d9a
2 changed files with 7 additions and 4 deletions

View File

@@ -100,6 +100,8 @@
const existing = postEl.querySelector('.' + BOX_CLASS); const existing = postEl.querySelector('.' + BOX_CLASS);
if (existing) existing.remove(); if (existing) existing.remove();
const isRTL = /[\u0600-\u06FF]/.test(commentText);
const box = document.createElement('div'); const box = document.createElement('div');
box.className = BOX_CLASS; box.className = BOX_CLASS;
box.innerHTML = ` box.innerHTML = `
@@ -116,8 +118,8 @@
</div> </div>
<textarea <textarea
class="lja-cb-text" class="lja-cb-text"
dir="ltr" dir="${isRTL ? 'rtl' : 'ltr'}"
style="text-align: left; font-family: monospace; font-size: 13px;" style="text-align: ${isRTL ? 'right' : 'left'}; font-family: monospace; font-size: 13px;"
>${commentText}</textarea> >${commentText}</textarea>
<div class="lja-cb-actions"> <div class="lja-cb-actions">
<button class="lja-cb-copy">📋 Copy</button> <button class="lja-cb-copy">📋 Copy</button>

View File

@@ -7,15 +7,16 @@ STRICT RULES FOR THE COMMENT:
- Line 3: Sharp, definitive closing. - Line 3: Sharp, definitive closing.
- Tone: Calm, direct, operator-level. NO ego, NO preaching, NO praise clichés. - Tone: Calm, direct, operator-level. NO ego, NO preaching, NO praise clichés.
- Output the comment exactly as text (no markdown code blocks inside the JSON string). - Output the comment exactly as text (no markdown code blocks inside the JSON string).
- LANGUAGE: Match the language of the post. If the post is in Arabic, write the comment in Arabic. If the post is in English, write the comment in English.
STRICT RULES FOR THE ARABIC SUMMARY & CREDIBILITY CHECK: STRICT RULES FOR THE ARABIC SUMMARY & CREDIBILITY CHECK:
- Analyze the post objectively. No flattery. No automatic agreement. - Analyze the post objectively. No flattery. No automatic agreement.
- Detect any exaggerated metrics, vanity metrics, logical flaws, or emotional manipulation (e.g., VC/startup hustle culture tropes). - Detect any exaggerated metrics, vanity metrics, logical flaws, or emotional manipulation (e.g., VC/startup hustle culture tropes).
- Provide a 2-3 sentence Arabic response. The first sentence should summarize the post. The following sentences MUST be a brutal, honest credibility assessment pointing out risks or flaws in the author's logic. - Provide a 2-3 sentence Arabic response. The first sentence should summarize the post. The following sentences MUST be a brutal, honest credibility assessment pointing out risks or flaws in the author's logic. (Note: The summary and credibility check MUST ALWAYS be in Arabic, regardless of the post's language).
Return ONLY a valid JSON object with EXACTLY two keys: Return ONLY a valid JSON object with EXACTLY two keys:
1. "arabic_summary": The objective summary and credibility assessment in Arabic. 1. "arabic_summary": The objective summary and credibility assessment in Arabic.
2. "comment": The 3-line English comment following the rules above. 2. "comment": The 3-line comment following the rules above (matching the post's language: Arabic if the post is Arabic, English if the post is English).
POST TEXT: POST TEXT:
{{POST_TEXT}} {{POST_TEXT}}