<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1252583411777639110</id><updated>2026-09-10T19:50:51.905+03:00</updated><category term="תכנות #C"/><category term="תכנות - כללי"/><category term="קוד"/><category term="אינטרנט"/><category term="windows"/><category term="js"/><category term="javascript"/><category term="ai"/><category term="chatgpt"/><category term="Win8"/><category term="google gemini"/><category term="הורדות"/><category term="ASP"/><category term="WEB"/><category term="admin"/><category term="winRT"/><category term="חינם"/><category term="טיפים"/><category term="מתמטיקה"/><category term="קבצים"/><category term="WPF"/><category term="Windows 7"/><category term="bat"/><category term="txt"/><category term="חלוקת דפים"/><title type='text'>שניר</title><subtitle type='html'>רשומות בנושאי מחשבים ותכנות #C</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://snir.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>89</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-8159593112948063264</id><published>2026-01-05T09:45:00.006+02:00</published><updated>2026-01-05T09:45:41.264+02:00</updated><title type='text'>ai-rules</title><content type='html'>&lt;p&gt;כשכותבים לבינה מלאכותית שאלות / הוראות לכתיבת קוד , צריך להדריך אותו:&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;do not add comments&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;do not modify code you haven&#39;t specifically been instructed to modify&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;do not refactor code unpromted&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;do not rename functions unless you have been instructed to&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;maintain clean and readable code&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;if you don&#39;t know - say you don&#39;t know&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;if an old unit test fails, do not modify the test to make it pass&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/8159593112948063264/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2026/01/ai-rules.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8159593112948063264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8159593112948063264'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2026/01/ai-rules.html' title='ai-rules'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-8582457861698007955</id><published>2025-11-03T17:09:00.002+02:00</published><updated>2025-11-06T09:50:06.472+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google gemini"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><title type='text'>ג&#39;מיני - תיקון ימין-שמאל בכתיבת עברית</title><content type='html'>&lt;!--Prism.js CSS--&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;

&lt;!--Prism.js JS--&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-javascript.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;

&lt;ul&gt;
  &lt;li&gt;  &lt;a href=&quot;javascript:copyText(&#39;div1&#39;,&#39;שאלות ChatGPT בכל אתר&#39;)&quot;&gt;העתק את הקוד&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
עבור אל האתר של Google Gemini
    &lt;/li&gt;
  &lt;li&gt;
לחץ F12
    &lt;/li&gt;
  &lt;li&gt;
הדבק את הקוד ע&quot;י לחיצת ctrl+v,
    &lt;/li&gt;
  &lt;li&gt;
ולחץ Enter
    &lt;/li&gt;
  &lt;li&gt;
&lt;/ul&gt;



&lt;div id=&quot;div1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 100px; overflow-y: scroll; text-align: left;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:/*Gemini-change code direction*/(function()%7Bif(document.getElementById(&#39;toggleCodeDirectionBtn&#39;))return;let b=document.createElement(&#39;button&#39;);b.id=&#39;toggleCodeDirectionBtn&#39;;b.innerText=&#39;Toggle Code Direction&#39;;b.style.position=&#39;fixed&#39;;b.style.top=&#39;25px&#39;;b.style.left=&#39;10px&#39;;b.style.zIndex=9999;b.style.padding=&#39;5px 10px&#39;;b.style.backgroundColor=&#39;#007bff&#39;;b.style.color=&#39;#fff&#39;;b.style.border=&#39;none&#39;;b.style.borderRadius=&#39;4px&#39;;b.style.cursor=&#39;move&#39;;b.style.userSelect=&#39;none&#39;;b.style.display=&#39;flex&#39;;b.style.alignItems=&#39;center&#39;;b.style.gap=&#39;5px&#39;;b.style.transition=&#39;transform 0.2s ease, opacity 0.2s ease&#39;;let closeBtn=document.createElement(&#39;span&#39;);closeBtn.innerText=&#39;✖&#39;;closeBtn.style.fontSize=&#39;10px&#39;;closeBtn.style.cursor=&#39;pointer&#39;;closeBtn.style.fontWeight=&#39;bold&#39;;closeBtn.style.marginLeft=&#39;5px&#39;;closeBtn.onclick=function(e){e.stopPropagation();let dirs=[[&#39;0px&#39;,&#39;-50px&#39;],[&#39;0px&#39;,&#39;50px&#39;],[&#39;-50px&#39;,&#39;0px&#39;],[&#39;50px&#39;,&#39;0px&#39;]];let r=dirs[Math.floor(Math.random()*dirs.length)];b.style.transform=%60translate(${r[0]},${r[1]}) scale(0)%60;b.style.opacity=&#39;0&#39;;setTimeout(()=&gt;b.remove(),100);};b.appendChild(closeBtn);document.body.appendChild(b);b.onmousedown=function(e){if(e.target===closeBtn)return;e.preventDefault();let dx=e.clientX-b.offsetLeft,dy=e.clientY-b.offsetTop;document.onmousemove=function(e){b.style.left=e.clientX-dx+&#39;px&#39;;b.style.top=e.clientY-dy+&#39;px&#39;;};document.onmouseup=function(){document.onmousemove=null;document.onmouseup=null;};};b.onclick=function(e){if(e.target===closeBtn)return;document.querySelectorAll(&#39;pre, code&#39;).forEach(c=&gt;{if(c.style.direction===&#39;rtl&#39;){c.style.direction=&#39;ltr&#39;;c.style.textAlign=&#39;left&#39;;}else{c.style.direction=&#39;rtl&#39;;c.style.textAlign=&#39;right&#39;;}});};})();&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/8582457861698007955/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/11/gemini-change-code-rtl.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8582457861698007955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8582457861698007955'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/11/gemini-change-code-rtl.html' title='ג&#39;מיני - תיקון ימין-שמאל בכתיבת עברית'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-8754074681632406101</id><published>2025-11-03T17:07:00.006+02:00</published><updated>2025-11-06T09:54:36.832+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google gemini"/><title type='text'>תפריט שאלות של השיחה הנוכחית לגוגל ג&#39;מיני</title><content type='html'>&lt;!--Prism.js CSS--&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;

&lt;!--Prism.js JS--&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-javascript.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;
תפריט פרומפטים לגוגל ג&#39;מיני:
&lt;ol&gt;
  &lt;li&gt;
    &lt;a href=&quot;javascript:copyText(&#39;div1&#39;,&#39;לתפריט גוגל גמיני&#39;)&quot;&gt;העתק את הקוד&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;עבור אל האתר של Google Gemini&lt;/li&gt;
  &lt;li&gt;לחץ F12&lt;/li&gt;
  &lt;li&gt;הדבק את הקוד ע&quot;י לחיצת ctrl+v, &lt;/li&gt;ולחץ Enter
&lt;/ol&gt;


  &lt;a href=&quot;javascript:copyText(&#39;div1&#39;,&#39;שאלות ChatGPT בכל אתר&#39;)&quot;&gt;העתק את הקוד&lt;/a&gt;
  
&lt;div id=&quot;div1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 100px; overflow-y: scroll; text-align: left;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:(()=&gt;{/*prompt menu for google gemini*/const p=window.trustedTypes?.createPolicy(%27default%27,{createHTML:e=&gt;e});const s=document.createElement(%27style%27);s.innerHTML=p?p.createHTML(`#floatingMenu{position:fixed;top:100px;left:10px;width:270px;max-height:400px;background:rgba(0,0,0,0.6);color:#fff;font-family:Arial,sans-serif;font-size:14px;border-radius:6px;box-shadow:0 0 10px #000;display:flex;flex-direction:column;user-select:none;z-index:999999;overflow:hidden;transition:max-height 0.4s ease}#floatingMenu.collapsed{max-height:40px}#floatingMenuHeader{padding:8px 10px;background:rgba(0,0,0,0.8);cursor:move;display:flex;justify-content:space-between;align-items:center;font-weight:bold}#floatingMenuTitle{flex-grow:1;text-align:center}#floatingMenuControls{display:flex;align-items:center}#floatingMenuControls&gt;button{cursor:pointer;margin-left:10px;font-weight:bold;background:none;border:none;color:#fff;font-size:16px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}#floatingMenuControls&gt;button:focus{outline:2px solid #fff;outline-offset:2px}#searchInput{margin:0 10px;padding:5px 8px;border-radius:4px;border:none;font-size:14px;width:calc(100% - 20px);box-sizing:border-box;max-height:0;opacity:0;pointer-events:none;transition:max-height 0.4s ease,opacity 0.4s ease,margin 0.4s ease;direction:rtl}#searchInput.visible{max-height:40px;opacity:1;pointer-events:auto;margin:5px 10px}#floatingMenuList{padding:5px 10px;transition:opacity 0.3s ease;flex-grow:1;display:flex;flex-direction:column;overflow:hidden}#floatingMenuList.scrollable{overflow-y:auto;max-height:340px}#floatingMenuList div{padding:5px 8px;border-radius:4px;margin-bottom:4px;background:rgba(255,255,255,0.1);cursor:pointer;white-space:nowrap;text-overflow:ellipsis}#floatingMenuList div:hover,#floatingMenuList div:focus{background:rgba(255,255,255,0.25);outline:none}#floatingMenu.collapsed #searchInput,#floatingMenu.collapsed #floatingMenuList{opacity:0;pointer-events:none;height:0;padding:0 10px;overflow:hidden !important;transition:opacity 0.4s ease,height 0.4s ease,padding 0.4s ease,margin 0.4s ease}%60):%60#floatingMenu{position:fixed;top:100px;right:10px;width:270px;max-height:400px;background:rgba(0,0,0,0.6);color:#fff;font-family:Arial,sans-serif;font-size:14px;border-radius:6px;box-shadow:0 0 10px #000;display:flex;flex-direction:column;user-select:none;z-index:999999;overflow:hidden;transition:max-height 0.4s ease}#floatingMenu.collapsed{max-height:40px}#floatingMenuHeader{padding:8px 10px;background:rgba(0,0,0,0.8);cursor:move;display:flex;justify-content:space-between;align-items:center;font-weight:bold}#floatingMenuTitle{flex-grow:1;text-align:center}#floatingMenuControls{display:flex;align-items:center}#floatingMenuControls&gt;button{cursor:pointer;margin-left:10px;font-weight:bold;background:none;border:none;color:#fff;font-size:16px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}#floatingMenuControls&gt;button:focus{outline:2px solid #fff;outline-offset:2px}#searchInput{margin:0 10px;padding:5px 8px;border-radius:4px;border:none;font-size:14px;width:calc(100% - 20px);box-sizing:border-box;max-height:0;opacity:0;pointer-events:none;transition:max-height 0.4s ease,opacity 0.4s ease,margin 0.4s ease;direction:rtl}#searchInput.visible{max-height:40px;opacity:1;pointer-events:auto;margin:5px 10px}#floatingMenuList{padding:5px 10px;transition:opacity 0.3s ease;flex-grow:1;display:flex;flex-direction:column;overflow:hidden}#floatingMenuList.scrollable{overflow-y:auto;max-height:340px}#floatingMenuList div{padding:5px 8px;border-radius:4px;margin-bottom:4px;background:rgba(255,255,255,0.1);cursor:pointer;white-space:nowrap;text-overflow:ellipsis}#floatingMenuList div:hover,#floatingMenuList div:focus{background:rgba(255,255,255,0.25);outline:none}#floatingMenu.collapsed #searchInput,#floatingMenu.collapsed #floatingMenuList{opacity:0;pointer-events:none;height:0;padding:0 10px;overflow:hidden !important;transition:opacity 0.4s ease,height 0.4s ease,padding 0.4s ease,margin 0.4s ease}%60;document.head.appendChild(s);const m=document.createElement(&#39;div&#39;);m.id=&#39;floatingMenu&#39;;m.setAttribute(&#39;role&#39;,&#39;region&#39;);m.setAttribute(&#39;aria-label&#39;,&#39;תפריט שאלות&#39;);const h=document.createElement(&#39;div&#39;);h.id=&#39;floatingMenuHeader&#39;;h.setAttribute(&#39;role&#39;,&#39;banner&#39;);const t=document.createElement(&#39;div&#39;);t.id=&#39;floatingMenuTitle&#39;;t.textContent=&#39;ריק&#39;;const c=document.createElement(&#39;div&#39;);c.id=&#39;floatingMenuControls&#39;;const cb=document.createElement(&#39;button&#39;);cb.id=&#39;collapseBtn&#39;;cb.textContent=&#39;-&#39;;const xb=document.createElement(&#39;button&#39;);xb.id=&#39;closeBtn&#39;;xb.textContent=&#39;×&#39;;c.appendChild(cb);c.appendChild(xb);h.appendChild(t);h.appendChild(c);const si=document.createElement(&#39;input&#39;);si.id=&#39;searchInput&#39;;si.type=&#39;search&#39;;si.placeholder=&#39;חפש שאלות...&#39;;const lc=document.createElement(&#39;div&#39;);lc.id=&#39;floatingMenuList&#39;;m.appendChild(h);m.appendChild(si);m.appendChild(lc);document.body.appendChild(m);function isHebrewChar(e){return/[\u0590-\u05FF]/.test(e)}function hasClassOrParentHasClass(e,n){while(e){if(e.classList&amp;&amp;e.classList.contains(n))return!0;e=e.parentElement}return!1}function getQuestions(){const e=document.querySelectorAll(&#39;.query-text p&#39;),n=[];return e.forEach((e,i)=&gt;{let o=27;if(hasClassOrParentHasClass(e,&#39;text-page-header&#39;))return;let r=e.textContent.trim().replace(/\s+/g,&#39; &#39;);r.length&gt;o&amp;&amp;(r=r.slice(0,o)+&#39;…&#39;),n.push({el:e,text:r,index:i,fullText:e.innerHTML.trim()})}),n}let previousQuestionsJSON=null;function updateList(){const e=getQuestions(),n=JSON.stringify(e.map(e=&gt;e.fullText));if(n===previousQuestionsJSON)return;previousQuestionsJSON=n,e.length===0?t.textContent=&#39;ריק&#39;:t.textContent=document.title||&#39;צ׳אט&#39;;const o=t.textContent.trim().charAt(0);isHebrewChar(o)?t.style.direction=&#39;rtl&#39;:t.style.direction=&#39;ltr&#39;;const r=si.value.trim().toLowerCase();lc.innerHTML=&#39;&#39;;const l=e.filter(e=&gt;e.fullText.toLowerCase().includes(r));lc.classList.toggle(&#39;scrollable&#39;,l.length&gt;10);if(l.length===0){const e=document.createElement(&#39;div&#39;);e.textContent=&#39;לא נמצאו שאלות&#39;,e.style.textAlign=&#39;center&#39;,e.style.opacity=&#39;0.7&#39;,lc.appendChild(e);return}l.forEach(({el:e,text:n,index:o,fullText:r})=&gt;{const l=document.createElement(&#39;div&#39;);l.textContent=n||%60שאלה ${o+1}%60,l.title=r,isHebrewChar(n[0])?(l.style.direction=&#39;rtl&#39;,l.style.textAlign=&#39;right&#39;):(l.style.direction=&#39;ltr&#39;,l.style.textAlign=&#39;left&#39;),l.addEventListener(&#39;click&#39;,e=&gt;{e.preventDefault(),e.el=e.target,window.scrollTo({top:e.el.getBoundingClientRect().top+window.pageYOffset-100,behavior:&#39;smooth&#39;});const t=e.target.style;const origBG=t.backgroundColor;t.backgroundColor=&#39;yellow&#39;;setTimeout(()=&gt;{t.backgroundColor=origBG||&#39;&#39;},1e3)}),lc.appendChild(l)})}xb.addEventListener(&#39;click&#39;,()=&gt;{m.style.display=&#39;none&#39;}),cb.addEventListener(&#39;click&#39;,()=&gt;{const e=m.classList.toggle(&#39;collapsed&#39;);cb.textContent=e?&#39;+&#39;:&#39;-&#39;}),si.addEventListener(&#39;input&#39;,()=&gt;{updateList()});let isDragging=!1,dragStartX,dragStartY,menuStartX,menuStartY;h.addEventListener(&#39;mousedown&#39;,e=&gt;{isDragging=!0,dragStartX=e.clientX,dragStartY=e.clientY;const t=m.getBoundingClientRect();menuStartX=t.left,menuStartY=t.top,e.preventDefault()}),window.addEventListener(&#39;mousemove&#39;,e=&gt;{if(!isDragging)return;let t=menuStartX+(e.clientX-dragStartX),n=menuStartY+(e.clientY-dragStartY),o=window.innerWidth-m.offsetWidth-10,r=window.innerHeight-m.offsetHeight-10;t=Math.max(0,Math.min(o,t)),n=Math.max(0,Math.min(r,n)),m.style.right=&#39;auto&#39;,m.style.left=t+&#39;px&#39;,m.style.top=n+&#39;px&#39;}),window.addEventListener(&#39;mouseup&#39;,()=&gt;{isDragging=!1});const observer=new MutationObserver(()=&gt;{updateList()});observer.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),updateList();})();&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/8754074681632406101/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/11/gemini-question-menu.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8754074681632406101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8754074681632406101'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/11/gemini-question-menu.html' title='תפריט שאלות של השיחה הנוכחית לגוגל ג&#39;מיני'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-3213964699584202261</id><published>2025-10-22T14:53:00.025+03:00</published><updated>2025-11-06T10:06:26.417+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="WEB"/><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><title type='text'>תפריט לאתר blogspot</title><content type='html'>&lt;!--Prism.js CSS--&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;

&lt;!--Prism.js JS--&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-javascript.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;

&lt;p&gt;אם אתר בעל אתר blogspot וברצונך שיופיע תפריט של כל הרשומות בבלוג,&lt;br /&gt;הכנס לעריכת הבלוג (עיצוב) &amp;gt; פריסה &amp;gt; הוספת גאדג&#39;ט &amp;gt; HTML/Javascript &amp;gt;&amp;nbsp;&lt;br /&gt;כותרת: תפריט של שניר&lt;br /&gt;תוכן - הוסף תגית פותחת וסוגרת:&amp;lt;script&amp;gt;. . .&amp;lt;/script&amp;gt;&lt;br /&gt;וביניהן את הקוד שמופיע להלן או באתר 
  &lt;a blank=&quot;&quot; href=&quot;https://github.com/snirex/blogspot-menu&quot; target=&quot;&quot;&gt;github&lt;/a&gt;
  .
&lt;/p&gt;&lt;p&gt;כתבתי קוד JS בשביל ליצור תפריט לבלוג הזה:&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;text-align: right;&quot;&gt;&lt;br /&gt;


  &lt;a href=&quot;javascript:copyText(&#39;div1&#39;,&#39;שאלות ChatGPT בכל אתר&#39;)&quot;&gt;העתק את הקוד&lt;/a&gt;
  
&lt;/p&gt;
&lt;div id=&quot;div1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 100px; overflow-y: scroll; text-align: left;&quot;&gt;
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:(()={/*blogspot menu*/const s=document.createElement(&#39;style&#39;);s.textContent=`#floatingMenu{position:fixed;top:100px;right:10px;width:300px;max-height:450px;background:rgba(0,0,0,0.7);color:white;font-family:Arial,sans-serif;font-size:14px;border-radius:6px;box-shadow:0 0 12px black;display:flex;flex-direction:column;user-select:none;z-index:999999;overflow:hidden;transition:max-height 0.4s ease;}#floatingMenu.collapsed{max-height:40px;}#floatingMenuHeader{padding:8px 10px;background:rgba(0,0,0,0.85);cursor:move;display:flex;justify-content:space-between;align-items:center;font-weight:bold;}#floatingMenuTitle{flex-grow:1;}#floatingMenuControls{display:flex;align-items:center;}#floatingMenuControls&amp;gt;button{cursor:pointer;color:white;margin-left:12px;font-weight:bold;user-select:none;background:none;border:none;font-size:16px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;}#searchInput{margin:0 10px;padding:5px 8px;border-radius:4px;border:none;font-size:14px;width:calc(100% - 20px);box-sizing:border-box;direction:rtl;}#floatingMenuList{padding:5px 10px;transition:opacity 0.4s ease;flex-grow:1;display:flex;flex-direction:column;overflow:hidden;}#floatingMenuList.fade{opacity:0;}#floatingMenuList.scrollable{overflow-y:auto;max-height:380px;}#floatingMenuList div{padding:5px 8px;border-radius:4px;margin-bottom:4px;background:rgba(255,255,255,0.1);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:background 0.2s ease,opacity 0.3s ease;}#floatingMenuList div:hover{background:rgba(255,255,255,0.25);}#highlight{background:yellow;color:black;font-weight:bold;}#floatingMenu.collapsed #searchInput,#floatingMenu.collapsed #floatingMenuList{opacity:0;pointer-events:none;height:0;padding:0 10px;overflow:hidden !important;transition:opacity 0.4s ease,height 0.4s ease,padding 0.4s ease,margin 0.4s ease;}#floatingMenuList .active{background:orange !important;color:black !important;}`;document.head.appendChild(s);const m=document.createElement(&#39;div&#39;);m.id=&#39;floatingMenu&#39;;const h=document.createElement(&#39;div&#39;);h.id=&#39;floatingMenuHeader&#39;;const t=document.createElement(&#39;div&#39;);t.id=&#39;floatingMenuTitle&#39;;t.textContent=&#39;פוסטים&#39;;const c=document.createElement(&#39;div&#39;);c.id=&#39;floatingMenuControls&#39;;const b1=document.createElement(&#39;button&#39;);b1.textContent=&#39;-&#39;;const b2=document.createElement(&#39;button&#39;);b2.textContent=&#39;×&#39;;c.appendChild(b1);c.appendChild(b2);h.appendChild(t);h.appendChild(c);const inp=document.createElement(&#39;input&#39;);inp.id=&#39;searchInput&#39;;inp.placeholder=&#39;חפש פוסטים...&#39;;const l=document.createElement(&#39;div&#39;);l.id=&#39;floatingMenuList&#39;;m.appendChild(h);m.appendChild(inp);m.appendChild(l);document.body.appendChild(m);function H(t){return/[\u0590-\u05FF]/.test(t);}function E(s){return s.replace(/[.*+?^${}()|[\]\\]/g,&#39;\\$&amp;amp;&#39;);}function G(){const ps=document.querySelectorAll(&#39;h2.post-title,h3.post-title&#39;),r=[];ps.forEach((p,i)=&amp;gt;{const a=p.querySelector(&#39;a&#39;);const txt=a?a.textContent.trim():p.textContent.trim();r.push({el:p,text:txt,index:i});});return r;}function X(txt,term){if(!term)return txt;const re=new RegExp(&#39;(&#39;+E(term)+&#39;)&#39;,&#39;gi&#39;);return txt.replace(re,&#39;$1&#39;);}let ai=-1;function U(){const term=inp.value.trim().toLowerCase(),ps=G();l.classList.add(&#39;fade&#39;);setTimeout(()=&amp;gt;{l.innerHTML=&#39;&#39;;const f=ps.filter(p=&amp;gt;p.text.toLowerCase().includes(term));l.classList.toggle(&#39;scrollable&#39;,f.length&amp;gt;10);if(f.length===0){const n=document.createElement(&#39;div&#39;);n.textContent=&#39;לא נמצאו פוסטים&#39;;n.style.textAlign=&#39;center&#39;;n.style.opacity=&#39;0.7&#39;;l.appendChild(n);}else{f.forEach(({el,text})=&amp;gt;{const d=document.createElement(&#39;div&#39;);d.innerHTML=X(text,term);d.style.textAlign=H(text[0])?&#39;right&#39;:&#39;left&#39;;d.style.direction=H(text[0])?&#39;rtl&#39;:&#39;ltr&#39;;d.addEventListener(&#39;click&#39;,()=&amp;gt;{el.scrollIntoView({behavior:&#39;smooth&#39;,block:&#39;center&#39;});d.style.backgroundColor=&#39;yellow&#39;;setTimeout(()=&amp;gt;{d.style.backgroundColor=&#39;&#39;;},1500);});l.appendChild(d);});}},200);setTimeout(()=&amp;gt;l.classList.remove(&#39;fade&#39;),250);V();}function V(){const ps=G();let mid=window.innerHeight/2,closest=-1,minDist=1e6;ps.forEach((p,i)=&amp;gt;{const r=p.el.getBoundingClientRect(),dist=Math.abs(r.top+r.height/2-mid);if(dist&lt;mindist d=&quot;&quot; div=&quot;&quot; i=&quot;&quot; items.foreach=&quot;&quot; items=&quot;l.querySelectorAll(&quot; mindist=&quot;dist;closest=i;}});const&quot;&gt;{d.classList.toggle(&#39;active&#39;,i===closest);});ai=closest;}b1.addEventListener(&#39;click&#39;,()=&amp;gt;m.classList.toggle(&#39;collapsed&#39;));b2.addEventListener(&#39;click&#39;,()=&amp;gt;m.remove());inp.addEventListener(&#39;input&#39;,U);U();let drag=false,sx,sy,mx,my;h.addEventListener(&#39;mousedown&#39;,e=&amp;gt;{drag=true;sx=e.clientX;sy=e.clientY;const r=m.getBoundingClientRect();mx=r.left;my=r.top;e.preventDefault();});window.addEventListener(&#39;mousemove&#39;,e=&amp;gt;{if(!drag)return;let nx=mx+(e.clientX-sx),ny=my+(e.clientY-sy);nx=Math.max(0,Math.min(nx,window.innerWidth-m.offsetWidth));ny=Math.max(0,Math.min(ny,window.innerHeight-m.offsetHeight));m.style.left=nx+&#39;px&#39;;m.style.top=ny+&#39;px&#39;;m.style.right=&#39;auto&#39;;});window.addEventListener(&#39;mouseup&#39;,()=&amp;gt;drag=false);window.addEventListener(&#39;scroll&#39;,()=&amp;gt;V());})();
&lt;/mindist&gt;&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;br /&gt;
לחלופין אפשר למצוא את הקוד ב-Github שלי
&lt;br /&gt;
&lt;a blank=&quot;&quot; href=&quot;https://github.com/snirex/blogspot-menu&quot; target_=&quot;&quot;&gt;https://github.com/snirex/blogspot-menu&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/3213964699584202261/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/10/blogspot-menu.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/3213964699584202261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/3213964699584202261'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/10/blogspot-menu.html' title='תפריט לאתר blogspot'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-4458237496039551354</id><published>2025-09-16T11:39:00.012+03:00</published><updated>2025-11-10T15:48:06.021+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chatgpt"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="תכנות - כללי"/><title type='text'>שאלות ל-chatGpt מכל אתר</title><content type='html'>&lt;!--Prism.js CSS--&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;

&lt;!--Prism.js JS--&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-javascript.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;

&lt;p&gt;
  &lt;u&gt;כתבתי תוסף לשימוש ChatGpt בכל אתרי האינטרנט:&lt;/u&gt;
&lt;ul&gt;
&lt;li&gt;מסמנים טקסט כלשהו&lt;/li&gt;
&lt;li&gt;לוחצים Shift+Q &lt;/li&gt;
&lt;li&gt;יופיע בלון קטן - שאל את chatGpt.&lt;/li&gt;
&lt;li&gt;לוחצים על הבלון וייפתח חלון עם הטקסט כשאלה ב-chatGpt:&lt;/li&gt;
&lt;/ul&gt;
&lt;u&gt;שימוש בתוסף:&lt;/u&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;javascript:copyText(&#39;div1&#39;,&#39;שאלות ChatGPT בכל אתר&#39;)&quot;&gt;העתק את הקוד&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;לחץ ctrl+d כדי ליצור סימניה&lt;/li&gt;
  &lt;li&gt;שנה את שם הסימניה ל-AskGPT ובמקום הכתובת, הדבק את הטקסט שהעתקת בסעיף 1&lt;/li&gt;
  &lt;li&gt;
    כעת תוכל להשתמש בתוסף בכל אתר אינטרנט, כפי שמוסבר למעלה
  &lt;/li&gt;
&lt;/ul&gt;


&lt;div id=&quot;div1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 100px; overflow-y: scroll; text-align: left;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:(function(){const m=document.createElement(&#39;div&#39;);m.id=&#39;chatgpt-context-menu&#39;;m.style.position=&#39;absolute&#39;;m.style.background=&#39;#fff&#39;;m.style.border=&#39;1px solid #ccc&#39;;m.style.padding=&#39;8px 12px 12px 12px&#39;;m.style.borderRadius=&#39;5px&#39;;m.style.boxShadow=&#39;0 2px 8px rgba(0,0,0,0.2)&#39;;m.style.cursor=&#39;pointer&#39;;m.style.display=&#39;none&#39;;m.style.zIndex=99999;m.style.transition=&#39;opacity 0.2s&#39;;m.style.opacity=0;m.style.minWidth=&#39;120px&#39;;m.style.fontFamily=&#39;Arial,sans-serif&#39;;m.style.direction=&#39;rtl&#39;;const close=document.createElement(&#39;span&#39;);close.innerHTML=&#39;&amp;#10005;&#39;;close.style.position=&#39;absolute&#39;;close.style.top=&#39;2px&#39;;close.style.right=&#39;6px&#39;;close.style.cursor=&#39;pointer&#39;;close.style.fontSize=&#39;12px&#39;;close.style.color=&#39;#666&#39;;close.addEventListener(&#39;click&#39;,()=&gt;{h()});m.appendChild(close);const label=document.createElement(&#39;div&#39;);label.innerText=&#39;שאל את ChatGPT&#39;;label.style.marginTop=&#39;10px&#39;;m.appendChild(label);document.body.appendChild(m);let t=&#39;&#39;;function s(x,y){m.style.top=y+&#39;px&#39;;m.style.left=x+&#39;px&#39;;m.style.display=&#39;block&#39;;setTimeout(()=&gt;m.style.opacity=1,10)}function h(){m.style.opacity=0;setTimeout(()=&gt;m.style.display=&#39;none&#39;,200)}document.addEventListener(&#39;keydown&#39;,e=&gt;{if(e.shiftKey&amp;&amp;e.key.toLowerCase()===&#39;q&#39;){t=window.getSelection().toString().trim();if(t){const r=window.getSelection().getRangeAt(0).getBoundingClientRect();s(r.right+window.scrollX,r.bottom+window.scrollY)}}});document.addEventListener(&#39;click&#39;,e=&gt;{if(!m.contains(e.target))h()});label.addEventListener(&#39;click&#39;,()=&gt;{if(t){window.open(&#39;https://chat.openai.com/?q=&#39;+encodeURIComponent(t),&#39;_blank&#39;,&#39;width=600,height=400&#39;)}h()});})();
  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p/&gt;
לחלופין אפשר למצוא את הקוד בגיטהאב שלי:
&lt;a href=&quot;https://github.com/snirex/AskGpt/blob/main/AskGpt.min.js&quot;&gt;https://github.com/snirex/AskGpt/blob/main/AskGpt.min.js&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/4458237496039551354/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/09/ask-chatgpt.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/4458237496039551354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/4458237496039551354'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/09/ask-chatgpt.html' title='שאלות ל-chatGpt מכל אתר'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-5160946423627347390</id><published>2025-07-11T10:17:00.025+03:00</published><updated>2025-07-13T13:32:36.180+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="טיפים"/><title type='text'>מזונות בריאים</title><content type='html'>&lt;style&gt;
    .collapsible {
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 5; /* מספר השורות */
      -webkit-box-orient: vertical;
    }
    .expanded {
      -webkit-line-clamp: unset;
    }
    .toggle-link {
      color: blue;
      cursor: pointer;
      display: inline-block;
      margin-top: 5px;
    }
  &lt;/style&gt;
&lt;span id=&quot;toggle&quot; class=&quot;toggle-link&quot;&gt;להציג עוד&lt;/span&gt;
&lt;div id=&quot;post&quot; class=&quot;collapsible&quot;&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1️⃣&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;☕&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;אמרו למשל שקפה לא בריא.&lt;/span&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;☕&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;
  &lt;span style=&quot;font-size: large;&quot;&gt;
  שתיית קפה שחור יוצרת השפעה שמגינה על הגוף מפני סוכרת, מפחיתה סיכונים לאלצהיימר ולפרקינסון ומונעת סוגים מסוימים של סרטן הכבד, שחמת,
    הפטיטיס c ושומנים בכבד.
  &lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;שתיית קפה שחור מורידה באופן דרסטי את הסיכון ללקות בסרטן המעי הגס והכליות, בבעיות בקצב הלב ובשבץ מוחי, והוא אחד מנוגדי החִמצון החזקים בעולם, לא רק לשתייה. הוא אנטי־אייג&#39;ינג מוכח&amp;nbsp; ונמצא בהרבה מסכות פילינג לפנים ולגוף.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;במרפאות רפואה טבעית מבצעים בשנים האחרונות&amp;nbsp; &quot;חוקן קפה&quot; לניקוי מושלם של המעי הגס.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;סוכר בקפה שחור לאחר ארוחה דשנה מגביר את קצב חילוף החומרים בגוף ומונע נמנום.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;השם הרע שיצא לקפה בשנים האחרונות נובע בעיקר מצריכה לקויה. על מנת להרויח את כל היתרונות הבריאותיים של הקפה, חשוב לשתות כוס מים לפני ,כך הוא אינו מכווץ את כלי הדם ולא גורם לפלפיטציות ויובש בעור&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
  
  &lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;2️⃣&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;שמן קיק.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;שמן הקיק היה עד לפני שנים ספורות עוד שמן נחמד על מדף השמנים הקוסמטיים, שערכו זול ואיכותו לא מוכרת.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;בשנים האחרונות, עם עליית קרנה של הרפואה האלטרנטיבית והמידע המונגש לציבור חינם אין כסף, מופיע שמן הקיק בקדמת הבמה בזכות יכולותיו הסגוליות המופלאות לטפל בהמון מצבים רפואיים, מטיפוח שיער, דרך קומפרסים לכאב וחבישות שמן לדלקות ולריפוי בלוטת התריס ועד לשילובו בריפוי סוגי סרטן מסוימים.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;למרות סגולות הריפוי הנפלאות שלו, לשמן קיק יש תדר אנושי הוא &quot;משדר על הגל&quot;&amp;nbsp; בו האדם משתמש לכן לעיתים הוא הפכפך כביכול&amp;nbsp; עושה &quot;דווקא&quot; לאדם&amp;nbsp; שבתדר נמוך, למשל הוא מזרז עיכול.והוא מאט. מזרז תהליכי לידה – מאט. מלחח את העור – מייבש.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;והכל בהתאם למשתמש.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;שמן קיק מסיר נפיחויות בבלוטות לימפה, מטפל בבלוטת התריס, בכאבי מפרקים בדלקות ועוד. מספיק להניח רטיה ספוגה בשמן הטוב הזה והפלא מתרחש.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
  
  &lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;3️⃣&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;השמש מסוכנת?&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;כל קרן שמש מכילה חלקיקי פוטונים שבמגע עם העור הם חודרים והורסים דנ&quot;א פגום ובונים דנ&quot;א חדש, וכך הגוף מרפא את עצמו. יכולת הריפוי של השמש כל כך עוצמתית&amp;nbsp; &amp;nbsp;שמרפסות סולאריום קיימות עוד מקדמת דנא, מכוני ריפוי מחזיקים במכשירים שמדמים אור&amp;nbsp; שמש&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;וכמובן&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;פוטותרפיה.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;השמש מחסלת הליקובקטר פילורי, פטריות בציפורן, מחלות מעיים, פסוריאזיס, ואפילו סוגי סרטן שונים.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;מחקרים בחו&quot;ל מגלים כי אנשי עיר המתמגנים באופן עקבי מהשמש הם חלשים, חולים וסובלים מבעיות בשיעורים ניכרים הרבה יותר מאנשים הגרים בכפרים נידחים, בארצות נחשלות או בהרים מרוחקים שאינם מתמגנים מהשמש.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
  
  &lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;4️⃣&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;🥚🍳🥚🍳&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;ביצים זה מסוכן?&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;ביצים הן ה&quot;סופר פוד&quot; המוכר והנמכר ביותר בעולם. הביצים מכילות את כל חומצות השומן, המינרלים, הוויטמינים, היסודות והקורט שבעולם, מה שהופך אותן למאכל הבריא ביותר.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;טסים לאי בודד?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;קחו ביצים.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;חוץ מזה הביצה מכילה כולין, שהוא מוליך עצבי גבוה, ולציטין, שהיא חומצת השומן החיוניות ביותר לבניית תאי המוח. אכילה של שתיים־שלוש ביצים באופן יום יומי&amp;nbsp; משפרת את התפקוד המוחי, מונעת אלצהיימר, מרפאת כבד במצוקה, מגינה מקטרקט ומניוון מקולרי ומחזקת את רשתית העין&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;(בבחינת &quot;דומה בדומה ירפא&quot;).&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
  
  &lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;5️⃣&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;🍖🥩🍖🥩&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;כולסטרול &quot;גבוה&quot; וכולסטרול &quot;רע&quot; אלו מושגים מתחום התעשייה הרפואית.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;כולסטרול הוא שומן חיוני מאוד לבריאותנו.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;הוא מיוצר באופן טבעי במוח והוא חלק קריטי ובלתי נפרד לתהליכים ביולוגיים מרכזיים בגופנו.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;הגוף באמת מייצר בעצמו כמעט 80% ממנו אבל אצל כל אדם באופן ובמידה שונים, אבל מאוד מדויקים ובצורה מבוקרת וטבעית.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&quot;מה רבו מעשיך ה&#39;&quot;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;הוא מייצר את הורמונים,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;הופך לוויטמין D בעזרת קרני השמש,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;מונע מחלות ניווניות,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;מייצר חומצות מרה בכבד, המסייעות בפירוק השומן והמזון.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;מחקרים בלתי תלויים מוכיחים שכנראה דווקא התרופות להורדת כולסטרול גורמות לאלצהיימר, לאובדן זיכרון, למחלות קשות ולסרטן.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;שווה לבדוק מדי פעם תיאוריות באופן עצמאי לגבי הכולסטרול, כי כמעט בכל עשור הערכים משתנים ואיתם ההנחיות.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
  
  &lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;6️⃣&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;סודה לשתייה:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;מעניין – זהו רכיב שנמצא בתרופות מרשם להקלה על&amp;nbsp; צרבת, אבל לא מומלץ על ידי רופאים לטיפול ביתי בצרבת.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;סודה לשתייה מחטאת, מרככת, מעכבת התפתחות חיידקים בפה, מטפלת בדלקות חניכיים, מרגיעה את העור לאחר עקיצה, מנקה את עור הפנים, מטהרת&amp;nbsp; את האוויר והאוירה מסירה פטריות בציפורן, עובש&amp;nbsp; ועוד...&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
  
  &lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;7️⃣&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;פירמידת המזון:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;חמש ארוחות ביום – תאוריות שמשלו בכיפה עשרות שנים.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;היום מבינים שככל שאתה אוכל פחות אתה בריא יותר. כשמערכת העיכול עובדת – מערכת החיסון מושבתת.&amp;nbsp; הורמון הגרלין מופרש בקיבה רק כשרעבים ומשתתף בעשרות תהליכי ניקוי ובריאות בגוף. כשלא רעבים, התהליכים&amp;nbsp; פשוט לא מתרחשים.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;תדירות גבוהה של אכילה גורמת להפרשה מתמדת של אינסולין, להשמנת־יתר ולמחלות מטאבוליות.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;פחות אוכל – פחות מחלות. ריפוי דרך תזונה מחזורית&amp;nbsp; מועטה וחזרה לפשטות הטבעית של פעם.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;
  
&lt;/div&gt;
&lt;span id=&quot;toggle&quot; class=&quot;toggle-link&quot;&gt;להציג עוד&lt;/span&gt;

  &lt;script&gt;
    var  b_expanded=false;
    const post = document.getElementById(&#39;post&#39;);
    const toggle = document.getElementById(&#39;toggle&#39;);

    toggle.addEventListener(&#39;click&#39;, () =&gt; {
      post.classList.toggle(&#39;expanded&#39;);
      toggle.textContent = post.classList.contains(&#39;expanded&#39;) ? &#39;להסתיר&#39; : &#39;להציג עוד&#39;;
      window.scrollTo({
        top: (b_expanded == false ? 300 : 0),
        left: 0,
        behavior: &quot;smooth&quot;
      });
      b_expanded = !b_expanded;
    });

  &lt;/script&gt;
</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/5160946423627347390/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/07/healthy-food.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/5160946423627347390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/5160946423627347390'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/07/healthy-food.html' title='מזונות בריאים'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-3083676091579001321</id><published>2025-07-10T16:08:00.008+03:00</published><updated>2025-07-13T16:06:29.021+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ai"/><category scheme="http://www.blogger.com/atom/ns#" term="chatgpt"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><title type='text'>צביעת שיחות ב-ChatGpt</title><content type='html'>  &lt;!--Prism.js CSS--&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;

&lt;!--Prism.js JS--&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-javascript.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;
הוספת אפשרות לצבוע שיחות (צאטים) ב-ChatGpt
&lt;ol&gt;
  &lt;li&gt;
    &lt;a href=&quot;javascript:copyText(&#39;div1&#39;,&#39;&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הקוד&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;לחץ ctrl+d כדי ליצור סימניה&lt;/li&gt;
  &lt;li&gt;שנה את שם הסימניה ל-צביעת שיחות, ובמקום הכתובת, הדבק את הטקסט שהעתקת בסעיף 1&lt;/li&gt;
    &lt;li&gt;
      בזמן שימוש באתר ChatGPT, לחץ על הסימניה ששמרת כדי להציג את התפריט
    &lt;/li&gt;
&lt;/ol&gt;
&lt;div id=&quot;div1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 100px; overflow-y: scroll; text-align: left;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:(function(){
  let s = JSON.parse(localStorage.getItem(&#39;navMarkerSettings&#39;)) || {
    markers: [{symbol:&#39;📌&#39;,bgColor:&#39;#fff8b3&#39;,color:&#39;&#39;}],
    minimized: false
  };
  function save() {
    localStorage.setItem(&#39;navMarkerSettings&#39;, JSON.stringify(s));
  }
  function h() {
    document.querySelectorAll(&#39;nav a&#39;).forEach(c=&amp;gt;{
      let t=c.textContent.trim();
      c.style.backgroundColor=&#39;&#39;;
      c.style.color=&#39;&#39;;
      s.markers.forEach(m=&amp;gt;{
        if(t.startsWith(m.symbol)||t.endsWith(m.symbol)){
          c.style.backgroundColor=m.bgColor||&#39;&#39;;
          c.style.color=m.color||&#39;&#39;;
        }
      });
      c.style.fontWeight=&#39;&#39;;
      if(c.hasAttribute(&#39;data-active&#39;)){
        c.style.fontWeight=&#39;bold&#39;;
      }
    });
  }
  h();
  const n=document.querySelector(&#39;nav&#39;);
  if(n){
    new MutationObserver(h).observe(n,{childList:true,subtree:true,attributes:true,attributeFilter:[&#39;data-active&#39;]});
  }
  if(!document.getElementById(&#39;markerConfigMenu&#39;)){
    const m=document.createElement(&#39;div&#39;);
    m.id=&#39;markerConfigMenu&#39;;
    m.style.position=&#39;fixed&#39;;
    m.style.top=&#39;55px&#39;;
    m.style.right=&#39;10px&#39;;
    m.style.width=&#39;270px&#39;;
    m.style.background=&#39;#fefefe&#39;;
    m.style.border=&#39;1px solid #333&#39;;
    m.style.borderRadius=&#39;8px&#39;;
    m.style.boxShadow=&#39;0 4px 12px rgba(0,0,0,0.2)&#39;;
    m.style.fontFamily=&#39;sans-serif&#39;;
    m.style.zIndex=&#39;9999&#39;;
    m.style.overflow=&#39;hidden&#39;;
    m.style.opacity=&#39;0.9&#39;;
    m.style.cursor=&#39;move&#39;;
    m.innerHTML=&#39;&lt;div id=&quot;menuHeader&quot; style=&quot;align-items: center; background: rgb(51, 51, 51); color: white; cursor: move; display: flex; justify-content: space-between; padding: 8px 10px;&quot;&gt;&lt;span&gt;⚙️ הגדר סימנים&lt;/span&gt;&lt;div&gt;&lt;button id=&quot;toggleMenu&quot; style=&quot;background: none; border: none; color: white; cursor: pointer; font-size: 16px; margin-right: 5px;&quot;&gt;−&lt;/button&gt;&lt;button id=&quot;closeMenu&quot; style=&quot;background: none; border: none; color: white; cursor: pointer; font-size: 16px;&quot;&gt;x&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;menuContent&quot; style=&quot;background: rgba(255, 255, 255, 0.95); padding: 10px;&quot;&gt;&lt;div style=&quot;color: #333333; cursor: default; direction: rtl; font-size: 14px; margin-bottom: 8px; text-align: right;&quot;&gt;מקם סימנים בתחילת או בסוף שם לסשן, והגדר צבעים:&lt;/div&gt;&lt;div id=&quot;markerList&quot; style=&quot;width: 230px;&quot;&gt;&lt;/div&gt;&lt;hr /&gt;&lt;div style=&quot;margin-bottom: 5px;&quot;&gt;&lt;input id=&quot;newSymbol&quot; placeholder=&quot;סימן&quot; style=&quot;width: 40px;&quot; /&gt;&lt;input id=&quot;newBg&quot; title=&quot;רקע&quot; type=&quot;color&quot; value=&quot;#ffff00&quot; /&gt;&lt;input id=&quot;newColor&quot; title=&quot;צבע טקסט&quot; type=&quot;color&quot; value=&quot;#000000&quot; /&gt;&lt;/div&gt;&lt;button id=&quot;addMarker&quot; style=&quot;margin-right: 5px;&quot;&gt;➕ הוסף&lt;/button&gt;&lt;button id=&quot;resetMarkers&quot;&gt;♻️ איפוס&lt;/button&gt;&lt;/div&gt;&#39;;
    document.body.appendChild(m);
    const hd=document.getElementById(&#39;menuHeader&#39;),
          tb=document.getElementById(&#39;toggleMenu&#39;),
          ct=document.getElementById(&#39;menuContent&#39;),
          cl=document.getElementById(&#39;closeMenu&#39;);
    // מצב פתיחה/סגירה לפי saved
    ct.style.display = s.minimized ? &#39;none&#39; : &#39;block&#39;;
    tb.textContent = s.minimized ? &#39;+&#39; : &#39;−&#39;;
    tb.onclick=()=&amp;gt;{
      if(ct.style.display===&#39;none&#39;){
        ct.style.display=&#39;block&#39;;
        tb.textContent=&#39;−&#39;;
        s.minimized = false;
      }else{
        ct.style.display=&#39;none&#39;;
        tb.textContent=&#39;+&#39;;
        s.minimized = true;
      }
      save();
    };
    cl.onclick=()=&amp;gt;{
      m.style.transition=&#39;opacity 0.2s ease&#39;;
      m.style.opacity=&#39;0&#39;;
      setTimeout(()=&amp;gt;{m.remove();},500);
    };
    function r(){
      const l=document.getElementById(&#39;markerList&#39;);
      l.innerHTML=&#39;&#39;;
      if(s.markers.length===0){
        l.innerHTML=&#39;&lt;em&gt;אין סימנים מוגדרים.&lt;/em&gt;&#39;;
      }
      s.markers.forEach((m,i)=&amp;gt;{
        const d=document.createElement(&#39;div&#39;);
        d.style.marginBottom=&#39;4px&#39;;
        d.style.background=&#39;#f0f0f0&#39;;
        d.style.padding=&#39;4px 30px 4px 4px&#39;;
        d.style.borderRadius=&#39;4px&#39;;
        d.style.position=&#39;relative&#39;;
        d.innerHTML=`${m.symbol} BG:&amp;nbsp;&lt;span style=&quot;background: ${m.bgColor}; border: 1px solid black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;Text:&amp;nbsp;&lt;span style=&quot;background: ${m.color}; border: 1px solid black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;`;
        const b=document.createElement(&#39;button&#39;);
        b.textContent=&#39;🗑️&#39;;
        b.style.position=&#39;absolute&#39;;
        b.style.right=&#39;-25px&#39;;
        b.style.top=&#39;50%&#39;;
        b.style.transform=&#39;translateY(-50%)&#39;;
        b.style.background=&#39;none&#39;;
        b.style.border=&#39;none&#39;;
        b.style.cursor=&#39;pointer&#39;;
        b.onclick=()=&amp;gt;{
          s.markers.splice(i,1);
          save();
          r();
          h();
        };
        d.appendChild(b);
        l.appendChild(d);
      });
    }
    r();
    document.getElementById(&#39;addMarker&#39;).onclick=()=&amp;gt;{
      const sy=document.getElementById(&#39;newSymbol&#39;).value.trim(),
            bg=document.getElementById(&#39;newBg&#39;).value,
            co=document.getElementById(&#39;newColor&#39;).value;
      if(sy){
        s.markers.push({symbol:sy,bgColor:bg,color:co});
        save();
        r();
        h();
      }
    };
    document.getElementById(&#39;resetMarkers&#39;).onclick=()=&amp;gt;{
      if(confirm(&#39;לאפס הכל?&#39;)){
        localStorage.removeItem(&#39;navMarkerSettings&#39;);
        s={markers:[], minimized: false};
        r();
        h();
      }
    };
    let x=0,y=0,mx=0,my=0;hd.onmousedown=d;
    function d(e){
      e=e||window.event;e.preventDefault();
      mx=e.clientX;my=e.clientY;
      document.onmouseup=c;document.onmousemove=f;
    }
    function f(e){
      e=e||window.event;e.preventDefault();
      x=mx-e.clientX;y=my-e.clientY;
      mx=e.clientX;my=e.clientY;
      m.style.top=(m.offsetTop-y)+&#39;px&#39;;
      m.style.left=(m.offsetLeft-x)+&#39;px&#39;;
      m.style.right=&#39;auto&#39;;
    }
    function c(){document.onmouseup=null;document.onmousemove=null;}
  }
})();

&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;u&gt;שימוש בתוסף:&lt;/u&gt;
&lt;div&gt;בתיבת התוסף יש להגדיר תו רצוי וצבעים - למשל  
  &lt;table border=&#39;1&#39;&gt;&lt;tbody&gt;
    &lt;tr&gt;&lt;td&gt;תו&lt;/td&gt;&lt;td&gt;צבע רקע&lt;/td&gt;&lt;td&gt;צבע טקסט&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&amp;gt;&lt;/td&gt;&lt;td style=&quot;background: yellow;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;td style=&quot;background: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div&gt;יש לשנות את שם השיחה הרצויה שתתחיל או תסתיים בתו שנבחר.&lt;/div&gt;&lt;div&gt;כך, כל שיחה תיצבע בצבע ע&quot;י התחלת או סיום השיחה בתו שהוגדר&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/3083676091579001321/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/07/chatgpt-session-color.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/3083676091579001321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/3083676091579001321'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/07/chatgpt-session-color.html' title='צביעת שיחות ב-ChatGpt'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-1673199141688358224</id><published>2025-07-06T15:28:00.008+03:00</published><updated>2025-07-06T16:23:17.378+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ai"/><category scheme="http://www.blogger.com/atom/ns#" term="google gemini"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><title type='text'>תפריט שאלות של השיחה הנוכחית לגוגל ג&#39;מיני</title><content type='html'>  &lt;!--Prism.js CSS--&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;

&lt;!--Prism.js JS--&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-javascript.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;

תפריט פרומפטים לגוגל ג&#39;מיני:
&lt;ol&gt;
  &lt;li&gt;
    &lt;a href=&quot;javascript:copyText(&#39;div1&#39;,&#39;לתפריט גוגל גמיני&#39;)&quot;&gt;העתק את הקוד&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;עבור אל האתר של Google Gemini&lt;/li&gt;
  &lt;li&gt;לחץ F12&lt;/li&gt;
  &lt;li&gt;הדבק את הקוד ע&quot;י לחיצת ctrl+v, &lt;/li&gt;ולחץ Enter
&lt;/ol&gt;

&lt;div id=&quot;div1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 100px; overflow-y: scroll; text-align: left;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;(() =&gt; {
  // יצירת מדיניות TrustedTypes אם קיימת
  const policy = window.trustedTypes?.createPolicy(&#39;default&#39;, {
    createHTML: (input) =&gt; input
  });

  const style = document.createElement(&#39;style&#39;);
  // שימוש ב-TrustedHTML ל-style.innerHTML
  style.innerHTML = policy ? policy.createHTML(`
    #floatingMenu {
      position: fixed;
      top: 100px;
      left: 10px;
      width: 270px;
      max-height: 400px;
      background: rgba(0,0,0,0.6);
      color: white;
      font-family: Arial, sans-serif;
      font-size: 14px;
      border-radius: 6px;
      box-shadow: 0 0 10px black;
      display: flex;
      flex-direction: column;
      user-select: none;
      z-index: 999999;
      overflow: hidden;
      transition: max-height 0.4s ease;
    }
    #floatingMenu.collapsed {
      max-height: 40px;
    }
    #floatingMenuHeader {
      padding: 8px 10px;
      background: rgba(0,0,0,0.8);
      cursor: move;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
    }
    #floatingMenuTitle {
      flex-grow: 1;
      text-align: center;
    }
    #floatingMenuControls {
      display: flex;
      align-items: center;
    }
    #floatingMenuControls &gt; button {
      cursor: pointer;
      margin-left: 10px;
      font-weight: bold;
      background: none;
      border: none;
      color: white;
      font-size: 16px;
      line-height: 1;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    #floatingMenuControls &gt; button:focus {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }
    #searchInput {
      margin: 0 10px;
      padding: 5px 8px;
      border-radius: 4px;
      border: none;
      font-size: 14px;
      width: calc(100% - 20px);
      box-sizing: border-box;
      max-height: 0;
      opacity: 0;
      pointer-events: none;
      transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
      direction: rtl;
    }
    #searchInput.visible {
      max-height: 40px;
      opacity: 1;
      pointer-events: auto;
      margin: 5px 10px;
    }
    #floatingMenuList {
      padding: 5px 10px;
      transition: opacity 0.3s ease;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    #floatingMenuList.scrollable {
      overflow-y: auto;
      max-height: 340px;
    }
    #floatingMenuList div {
      padding: 5px 8px;
      border-radius: 4px;
      margin-bottom: 4px;
      background: rgba(255,255,255,0.1);
      cursor: pointer;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    #floatingMenuList div:hover,
    #floatingMenuList div:focus {
      background: rgba(255,255,255,0.25);
      outline: none;
    }
    #floatingMenu.collapsed #searchInput,
    #floatingMenu.collapsed #floatingMenuList {
      opacity: 0;
      pointer-events: none;
      height: 0;
      padding: 0 10px;
      overflow: hidden !important;
      transition: opacity 0.4s ease, height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    }
  `) : `
    #floatingMenu {
      position: fixed;
      top: 100px;
      right: 10px;
      width: 270px;
      max-height: 400px;
      background: rgba(0,0,0,0.6);
      color: white;
      font-family: Arial, sans-serif;
      font-size: 14px;
      border-radius: 6px;
      box-shadow: 0 0 10px black;
      display: flex;
      flex-direction: column;
      user-select: none;
      z-index: 999999;
      overflow: hidden;
      transition: max-height 0.4s ease;
    }
    #floatingMenu.collapsed {
      max-height: 40px;
    }
    #floatingMenuHeader {
      padding: 8px 10px;
      background: rgba(0,0,0,0.8);
      cursor: move;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
    }
    #floatingMenuTitle {
      flex-grow: 1;
      text-align: center;
    }
    #floatingMenuControls {
      display: flex;
      align-items: center;
    }
    #floatingMenuControls &gt; button {
      cursor: pointer;
      margin-left: 10px;
      font-weight: bold;
      background: none;
      border: none;
      color: white;
      font-size: 16px;
      line-height: 1;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    #floatingMenuControls &gt; button:focus {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }
    #searchInput {
      margin: 0 10px;
      padding: 5px 8px;
      border-radius: 4px;
      border: none;
      font-size: 14px;
      width: calc(100% - 20px);
      box-sizing: border-box;
      max-height: 0;
      opacity: 0;
      pointer-events: none;
      transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
      direction: rtl;
    }
    #searchInput.visible {
      max-height: 40px;
      opacity: 1;
      pointer-events: auto;
      margin: 5px 10px;
    }
    #floatingMenuList {
      padding: 5px 10px;
      transition: opacity 0.3s ease;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    #floatingMenuList.scrollable {
      overflow-y: auto;
      max-height: 340px;
    }
    #floatingMenuList div {
      padding: 5px 8px;
      border-radius: 4px;
      margin-bottom: 4px;
      background: rgba(255,255,255,0.1);
      cursor: pointer;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow-x: clip;
    }
    #floatingMenuList div:hover,
    #floatingMenuList div:focus {
      background: rgba(255,255,255,0.25);
      outline: none;
    }
    #floatingMenu.collapsed #searchInput,
    #floatingMenu.collapsed #floatingMenuList {
      opacity: 0;
      pointer-events: none;
      height: 0;
      padding: 0 10px;
      overflow: hidden !important;
      transition: opacity 0.4s ease, height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    }
  `;

  document.head.appendChild(style);

  const menu = document.createElement(&#39;div&#39;);
  menu.id = &#39;floatingMenu&#39;;
  menu.setAttribute(&#39;role&#39;, &#39;region&#39;);
  menu.setAttribute(&#39;aria-label&#39;, &#39;תפריט שאלות&#39;);

  const header = document.createElement(&#39;div&#39;);
  header.id = &#39;floatingMenuHeader&#39;;
  header.setAttribute(&#39;role&#39;, &#39;banner&#39;);

  const title = document.createElement(&#39;div&#39;);
  title.id = &#39;floatingMenuTitle&#39;;
  // החלפה ל-textContent במקום innerHTML כשמדובר בטקסט
  title.textContent = &#39;ריק&#39;; // ברירת מחדל

  const controls = document.createElement(&#39;div&#39;);
  controls.id = &#39;floatingMenuControls&#39;;

  const toggleSearchBtn = document.createElement(&#39;button&#39;);
  toggleSearchBtn.id = &#39;toggleSearchBtn&#39;;
  toggleSearchBtn.textContent = &#39;?&#39;; // טקסט בלבד

  const collapseBtn = document.createElement(&#39;button&#39;);
  collapseBtn.id = &#39;collapseBtn&#39;;
  collapseBtn.textContent = &#39;-&#39;; // טקסט בלבד

  const closeBtn = document.createElement(&#39;button&#39;);
  closeBtn.id = &#39;closeBtn&#39;;
  closeBtn.textContent = &#39;×&#39;; // טקסט בלבד

  //controls.appendChild(toggleSearchBtn);
  controls.appendChild(collapseBtn);
  controls.appendChild(closeBtn);
  header.appendChild(title);
  header.appendChild(controls);

  const searchInput = document.createElement(&#39;input&#39;);
  searchInput.id = &#39;searchInput&#39;;
  searchInput.type = &#39;search&#39;;
  searchInput.placeholder = &#39;חפש שאלות...&#39;;

  const listContainer = document.createElement(&#39;div&#39;);
  listContainer.id = &#39;floatingMenuList&#39;;

  menu.appendChild(header);
  menu.appendChild(searchInput);
  menu.appendChild(listContainer);
  document.body.appendChild(menu);

  function isHebrewChar(char) {
    return /[\u0590-\u05FF]/.test(char);
  }

  function hasClassOrParentHasClass(el, className) {
    while (el) {
      if (el.classList &amp;&amp; el.classList.contains(className)) {
        return true;
      }
      el = el.parentElement;
    }
    return false;
  }

  function getQuestions() {
    const qs = document.querySelectorAll(&#39;.query-text p&#39;);

    const questions = [];
    qs.forEach((q, i) =&gt; {
      let len = 27;
      if (hasClassOrParentHasClass(q, &#39;text-page-header&#39;)) return;
      let text = q.textContent.trim().replace(/\s+/g, &#39; &#39;);      
      if (text.length &gt; len) text = text.slice(0, len) + &#39;…&#39;;
      questions.push({ el: q, text, index: i, fullText: q.innerHTML.trim() });
    });
    return questions;
  }

  let previousQuestionsJSON = null;

  function updateList() {
    const questions = getQuestions();
    const currentQuestionsJSON = JSON.stringify(questions.map(q =&gt; q.fullText));
    if (currentQuestionsJSON === previousQuestionsJSON) return;
    previousQuestionsJSON = currentQuestionsJSON;

    if (questions.length === 0) {
      title.textContent = &#39;ריק&#39;;
    } else {
      // כאן כן innerHTML כי זה יכול לכלול תווים מיוחדים מהכותרת, אבל מומלץ להחליף ל-textContent אם אפשר
      // פה נניח שהכותרת היא טקסט בלבד, לכן:
      title.textContent = document.title || &#39;צ׳אט&#39;;
    }

    // 👇 בדיקת כיוון הכותרת
    const firstChar = title.textContent.trim().charAt(0);
    if (isHebrewChar(firstChar)) {
      title.style.direction = &#39;rtl&#39;;
    } else {
      title.style.direction = &#39;ltr&#39;;
    }

    const searchTerm = searchInput.value.trim().toLowerCase();
    listContainer.innerHTML = &#39;&#39;; // כאן צריך לרוקן תוכן - אין דרך אחרת

    const filtered = questions.filter(q =&gt; q.fullText.toLowerCase().includes(searchTerm));
    listContainer.classList.toggle(&#39;scrollable&#39;, filtered.length &gt; 10);

    if (filtered.length === 0) {
      const noResultDiv = document.createElement(&#39;div&#39;);
      noResultDiv.textContent = &#39;לא נמצאו שאלות&#39;;
      noResultDiv.style.textAlign = &#39;center&#39;;
      noResultDiv.style.opacity = &#39;0.7&#39;;
      listContainer.appendChild(noResultDiv);
      return;
    }

    filtered.forEach(({ el, text, index, fullText }) =&gt; {
      const item = document.createElement(&#39;div&#39;);
      // כאן אפשר להשתמש ב-textContent כי זה טקסט בלבד
      item.textContent = text || `שאלה ${index + 1}`;
      item.title = fullText;

      if (isHebrewChar(text[0])) {
        item.style.direction = &#39;rtl&#39;;
        item.style.textAlign = &#39;right&#39;;
      } else {
        item.style.direction = &#39;ltr&#39;;
        item.style.textAlign = &#39;left&#39;;
      }

      item.addEventListener(&#39;click&#39;, e =&gt; {
        e.preventDefault();
        el.scrollIntoView({ behavior: &#39;smooth&#39;, block: &#39;center&#39; });
        el.style.transition = &#39;background-color 0.5s&#39;;
        const origBG = el.style.backgroundColor;
        el.style.backgroundColor = &#39;yellow&#39;;
        setTimeout(() =&gt; {
          el.style.backgroundColor = origBG || &#39;&#39;;
        }, 1000);
      });

      listContainer.appendChild(item);
    });
  }

  closeBtn.addEventListener(&#39;click&#39;, () =&gt; {
    menu.style.display = &#39;none&#39;;
  });

  collapseBtn.addEventListener(&#39;click&#39;, () =&gt; {
    const isCollapsed = menu.classList.toggle(&#39;collapsed&#39;);
    collapseBtn.textContent = isCollapsed ? &#39;+&#39; : &#39;-&#39;;
  });

  toggleSearchBtn.addEventListener(&#39;click&#39;, () =&gt; {
    const visible = searchInput.classList.toggle(&#39;visible&#39;);
    if (visible) {
      searchInput.focus();
    } else {
      searchInput.value = &#39;&#39;;
      updateList();
    }
  });

  searchInput.addEventListener(&#39;input&#39;, () =&gt; {
    updateList();
  });

  let isDragging = false, dragStartX, dragStartY, menuStartX, menuStartY;

  header.addEventListener(&#39;mousedown&#39;, e =&gt; {
    isDragging = true;
    dragStartX = e.clientX;
    dragStartY = e.clientY;
    const rect = menu.getBoundingClientRect();
    menuStartX = rect.left;
    menuStartY = rect.top;
    e.preventDefault();
  });

  window.addEventListener(&#39;mousemove&#39;, e =&gt; {
    if (!isDragging) return;
    let newX = menuStartX + (e.clientX - dragStartX);
    let newY = menuStartY + (e.clientY - dragStartY);
    const maxX = window.innerWidth - menu.offsetWidth - 10;
    const maxY = window.innerHeight - menu.offsetHeight - 10;
    newX = Math.max(0, Math.min(maxX, newX));
    newY = Math.max(0, Math.min(maxY, newY));
    menu.style.right = &#39;auto&#39;;
    menu.style.left = `${newX}px`;
    menu.style.top = `${newY}px`;
  });

  window.addEventListener(&#39;mouseup&#39;, () =&gt; {
    isDragging = false;
  });

  const observer = new MutationObserver(() =&gt; {
    updateList();
  });

  observer.observe(document.body, { childList: true, subtree: true, characterData: true });

  updateList();
})();

	&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/1673199141688358224/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/07/gemini-menu.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/1673199141688358224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/1673199141688358224'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/07/gemini-menu.html' title='תפריט שאלות של השיחה הנוכחית לגוגל ג&#39;מיני'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-4870777594667464860</id><published>2025-06-30T14:23:00.048+03:00</published><updated>2025-11-12T14:48:26.326+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ai"/><category scheme="http://www.blogger.com/atom/ns#" term="chatgpt"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><title type='text'>תפריט שאלות של השיחה הנוכחית ChatGPT</title><content type='html'>  &lt;!--Prism.js CSS--&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;

&lt;!--Prism.js JS--&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-javascript.min.js&quot;&gt;&lt;/script&gt;

&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;
&lt;p&gt;&lt;u&gt;
תפריט פרומפטים ל-chatGPT
&lt;/u&gt;&lt;/p&gt;

  &lt;br/&gt;
  כתבתי תוסף לכרום שמוסיף את התפריט באופן אוטומטי (עם אפשרות למזעור או סגירה)&lt;br /&gt; 
  &lt;a href=&quot;https://chromewebstore.google.com/detail/%D7%AA%D7%A4%D7%A8%D7%99%D7%98-%D7%A4%D7%A8%D7%95%D7%9E%D7%A4%D7%98%D7%99%D7%9D-%D7%9C-chatgpt/gdcplbmaalejiogmoenfgfhonicgjfan&quot; target=&quot;_blank&quot;&gt;
    &lt;img src=&quot;https://fonts.gstatic.com/s/i/productlogos/chrome_store/v7/192px.svg&quot; width=&#39;24&#39; /&gt;
  ניתן להוריד את התוסף מחנות גוגל כרום
&lt;/a&gt;


&lt;div id=&quot;div1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 100px; overflow-y: scroll; text-align: left; display: none;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;(() =&gt; {
  const style = document.createElement(&#39;style&#39;);
  style.textContent = `
    #floatingMenu {
      position: fixed;
      top: 100px;
      right: 10px;
      width: 270px;
      max-height: 400px;
      background: rgba(0,0,0,0.6);
      color: white;
      font-family: Arial, sans-serif;
      font-size: 14px;
      border-radius: 6px;
      box-shadow: 0 0 10px black;
      display: flex;
      flex-direction: column;
      user-select: none;
      z-index: 999999;
      overflow: hidden;
      transition: max-height 0.4s ease;
    }
    #floatingMenu.collapsed {
      max-height: 40px;
    }
    #floatingMenuHeader {
      padding: 8px 10px;
      background: rgba(0,0,0,0.8);
      cursor: move;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
    }
    #floatingMenuTitle {
      flex-grow: 1;
      text-align: center;
    }
    #floatingMenuControls {
      display: flex;
      align-items: center;
    }
    #floatingMenuControls &gt; button {
      cursor: pointer;
      margin-left: 10px;
      font-weight: bold;
      background: none;
      border: none;
      color: white;
      font-size: 16px;
      line-height: 1;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    #floatingMenuControls &gt; button:focus {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }
    #searchInput {
      margin: 0 10px;
      padding: 5px 8px;
      border-radius: 4px;
      border: none;
      font-size: 14px;
      width: calc(100% - 20px);
      box-sizing: border-box;
      max-height: 0;
      opacity: 0;
      pointer-events: none;
      transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
      direction: rtl;
    }
    #searchInput.visible {
      max-height: 40px;
      opacity: 1;
      pointer-events: auto;
      margin: 5px 10px;
    }
    #floatingMenuList {
      padding: 5px 10px;
      transition: opacity 0.3s ease;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    #floatingMenuList.scrollable {
      overflow-y: auto;
      max-height: 340px;
    }
    #floatingMenuList div {
      padding: 5px 8px;
      border-radius: 4px;
      margin-bottom: 4px;
      background: rgba(255,255,255,0.1);
      cursor: pointer;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    #floatingMenuList div:hover,
    #floatingMenuList div:focus {
      background: rgba(255,255,255,0.25);
      outline: none;
    }
    #floatingMenu.collapsed #searchInput,
    #floatingMenu.collapsed #floatingMenuList {
      opacity: 0;
      pointer-events: none;
      height: 0;
      padding: 0 10px;
      overflow: hidden !important;
      transition: opacity 0.4s ease, height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    }
  `;
  document.head.appendChild(style);

  const menu = document.createElement(&#39;div&#39;);
  menu.id = &#39;floatingMenu&#39;;
  menu.setAttribute(&#39;role&#39;, &#39;region&#39;);
  menu.setAttribute(&#39;aria-label&#39;, &#39;תפריט שאלות&#39;);

  const header = document.createElement(&#39;div&#39;);
  header.id = &#39;floatingMenuHeader&#39;;
  header.setAttribute(&#39;role&#39;, &#39;banner&#39;);

  const title = document.createElement(&#39;div&#39;);
  title.id = &#39;floatingMenuTitle&#39;;
  title.textContent = &#39;ריק&#39;; // ברירת מחדל

  const controls = document.createElement(&#39;div&#39;);
  controls.id = &#39;floatingMenuControls&#39;;

  const toggleSearchBtn = document.createElement(&#39;button&#39;);
  toggleSearchBtn.id = &#39;toggleSearchBtn&#39;;
  toggleSearchBtn.textContent = &#39;?&#39;;

  const collapseBtn = document.createElement(&#39;button&#39;);
  collapseBtn.id = &#39;collapseBtn&#39;;
  collapseBtn.textContent = &#39;-&#39;;

  const closeBtn = document.createElement(&#39;button&#39;);
  closeBtn.id = &#39;closeBtn&#39;;
  closeBtn.textContent = &#39;×&#39;;

  controls.appendChild(toggleSearchBtn);
  controls.appendChild(collapseBtn);
  controls.appendChild(closeBtn);
  header.appendChild(title);
  header.appendChild(controls);

  const searchInput = document.createElement(&#39;input&#39;);
  searchInput.id = &#39;searchInput&#39;;
  searchInput.type = &#39;search&#39;;
  searchInput.placeholder = &#39;חפש שאלות...&#39;;

  const listContainer = document.createElement(&#39;div&#39;);
  listContainer.id = &#39;floatingMenuList&#39;;

  menu.appendChild(header);
  menu.appendChild(searchInput);
  menu.appendChild(listContainer);
  document.body.appendChild(menu);

  function isHebrewChar(char) {
    return /[\u0590-\u05FF]/.test(char);
  }

  function hasClassOrParentHasClass(el, className) {
    while (el) {
      if (el.classList &amp;&amp; el.classList.contains(className)) {
        return true;
      }
      el = el.parentElement;
    }
    return false;
  }

  function getQuestions() {
    const qs = document.querySelectorAll(&#39;.whitespace-pre-wrap&#39;);
    const questions = [];
    qs.forEach((q, i) =&gt; {
      let len = 27;
      if (hasClassOrParentHasClass(q, &#39;text-page-header&#39;)) return;
      let text = q.textContent.trim().replace(/\s+/g, &#39; &#39;);
      if (text.length &gt; len) text = text.slice(0, len) + &#39;…&#39;;
      questions.push({ el: q, text, index: i, fullText: q.textContent.trim() });
    });
    return questions;
  }

  let previousQuestionsJSON = null;

  function updateList() {
    const questions = getQuestions();
    const currentQuestionsJSON = JSON.stringify(questions.map(q =&gt; q.fullText));
    if (currentQuestionsJSON === previousQuestionsJSON) return;
    previousQuestionsJSON = currentQuestionsJSON;

    if (questions.length === 0) {
      title.textContent = &#39;ריק&#39;;
    } else {
      title.textContent = document.title || &#39;צ׳אט&#39;;
    }

    // 👇 בדיקת כיוון הכותרת
    const firstChar = title.textContent.trim().charAt(0);
    if (isHebrewChar(firstChar)) {
      title.style.direction = &#39;rtl&#39;;
    } else {
      title.style.direction = &#39;ltr&#39;;
    }

    const searchTerm = searchInput.value.trim().toLowerCase();
    listContainer.innerHTML = &#39;&#39;;

    const filtered = questions.filter(q =&gt; q.fullText.toLowerCase().includes(searchTerm));
    listContainer.classList.toggle(&#39;scrollable&#39;, filtered.length &gt; 10);

    if (filtered.length === 0) {
      const noResultDiv = document.createElement(&#39;div&#39;);
      noResultDiv.textContent = &#39;לא נמצאו שאלות&#39;;
      noResultDiv.style.textAlign = &#39;center&#39;;
      noResultDiv.style.opacity = &#39;0.7&#39;;
      listContainer.appendChild(noResultDiv);
      return;
    }

    filtered.forEach(({ el, text, index, fullText }) =&gt; {
      const item = document.createElement(&#39;div&#39;);
      item.textContent = text || `שאלה ${index + 1}`;
      item.title = fullText;

      if (isHebrewChar(text[0])) {
        item.style.direction = &#39;rtl&#39;;
        item.style.textAlign = &#39;right&#39;;
      } else {
        item.style.direction = &#39;ltr&#39;;
        item.style.textAlign = &#39;left&#39;;
      }

      item.addEventListener(&#39;click&#39;, e =&gt; {
        e.preventDefault();
        el.scrollIntoView({ behavior: &#39;smooth&#39;, block: &#39;center&#39; });
        el.style.transition = &#39;background-color 0.5s&#39;;
        const origBG = el.style.backgroundColor;
        el.style.backgroundColor = &#39;yellow&#39;;
        setTimeout(() =&gt; {
          el.style.backgroundColor = origBG || &#39;&#39;;
        }, 1000);
      });

      listContainer.appendChild(item);
    });
  }

  closeBtn.addEventListener(&#39;click&#39;, () =&gt; {
    menu.style.display = &#39;none&#39;;
  });

  collapseBtn.addEventListener(&#39;click&#39;, () =&gt; {
    const isCollapsed = menu.classList.toggle(&#39;collapsed&#39;);
    collapseBtn.textContent = isCollapsed ? &#39;+&#39; : &#39;-&#39;;
  });

  toggleSearchBtn.addEventListener(&#39;click&#39;, () =&gt; {
    const visible = searchInput.classList.toggle(&#39;visible&#39;);
    if (visible) {
      searchInput.focus();
    } else {
      searchInput.value = &#39;&#39;;
      updateList();
    }
  });

  searchInput.addEventListener(&#39;input&#39;, () =&gt; {
    updateList();
  });

  let isDragging = false, dragStartX, dragStartY, menuStartX, menuStartY;

  header.addEventListener(&#39;mousedown&#39;, e =&gt; {
    isDragging = true;
    dragStartX = e.clientX;
    dragStartY = e.clientY;
    const rect = menu.getBoundingClientRect();
    menuStartX = rect.left;
    menuStartY = rect.top;
    e.preventDefault();
  });

  window.addEventListener(&#39;mousemove&#39;, e =&gt; {
    if (!isDragging) return;
    let newX = menuStartX + (e.clientX - dragStartX);
    let newY = menuStartY + (e.clientY - dragStartY);
    const maxX = window.innerWidth - menu.offsetWidth - 10;
    const maxY = window.innerHeight - menu.offsetHeight - 10;
    newX = Math.max(0, Math.min(maxX, newX));
    newY = Math.max(0, Math.min(maxY, newY));
    menu.style.right = &#39;auto&#39;;
    menu.style.left = `${newX}px`;
    menu.style.top = `${newY}px`;
  });

  window.addEventListener(&#39;mouseup&#39;, () =&gt; {
    isDragging = false;
  });

  const observer = new MutationObserver(() =&gt; {
    updateList();
  });

  observer.observe(document.body, { childList: true, subtree: true, characterData: true });

  updateList();
})();

  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;
&lt;u&gt;
  אם לא ניתן להתקין תוספים אצלך בדפדן, אז אפשר להפעיל את זה בדרך הבאה:
&lt;/u&gt;
  
  &lt;ol&gt;
  &lt;li style=&quot;display: none;&quot;&gt;
    &lt;a href=&quot;javascript:copyText(&#39;div3&#39;,&#39;&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הקוד&lt;/a&gt;
  &lt;/li&gt;
    &lt;li&gt;העתק &lt;a href=&quot;https://github.com/snirex/ChatGptPromptsMenu/blob/main/minimized.js&quot;&gt;מכאן&lt;/a&gt; את הקוד
    &lt;/li&gt;
  &lt;li&gt;לחץ ctrl+d כדי ליצור סימניה&lt;/li&gt;
  &lt;li&gt;שנה את שם הסימניה ל-תפריט, ובמקום כתובת, הדבק את הטקסט שהעתקת בסעיף 1&lt;/li&gt;
    &lt;li&gt;
      בזמן שימוש באתר ChatGPT, לחץ על הסימניה ששמרת כדי להציג את התפריט
    &lt;/li&gt;
&lt;/ol&gt;
  
&lt;p/&gt;&lt;div id=&quot;div2&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 60px; overflow-y: hidden; text-align: left;display: none;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:(()=&gt;{const e=document.createElement(&quot;style&quot;);e.textContent=&quot;#floatingMenu{position:fixed;top:100px;right:10px;width:270px;max-height:400px;background:rgba(0,0,0,.6);color:#fff;font-family:Arial,sans-serif;font-size:14px;border-radius:6px;box-shadow:0 0 10px black;display:flex;flex-direction:column;user-select:none;z-index:999999;overflow:hidden;transition:max-height .4s ease}#floatingMenu.collapsed{max-height:40px}#floatingMenuHeader{padding:8px 10px;background:rgba(0,0,0,.8);cursor:move;display:flex;justify-content:space-between;align-items:center;font-weight:700}#floatingMenuTitle{flex-grow:1;text-align:center}#floatingMenuControls{display:flex;align-items:center}#floatingMenuControls&gt;button{cursor:pointer;margin-left:10px;font-weight:700;background:none;border:none;color:#fff;font-size:16px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}#floatingMenuControls&gt;button:focus{outline:2px solid #fff;outline-offset:2px}#searchInput{margin:0 10px;padding:5px 8px;border-radius:4px;border:none;font-size:14px;width:calc(100% - 20px);box-sizing:border-box;max-height:0;opacity:0;pointer-events:none;transition:max-height .4s ease,opacity .4s ease,margin .4s ease;direction:rtl}#searchInput.visible{max-height:40px;opacity:1;pointer-events:auto;margin:5px 10px}#floatingMenuList{padding:5px 10px;transition:opacity .3s ease;flex-grow:1;display:flex;flex-direction:column;overflow:hidden}#floatingMenuList.scrollable{overflow-y:auto;max-height:340px}#floatingMenuList div{padding:5px 8px;border-radius:4px;margin-bottom:4px;background:rgba(255,255,255,.1);cursor:pointer;white-space:nowrap;text-overflow:ellipsis}#floatingMenuList div:hover,#floatingMenuList div:focus{background:rgba(255,255,255,.25);outline:none}#floatingMenu.collapsed #searchInput,#floatingMenu.collapsed #floatingMenuList{opacity:0;pointer-events:none;height:0;padding:0 10px;overflow:hidden!important;transition:opacity .4s ease,height .4s ease,padding .4s ease,margin .4s ease}&quot;,document.head.appendChild(e);const t=document.createElement(&quot;div&quot;);t.id=&quot;floatingMenu&quot;,t.setAttribute(&quot;role&quot;,&quot;region&quot;),t.setAttribute(&quot;aria-label&quot;,&quot;תפריט שאלות&quot;);const n=document.createElement(&quot;div&quot;);n.id=&quot;floatingMenuHeader&quot;,n.setAttribute(&quot;role&quot;,&quot;banner&quot;);const o=document.createElement(&quot;div&quot;);o.id=&quot;floatingMenuTitle&quot;,o.textContent=&quot;ריק&quot;;const i=document.createElement(&quot;div&quot;);i.id=&quot;floatingMenuControls&quot;;const l=document.createElement(&quot;button&quot;);l.id=&quot;toggleSearchBtn&quot;,l.textContent=&quot;?&quot;;const a=document.createElement(&quot;button&quot;);a.id=&quot;collapseBtn&quot;,a.textContent=&quot;-&quot;;const c=document.createElement(&quot;button&quot;);c.id=&quot;closeBtn&quot;,c.textContent=&quot;×&quot;,i.appendChild(l),i.appendChild(a),i.appendChild(c),n.appendChild(o),n.appendChild(i);const s=document.createElement(&quot;input&quot;);s.id=&quot;searchInput&quot;,s.type=&quot;search&quot;,s.placeholder=&quot;חפש שאלות...&quot;;const d=document.createElement(&quot;div&quot;);d.id=&quot;floatingMenuList&quot;,t.appendChild(n),t.appendChild(s),t.appendChild(d),document.body.appendChild(t);function p(e){return/[\u0590-\u05FF]/.test(e)}function u(e,t){for(;e;){if(e.classList&amp;&amp;e.classList.contains(t))return!0;e=e.parentElement}return!1}function f(){const e=document.querySelectorAll(&quot;.whitespace-pre-wrap&quot;),t=[];return e.forEach(((e,n)=&gt;{let o=27;if(u(e,&quot;text-page-header&quot;))return;let i=e.textContent.trim().replace(/\s+/g,&quot; &quot;);i.length&gt;o&amp;&amp;(i=i.slice(0,o)+&quot;…&quot;),t.push({el:e,text:i,index:n,fullText:e.textContent.trim()})})),t}let r=null;function m(){const e=f(),n=JSON.stringify(e.map((e=&gt;e.fullText)));if(n===r)return;r=n,0===e.length?o.textContent=&quot;ריק&quot;:o.textContent=document.title||&quot;צ׳אט&quot;;const i=o.textContent.trim().charAt(0);p(i)?o.style.direction=&quot;rtl&quot;:o.style.direction=&quot;ltr&quot;;const l=s.value.trim().toLowerCase();d.innerHTML=&quot;&quot;;const a=e.filter((e=&gt;e.fullText.toLowerCase().includes(l)));if(d.classList.toggle(&quot;scrollable&quot;,a.length&gt;10),0===a.length){const e=document.createElement(&quot;div&quot;);return e.textContent=&quot;לא נמצאו שאלות&quot;,e.style.textAlign=&quot;center&quot;,e.style.opacity=&quot;0.7&quot;,void d.appendChild(e)}a.forEach((({el:e,text:n,index:o,fullText:i})=&gt;{const l=document.createElement(&quot;div&quot;);l.textContent=n||`שאלה ${o+1}`,l.title=i;const a=n[0];p(a)?(l.style.direction=&quot;rtl&quot;,l.style.textAlign=&quot;right&quot;):(l.style.direction=&quot;ltr&quot;,l.style.textAlign=&quot;left&quot;),l.addEventListener(&quot;click&quot;,(t=&gt;{t.preventDefault(),e.scrollIntoView({behavior:&quot;smooth&quot;,block:&quot;center&quot;}),e.style.transition=&quot;background-color .5s&quot;;const n=e.style.backgroundColor;e.style.backgroundColor=&quot;yellow&quot;,setTimeout((()=&gt;{e.style.backgroundColor=n||&quot;&quot;}),1e3)})),d.appendChild(l)}))}c.addEventListener(&quot;click&quot;,(()=&gt;{t.style.display=&quot;none&quot;})),a.addEventListener(&quot;click&quot;,(()=&gt;{const e=t.classList.toggle(&quot;collapsed&quot;);a.textContent=e?&quot;+&quot;:&quot;-&quot;})),l.addEventListener(&quot;click&quot;,(()=&gt;{const e=s.classList.toggle(&quot;visible&quot;);e?s.focus():(s.value=&quot;&quot;,m())})),s.addEventListener(&quot;input&quot;,(()=&gt;{m()}));let h=!1,v,g,b;function y(e){if(!h)return;let n=g+(e.clientX-v),o=b+(e.clientY-b);n=Math.max(0,Math.min(window.innerWidth-t.offsetWidth-10,n)),o=Math.max(0,Math.min(window.innerHeight-t.offsetHeight-10,o)),t.style.right=&quot;auto&quot;,t.style.left=`${n}px`,t.style.top=`${o}px`}n.addEventListener(&quot;mousedown&quot;,(e=&gt;{h=!0,v=e.clientX,b=e.clientY;const n=t.getBoundingClientRect();g=n.left,b=n.top,e.preventDefault()})),window.addEventListener(&quot;mousemove&quot;,y),window.addEventListener(&quot;mouseup&quot;,(()=&gt;{h=!1}));new MutationObserver((()=&gt;{m()})).observe(document.body,{childList:!0,subtree:!0,characterData:!0}),m()})();

  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div id=&quot;div3&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; height: 60px; overflow-y: hidden; text-align: left; display: none;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;(()=&gt;{const e=document.createElement(&quot;style&quot;);e.textContent=&quot;\n        #floatingMenu {\n            position: fixed;\n            top: 100px;\n            right: 10px;\n            width: 300px;\n            max-height: 450px;\n            background: rgba(0,0,0,0.7);\n            color: white;\n            font-family: Arial, sans-serif;\n            font-size: 14px;\n            border-radius: 6px;\n            box-shadow: 0 0 12px black;\n            display: flex;\n            flex-direction: column;\n            user-select: none;\n            z-index: 999999;\n            overflow: hidden;\n            transition: max-height 0.4s ease;\n        }\n        #floatingMenu.collapsed { max-height: 40px; }\n        #floatingMenuHeader {\n            padding: 8px 10px;\n            background: rgba(0,0,0,0.85);\n            cursor: move;\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            font-weight: bold;\n        }\n        #floatingMenuTitle { flex-grow: 1; }\n        #floatingMenuControls { display: flex; align-items: center; }\n         button:not(.keyboard-toggle) {\n            cursor: pointer; color: white; margin-left: 6px;\n            font-weight: bold; user-select: none;\n            background: none; border: none;\n            font-size: 16px; line-height: 1; padding: 0;\n            display: flex; align-items: center; justify-content: center;\n        }\n         .keyboard-toggle {\n            cursor: pointer; color: white; font-size: 16px;\n            line-height: 1; padding: 4px 6px; border-radius: 4px;\n            transition: background 0.3s ease; margin-left: 6px;\n        }\n         .keyboard-toggle.on { background: #2ecc71; }\n         .keyboard-toggle.off { background: #7f8c8d; }\n\n        #searchInput {\n            margin: 3px 10px; padding: 5px 8px; border-radius: 4px;\n            border: none; font-size: 14px; width: calc(100% - 20px);\n            box-sizing: border-box; direction: rtl;\n            color: black;\n        }\n        #floatingMenuList {\n            padding: 5px 10px;\n            transition: opacity 0.4s ease;\n            flex-grow: 1;\n            display: flex;\n            flex-direction: column;\n            overflow: hidden;\n        }\n        #floatingMenuList.fade { opacity: 0; }\n        #floatingMenuList.scrollable {\n            overflow-y: auto;\n            max-height: 380px;\n        }\n        #floatingMenuList div {\n            padding: 5px 8px;\n            border-radius: 4px;\n            margin-bottom: 4px;\n            background: rgba(255,255,255,0.1);\n            cursor: pointer;\n            white-space: nowrap;\n            text-overflow: ellipsis;\n            overflow-x: hidden;\n            max-width: 100%;\n            box-sizing: border-box;\n            transition: background 0.25s ease, color 0.25s ease;\n        }\n        #floatingMenuList div:hover { background: rgba(255,255,255,0.25); }\n        #highlight { background: yellow; color: black; font-weight: bold; }\n        #floatingMenu.collapsed #searchInput,\n        #floatingMenu.collapsed #floatingMenuList {\n            opacity: 0; pointer-events: none; height: 0; padding: 0 10px;\n            overflow: hidden !important;\n            transition: opacity 0.4s ease, height 0.4s ease, padding 0.4s ease, margin 0.4s ease;\n        }\n        #floatingMenuList .active {\n            background: orange !important; color: black !important; transform: scale(1.02);\n        }\n    &quot;,document.head.appendChild(e);const n=document.createElement(&quot;div&quot;);n.id=&quot;floatingMenu&quot;;const t=document.createElement(&quot;div&quot;);t.id=&quot;floatingMenuHeader&quot;;const o=document.createElement(&quot;div&quot;);o.id=&quot;floatingMenuTitle&quot;,o.textContent=&quot;פוסטים&quot;;const i=document.createElement(&quot;div&quot;);i.id=&quot;floatingMenuControls&quot;;const l=document.createElement(&quot;button&quot;);l.textContent=&quot;-&quot;;const r=document.createElement(&quot;button&quot;);r.textContent=&quot;×&quot;;const a=document.createElement(&quot;button&quot;);a.textContent=&quot;↕&quot;,a.classList.add(&quot;keyboard-toggle&quot;,&quot;on&quot;),i.appendChild(l),i.appendChild(r),t.appendChild(a),t.appendChild(o),t.appendChild(i);const d=document.createElement(&quot;input&quot;);d.id=&quot;searchInput&quot;,d.placeholder=&quot;חפש פוסטים...&quot;;const s=document.createElement(&quot;div&quot;);s.id=&quot;floatingMenuList&quot;,n.appendChild(t),n.appendChild(d),n.appendChild(s),document.body.appendChild(n);let c=!0,u=-1,g=null;function p(e){return/[\u0590-\u05FF]/.test(e)}function h(){const e=document.querySelectorAll(&quot;main&quot;);if(!e.length)return null;let n=null;return e.forEach(e=&gt;{const t=e.getBoundingClientRect();t.height&gt;200&amp;&amp;t.bottom&gt;100&amp;&amp;(n=e)}),n}function f(){const e=h();if(!e)return[];const n=e.querySelectorAll(&quot;.whitespace-pre-wrap&quot;);return Array.from(n).map((e,n)=&gt;{const t=e.querySelector(&quot;a&quot;),o=t?t.textContent.trim():e.textContent.trim();return{element:e,text:o,index:n}})}function x(e){e.style.transition=&quot;background-color 1.5s ease&quot;,e.style.backgroundColor=&quot;yellow&quot;,setTimeout(()=&gt;e.style.backgroundColor=&quot;&quot;,1500)}let m=&quot;&quot;;function b(e=!1){const n=f(),t=d.value.trim().toLowerCase(),i=n.filter(e=&gt;e.text.toLowerCase().includes(t)),l=JSON.stringify(i.map(e=&gt;e.text));if(l===m)return;m=l,o.textContent=0===i.length?&quot;לא נמצאו פוסטים&quot;:&quot;פוסטים&quot;;const r=o.textContent.trim().charAt(0);if(o.style.direction=p(r)?&quot;rtl&quot;:&quot;ltr&quot;,s.innerHTML=&quot;&quot;,s.classList.toggle(&quot;scrollable&quot;,i.length&gt;10),0===i.length){const e=document.createElement(&quot;div&quot;);e.textContent=&quot;לא נמצאו פוסטים&quot;,e.style.textAlign=&quot;center&quot;,e.style.opacity=&quot;0.7&quot;,s.appendChild(e)}else i.forEach(({element:e,text:n},o)=&gt;{const i=document.createElement(&quot;div&quot;);i.innerHTML=function(e,n){if(!n)return e;const t=new RegExp(`(${o=n,o.replace(/[.*+?^${}()|[\]\\]/g,&quot;\\$&amp;&quot;)})`,&quot;gi&quot;);var o;return e.replace(t,&#39;&lt;span id=&quot;highlight&quot;&gt;$1&lt;/span&gt;&#39;)}(n,t),i.style.textAlign=p(n[0])?&quot;right&quot;:&quot;left&quot;,i.style.direction=p(n[0])?&quot;rtl&quot;:&quot;ltr&quot;,i.addEventListener(&quot;click&quot;,()=&gt;{e.scrollIntoView({behavior:&quot;smooth&quot;,block:&quot;center&quot;}),x(e),u=o,w(s.querySelectorAll(&quot;div&quot;))}),s.appendChild(i)});u=e&amp;&amp;i.length&gt;0?i.length-1:0,w(s.querySelectorAll(&quot;div&quot;))}function w(e){e.forEach((e,n)=&gt;{e.classList.toggle(&quot;active&quot;,n===u),n===u&amp;&amp;e.scrollIntoView({block:&quot;nearest&quot;,behavior:&quot;smooth&quot;})})}l.addEventListener(&quot;click&quot;,()=&gt;n.classList.toggle(&quot;collapsed&quot;)),r.addEventListener(&quot;click&quot;,()=&gt;n.remove()),d.addEventListener(&quot;input&quot;,()=&gt;b()),window.addEventListener(&quot;scroll&quot;,function(){const e=f(),n=d.value.trim().toLowerCase(),t=e.filter(e=&gt;e.text.toLowerCase().includes(n));if(!t.length)return;const o=window.innerHeight/2;let i=-1,l=1/0;if(t.forEach((e,n)=&gt;{const t=e.element.getBoundingClientRect(),r=Math.abs(t.top+t.height/2-o);r&lt;l&amp;&amp;(l=r,i=n)}),-1===i)return;u=i,w(s.querySelectorAll(&quot;div&quot;))}),a.addEventListener(&quot;click&quot;,()=&gt;{c=!c,a.classList.toggle(&quot;on&quot;,c),a.classList.toggle(&quot;off&quot;,!c)}),window.addEventListener(&quot;keydown&quot;,e=&gt;{if(!c)return;const n=s.querySelectorAll(&quot;div&quot;);if(n.length&amp;&amp;(&quot;ArrowDown&quot;===e.key&amp;&amp;(e.preventDefault(),u=(u+1)%n.length,w(n)),&quot;ArrowUp&quot;===e.key&amp;&amp;(e.preventDefault(),u=(u-1+n.length)%n.length,w(n)),&quot;Enter&quot;===e.key)){e.preventDefault();const n=f(),t=d.value.trim().toLowerCase(),o=n.filter(e=&gt;e.text.toLowerCase().includes(t));if(o[u]){const e=o[u].element;e.scrollIntoView({behavior:&quot;smooth&quot;,block:&quot;center&quot;}),x(e)}}});let v,y,C,k,L=!1;t.addEventListener(&quot;mousedown&quot;,e=&gt;{L=!0,v=e.clientX,y=e.clientY;const t=n.getBoundingClientRect();C=t.left,k=t.top,e.preventDefault()}),window.addEventListener(&quot;mousemove&quot;,e=&gt;{if(!L)return;let t=C+(e.clientX-v),o=k+(e.clientY-y);t=Math.max(0,Math.min(t,window.innerWidth-n.offsetWidth)),o=Math.max(0,Math.min(o,window.innerHeight-n.offsetHeight)),n.style.left=t+&quot;px&quot;,n.style.top=o+&quot;px&quot;,n.style.right=&quot;auto&quot;}),window.addEventListener(&quot;mouseup&quot;,()=&gt;L=!1);new MutationObserver(b).observe(document.body,{childList:!0,subtree:!0}),g=h(),b(!0)})();
  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p/&gt;
  &lt;a href=&quot;https://github.com/snirex/ChatGptPromptsMenu/blob/main/minimized.js&quot;&gt;או להעתיק ולהדביק מ-Github שלי&lt;/a&gt;
&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg2kklZ1HXkLeAvaycj-cEnJGslMMNDfLLBUDdGpujCEQ0nm9978ikQW_SrVR6Dw5bSdh0ft56kvz1TVxd0YMz0krKla9g9SlkEOEunYU7MOs8tWiCgZz3wuq6tMHwXr0GjXZFAaDoNVQr0dNnkdOUnt0vG3T3WIcfW5kbhcOhqkwQ2MH7z3QLMyesj4yu9&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;351&quot; data-original-width=&quot;295&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEg2kklZ1HXkLeAvaycj-cEnJGslMMNDfLLBUDdGpujCEQ0nm9978ikQW_SrVR6Dw5bSdh0ft56kvz1TVxd0YMz0krKla9g9SlkEOEunYU7MOs8tWiCgZz3wuq6tMHwXr0GjXZFAaDoNVQr0dNnkdOUnt0vG3T3WIcfW5kbhcOhqkwQ2MH7z3QLMyesj4yu9&quot; width=&quot;202&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/4870777594667464860/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/06/chatgpt-menu.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/4870777594667464860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/4870777594667464860'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/06/chatgpt-menu.html' title='תפריט שאלות של השיחה הנוכחית ChatGPT'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEg2kklZ1HXkLeAvaycj-cEnJGslMMNDfLLBUDdGpujCEQ0nm9978ikQW_SrVR6Dw5bSdh0ft56kvz1TVxd0YMz0krKla9g9SlkEOEunYU7MOs8tWiCgZz3wuq6tMHwXr0GjXZFAaDoNVQr0dNnkdOUnt0vG3T3WIcfW5kbhcOhqkwQ2MH7z3QLMyesj4yu9=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-8219746972765009202</id><published>2025-06-12T12:56:00.016+03:00</published><updated>2025-07-02T15:16:12.593+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WEB"/><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="חינם"/><title type='text'>אחסון אתרים בחינם ע&quot;י github</title><content type='html'>&lt;p style=&quot;text-align: right;&quot;&gt;בשביל לאחסן אתרים ללא הגבלת זמן נשתמש בטריק דרך חשבון github שלנו&lt;/p&gt;&lt;p style=&quot;text-align: right;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: right;&quot;&gt;&lt;li&gt;ניצור repo בשם שנבחר&lt;/li&gt;&lt;li&gt;ניצור או נוסיף את קובץ עמוד האינטרנט שלנו (עדיף שם קובץ index.html)&lt;/li&gt;&lt;li&gt;בתוך האתר של github נלחץ על הקובץ שיצרנו ונעתיק את הכתובת של העמו המתקבל:&amp;nbsp;&lt;a href=&quot;https://github.com/snirex/snir-resume/blob/main/index.html&quot;&gt;https://github.com/snirex/snir-resume/blob/main/index.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;נלך אל הכתובת &lt;a href=&quot;https://raw.githack.com&quot;&gt;https://raw.githack.com&lt;/a&gt; ונזין בתיבת הטקסט העליונה את הכתובת שהעתקנו&lt;/li&gt;&lt;li&gt;נבחר את הכתובת שנרצה: &lt;br /&gt;&lt;b&gt;&lt;u&gt;אם בשביל development:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;- שינויים חדשים יתעדכנו בתוך מספר דקות&lt;br /&gt;-&amp;nbsp;תעבורה מוגזמת תנותב באופן זמני לכתובות CDN מתאימות&lt;br /&gt;&lt;b&gt;&lt;u&gt;אם בשביל production:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;-&amp;nbsp;אין מגבלות תעבורה. הקבצים מוגשים דרך רשת ה-CDN של CloudFlare.&lt;br /&gt;-&amp;nbsp;ניתן לבצע אופטימיזציה אוטומטית לקבצים אם מוסיפים את הפרמטר ?min=1 לכתובת.&lt;br /&gt;-&amp;nbsp;השתמש בתג מסוים (tag) או במזהה commit ספציפי בכתובת ה-URL (ולא בענף - branch). הקבצים מאוחסנים במטמון לצמיתות לפי כתובת ה-URL. מחרוזת השאילתה (Query string) לא נלקחת בחשבון.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;הכתובת שהתקבלה:&amp;nbsp;&lt;a href=&quot;https://raw.githack.com/snirex/snir-resume/main/index.html&quot;&gt;https://raw.githack.com/snirex/snir-resume/main/index.html&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/questions/8446218/how-to-see-an-html-page-on-github-as-a-normal-rendered-html-page-to-see-preview&quot;&gt;https://stackoverflow.com/questions/8446218/how-to-see-an-html-page-on-github-as-a-normal-rendered-html-page-to-see-preview&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center; border: 1px solid #000;&quot;&gt;
  &lt;h3&gt;raw.githack.com&lt;/h3&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh2epe-0RmR0RPXAAeuTXbqBJ009qe3Gj18JBTzut9oCAzgLROkQZJzx7rfXhoICvCENT-ClsVxU3I_7b4vPvwuIw_y8HirrIaAWVqfwISN8kuK3WauNhSGtOUnvtw5XRbtdMgxN-GPBx8gRRAFhikDJb2_zj8HCeFPU6Ti1snn4SajaaNqK4XV63AUfA1a&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
  &lt;img alt=&quot;&quot; data-original-height=&quot;477&quot; data-original-width=&quot;1005&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEh2epe-0RmR0RPXAAeuTXbqBJ009qe3Gj18JBTzut9oCAzgLROkQZJzx7rfXhoICvCENT-ClsVxU3I_7b4vPvwuIw_y8HirrIaAWVqfwISN8kuK3WauNhSGtOUnvtw5XRbtdMgxN-GPBx8gRRAFhikDJb2_zj8HCeFPU6Ti1snn4SajaaNqK4XV63AUfA1a&quot; width=&quot;320&quot; /&gt;
  &lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/8219746972765009202/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/06/githack.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8219746972765009202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8219746972765009202'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/06/githack.html' title='אחסון אתרים בחינם ע&quot;י github'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEh2epe-0RmR0RPXAAeuTXbqBJ009qe3Gj18JBTzut9oCAzgLROkQZJzx7rfXhoICvCENT-ClsVxU3I_7b4vPvwuIw_y8HirrIaAWVqfwISN8kuK3WauNhSGtOUnvtw5XRbtdMgxN-GPBx8gRRAFhikDJb2_zj8HCeFPU6Ti1snn4SajaaNqK4XV63AUfA1a=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-4352240103414317823</id><published>2025-04-09T00:13:00.018+03:00</published><updated>2025-07-02T15:20:06.207+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="הורדות"/><title type='text'>הורדת Windows 10</title><content type='html'>&lt;p dge=&quot;&quot; explorer=&quot;&quot; nbsp=&quot;&quot; p=&quot;&quot;&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;הכנסו אל אתר האינטרנט של הורדת Windows 10 (&lt;a href=&quot;https://www.microsoft.com/he-il/software-download/windows10&quot; target=&quot;_blank&quot;&gt;קישור&lt;/a&gt;)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;&lt;b&gt;&lt;u&gt;אם אתם משתמשים בגוגל כרום (כנראה):&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;1. לחצו על F12 או לחצו לחיצה ימנית איפשהו בדף ובחרו ב- &quot;בדיקה&quot; - בשביל להיכנס למצב Developer&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;2. לחצו ctrl+shift+M כדי להכנס למצב פיתוח לטלפון נייד&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;&lt;b&gt;&lt;u&gt;אם משתמשים בדפדפן Microsoft Edge:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;1. לחצו על F12 או לחצו לחיצה ימנית איפשהו בדף ובחרו ב- &quot;בדיקה&quot; - בשביל להיכנס למצב Developer&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;2. בסרגל העליון לחצו על + , וברשימה הנפתחת בחרו ב- Network Conditions&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;3. הסירו את סימון V מאפשרות Use browser default , וברשימה הנפתחת בחרו ב-BlackBerry-BB10&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;- רעננו את אתר האינטרנט&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;- ברשימה הנפתחת בחרו ב-Windows 10 ולחצו &quot;אשר&quot;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;- ברשימה הנפתחת בחרו בשפה הרצויה (עברית) ולחצו אשר&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;- לחצו על Download bit-64&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; float: right;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;
&lt;div style=&quot;text-align: center;&quot; &gt;
  &lt;a href=&quot;https://www.microsoft.com/he-il/software-download/windows10&quot; target=&quot;_blank&quot;&gt;
    &lt;img src=&quot;https://www.techworm.net/wp-content/uploads/2022/08/downloadwindows10cover.png&quot; width=&quot;250&quot; /&gt;
  &lt;/a&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/4352240103414317823/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/04/download-win10-iso.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/4352240103414317823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/4352240103414317823'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/04/download-win10-iso.html' title='הורדת Windows 10'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-8139203434267353129</id><published>2024-09-05T09:00:00.042+03:00</published><updated>2025-11-13T12:47:56.270+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ai"/><category scheme="http://www.blogger.com/atom/ns#" term="chatgpt"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><title type='text'>ChatGPT - תיקון ימין-שמאל בכתיבת עברית</title><content type='html'>&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;

&lt;p&gt;
  יש בעיה בכתיבת שאלות ב-ChatGPT בעברית במחשב - הכתיבה היא רק משמאל לימין.
  &lt;br/&gt;
  כתבתי תוסף לכרום שמתקן את זה&lt;br /&gt; 
  &lt;a href=&quot;https://chromewebstore.google.com/detail/%D7%9B%D7%99%D7%95%D7%95%D7%9F-%D7%9B%D7%AA%D7%99%D7%91%D7%AA-%D7%A2%D7%91%D7%A8%D7%99%D7%AA-%D7%91-chatg/jhfkflalnlaikefgoblggaalpcobfdph&quot; target=&quot;_blank&quot;&gt;
    &lt;img src=&quot;https://fonts.gstatic.com/s/i/productlogos/chrome_store/v7/192px.svg&quot; width=&#39;24&#39; /&gt;
  ניתן להוריד את התוסף מחנות גוגל כרום
&lt;/a&gt;
&lt;/p&gt;
&lt;u&gt;
  במידה ואין אפשרות להתקנת תוספים בדפדפן שלך,
  אפשר להשתמש בדרך הבאה:
&lt;/u&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href=&quot;javascript:copyText(&#39;div2&#39;,&#39;&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הקוד&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;לחץ ctrl+d&lt;/li&gt;
  &lt;li&gt;
    שנה את שם הסימניה, ובמקום כתובת, הדבק את הטקסט שהעתקת בסעיף 1
  &lt;/li&gt;
  &lt;li&gt;
      בזמן שימוש באתר ChatGPT, לחץ על הסימניה ששמרת כדי לשנות כיוון כתיבה
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
  &lt;!--Prism.js CSS--&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/link&gt;

&lt;!--Prism.js JS--&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-javascript.min.js&quot;&gt;&lt;/script&gt;

&lt;/p&gt;
&lt;div id=&quot;div1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; text-align: left; display: none;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:(function(){let d=localStorage.getItem(&quot;textareaDirection&quot;)||&quot;rtl&quot;;function t(){const e=document.querySelector(&quot;#prompt-textarea&quot;),t=document.querySelector(&quot;#direction-toggle-button img&quot;),o=document.querySelector(&quot;#direction-toggle-button&quot;);e&amp;&amp;t&amp;&amp;o&amp;&amp;(d=&quot;rtl&quot;===d?&quot;ltr&quot;:&quot;rtl&quot;,e.style.direction=d,localStorage.setItem(&quot;textareaDirection&quot;,d),t.style.transform=&quot;ltr&quot;===d?&quot;scaleX(-1)&quot;:&quot;scaleX(1)&quot;,o.title=&quot;rtl&quot;===d?&quot;כיוון כתיבה מימין לשמאל&quot;:&quot;כיוון כתיבה משמאל לימין&quot;)}function e(){if(document.querySelector(&quot;#direction-toggle-button&quot;))return;const e=document.querySelector(&quot;#prompt-textarea&quot;),o=e?.closest(&quot;form&quot;)?.querySelector(&quot;div.flex &gt; div.flex&quot;);if(!e||!o)return;const n=document.createElement(&quot;button&quot;);n.id=&quot;direction-toggle-button&quot;,n.title=&quot;rtl&quot;===d?&quot;כיוון כתיבה מימין לשמאל&quot;:&quot;כיוון כתיבה משמאל לימין&quot;,n.style.cssText=&quot;position: absolute;right: 95px;bottom: 13px;width: 2.2rem;height: 2.2rem;border-radius: 50%;background-color: white;color: black;border: 1px solid lightgray;font-size: 1.2rem;box-shadow: 0 2px 6px rgba(0,0,0,0.2);cursor: pointer;display: flex;align-items: center;justify-content: center;padding: 0;z-index: 9999;&quot;;const r=document.createElement(&quot;img&quot;);r.src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA1CAMAAADBGsOLAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA5UExURYmJiS8vLyoqKmpqagAAABQUFJOTkxkZGYSEhJmZmYuLiyEhIXp6ejg4ODMzMwoKChcXFxEREQAAAMBO9z0AAAATdFJOU////////////////////////wCyfdwIAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGHRFWHRTb2Z0d2FyZQBQYWludC5ORVQgNS4xLjeL1vc5AAAAtmVYSWZJSSoACAAAAAUAGgEFAAEAAABKAAAAGwEFAAEAAABSAAAAKAEDAAEAAAACAAAAMQECABAAAABaAAAAaYcEAAEAAABqAAAAAAAAAGAAAAABAAAAYAAAAAEAAABQYWludC5ORVQgNS4xLjcAAwAAkAcABAAAADAyMzABoAMAAQAAAAEAAAAFoAQAAQAAAJQAAAAAAAAAAgABAAIABAAAAFI5OAACAAcABAAAADAxMDAAAAAAJUeejaM0tcUAAAC7SURBVEhL7ZbBEoIwDEQBIyiKaP//Y53GHYy2tAlcpPgOnPYdmrQklVvH349Q1XmawyvK3y/oqIBaH437nQI6+WiZPkqUhM4+GvX7S54u0T8DxfhXssLa5Kt6LiFWV/if92fr/oCq6mFt8l3bm4D49pfxez7Ol2Pu/CiuAo6HPtqbZeb/tx+f1cDXvwOOB76RMvwbhpoBOf/qETPVgpi/4x09tSDuz2PjfrOofmL/G7BUGkjtnwb27Tv3BMWXp4OR2SRUAAAAAElFTkSuQmCC&quot;,r.alt=&quot;כיוון כתיבה&quot;,r.style.width=&quot;1.5rem&quot;,r.style.height=&quot;1.5rem&quot;,r.style.objectFit=&quot;contain&quot;,r.style.pointerEvents=&quot;none&quot;,r.style.transform=&quot;ltr&quot;===d?&quot;scaleX(-1)&quot;:&quot;scaleX(1)&quot;,n.appendChild(r),n.onmouseover=()=&gt;n.style.backgroundColor=&quot;#f0f0f0&quot;,n.onmouseout=()=&gt;n.style.backgroundColor=&quot;white&quot;,n.onclick=o=&gt;{o.preventDefault(),t()},o.style.position=&quot;relative&quot;,o.appendChild(n),e.style.direction=d}document.addEventListener(&quot;keydown&quot;,e=&gt;{e.ctrlKey&amp;&amp;e.shiftKey&amp;&amp;!e.altKey&amp;&amp;(e.preventDefault(),t())});const o=new MutationObserver(()=&gt;{e()});o.observe(document.body,{childList:!0,subtree:!0}),e();})();
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;


&lt;!--לחצן ההעתק--&gt;
&lt;ol style=&quot;display: none;&quot;&gt;
  &lt;li&gt;
    &lt;a href=&quot;javascript:copyText(&#39;div2&#39;,&#39;&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הקוד&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;לחץ ctrl+d&lt;/li&gt;
  &lt;li&gt;שנה את שם הסימניה ל-שניר, ובמקום כתובת, הדבק את הטקסט שהעתקת בסעיף 1&lt;/li&gt;
&lt;/ol&gt;
&lt;!--&lt;u&gt;גרסה 2&lt;/u&gt;--&gt;
&lt;div id=&quot;div2&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; text-align: left; overflow: hidden; height: 60px;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:(function(){/**chatgpt-rtl*/let textareaDirection=localStorage.getItem(&#39;snir-textarea-direction&#39;)||&#39;rtl&#39;;function toggleDirection(){textareaDirection=textareaDirection===&#39;rtl&#39;?&#39;ltr&#39;:&#39;rtl&#39;;localStorage.setItem(&#39;snir-textarea-direction&#39;,textareaDirection);const textarea=document.querySelector(&#39;#prompt-textarea&#39;);if(textarea){textarea.style.direction=textareaDirection;}const img=document.querySelector(&#39;#direction-toggle-button img&#39;);if(img){img.style.transform=textareaDirection===&#39;ltr&#39;?&#39;scaleX(-1)&#39;:&#39;scaleX(1)&#39;;}}function toggleMarkdownDirection(){const markdowns=document.querySelectorAll(&#39;.markdown&#39;);markdowns.forEach(el=&gt;{el.dir=el.dir===&#39;rtl&#39;?&#39;ltr&#39;:&#39;rtl&#39;;});const img=document.querySelector(&#39;#markdown-toggle-button img&#39;);if(img){img.style.transform=img.style.transform===&#39;scaleX(-1)&#39;?&#39;scaleX(1)&#39;:&#39;scaleX(-1)&#39;;}}function makeButtonImage(id,title,imgSrc,imgAlt,clickHandler){const btn=document.createElement(&#39;button&#39;);btn.id=id;btn.title=title;btn.style.cssText=&#39;width:2.2rem;height:2.2rem;border-radius:50%;background:white;color:black;border:1px solid lightgray;font-size:1.2rem;box-shadow:0 2px 6px rgba(0,0,0,0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;position:relative;transition:transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);&#39;;btn.onmouseover=()=&gt;btn.style.backgroundColor=&#39;#f0f0f0&#39;;btn.onmouseout=()=&gt;btn.style.backgroundColor=&#39;white&#39;;btn.onclick=(e)=&gt;{e.preventDefault();clickHandler();};const img=document.createElement(&#39;img&#39;);img.src=imgSrc;img.alt=imgAlt;img.style.cssText=&#39;width:1.5rem;height:1.5rem;object-fit:contain;pointer-events:none;&#39;;btn.appendChild(img);return btn;}/**/ const imgPromptDir=&#39;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD/UExURenp6c7OzrKysnl5eVZWVpOTkwAAAAEBAaGhoW1tbQMDA5ycnI2NjVtbW8bGxsjIyMrKyrGxscXFxd3d3dLS0ubm5ujo6IuLi3d3d+Li4uTk5E1NTezs7CYmJicnJ1BQUI6OjtXV1ZKSknZ2dpqamgICAt/f36ampnJyclxcXDk5OaqqqrCwsK+vr7+/v66urnR0dMPDw29vb+7u7rW1tSwsLIWFhUJCQkRERMTExNTU1AYGBsfHx3FxcWtra8nJybOzswQEBE5OTjMzM6mpqa2trdzc3OXl5UxMTKWlpUtLS52dnUlJSZ6enuPj40hISMvLy0ZGRqSkpOvr6wAAAKVmCqgAAABVdFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////wCwoQfPAAAACXBIWXMAAA7BAAAOwQG4kWvtAAAAGHRFWHRTb2Z0d2FyZQBQYWludC5ORVQgNS4xLjgbaeqoAAAAtmVYSWZJSSoACAAAAAUAGgEFAAEAAABKAAAAGwEFAAEAAABSAAAAKAEDAAEAAAACAAAAMQECABAAAABaAAAAaYcEAAEAAABqAAAAAAAAANl2AQDoAwAA2XYBAOgDAABQYWludC5ORVQgNS4xLjgAAwAAkAcABAAAADAyMzABoAMAAQAAAAEAAAAFoAQAAQAAAJQAAAAAAAAAAgABAAIABAAAAFI5OAACAAcABAAAADAxMDAAAAAA5X1phWJRlb4AAAFhSURBVEhL5ZRXV8JAEIUpurEiorGAHdGIxoYo9i5WbPP/f4uzmZFkl6xsXuV7yHLP3C9kYU9SkJh/rqTSmWyfQponRKfSLxBHXtoM8IjoUAa5PxSUHUeGYZ4RujLCXSFGc2P5cVwz+cIEDwlNmaS6JIvRxXWKJiGaMh3uYgbjLK5FmoRoSonqEktlbp7qEltlgeoS2wdbpLrEVllKvv1lqktsFVhp/5XWCpR/D5i9AquBUEmiwNq6t1FN9C0Bm8mVreSK36vKtievO0Ls4mKl7AmxXwM4qFcPMRWPGg2XBiGacoy3FSccDKhKQRp5DiYUxcpQlBwKpwUOZiLKmTzy9bJ3HsfFJbeiCv6gFe31HeWKa1GlVhLXfyg+15QHc2/Qub3L+HHcP3BL3X7zEe/2xMFMVIHmMzovHIwoChRf0XnjYEJVoPWOzgcHA5oCrU/xxR9N6Ap8dzmUMUp3eloB+AGGLqjp2OH2dAAAAABJRU5ErkJggg==&#39;; const imgMarkdownDir=&#39;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAIAAAAByLdKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALeSURBVHhe7ZsxjuIwFIZTU+0RKLkBJWlX4gLT0SPtDZBAokFcAYFoqaDZFiqQQKKAHi5ARUvB/orfWCSZOF7ivDHM+ypiXvL7ix2HSCG4/xhE9R2xVV0ul61Wq1qtBiyEYXg+nynbEVaqCKYuMILT6tY2XzXtiU6UCsW4ts1R7Xa7FBsE+Ox8UqXBZUJ5EQ5tTarIoMAgwLVKrSWTUAWubE2qk8lEhWE8qal8tCpC9WR2YmtS1bP3W1Qxj4BDW5PqYyo1lU8i1KGt76rAle0LqAIntq+hCorbvowqKGj7SqqgiK2/qrirU1Ocp229U9W/W5BOTSmes/VOFVkqFBgcnrD1ThVoB/NT6//a+qiKTmsHAGH05Esey3JtfVQFjyNmj/m3uqeqAEOUGLdcUE87f4W/qhqkA6zMWegnsJdXzQXdU/0UVUJUI0TVO0Q1iahGiGqMTqdTq9VQ87s0cHBEIIgiU3CojkYjVcAD4ig4Dofq4XBQBTwcj0cKjsOhCi6Xy5oFBFFkCiZVHxDVJKIakat6vV7VnYaBRqOBOAqOw6E6GAxUAQ+Io+A4HKq3263ZbKoazS9H0OE+QRDiKDgOh6oniGoSUY2wUT2dTn9ZQBBFpuBQ3W63qoAHxFFwHA7V6XSqCnhAHAXH4VAFw+GwXq+j5qM0cHBEIIgiUzCp+oCoJhHVCBvV8Xj8x5per0e7RUsaWjabDW0XgEN1NpupAnva7TZ2nM/ntB0EWc8r9nCorlYrVWBPv9/Hjuv1Wm1WKhV1qCJwqILdboepaMlisaDd7vf9fo+W4kMKmFR9QFSTiGqEqHqHqCYR1QhR9Q5RTSKqET9RdZLxGr0nWP6hzaQKQ3UI89n6drSqeUhMqpgY+nVcb+ewnr2AmjLI+VqfMIDPue/HM5PoHrVmkKMKnnixnB90krqbTb4q0OuTn1guJVaqAFd8GIY4ef4Msvqnhv0iYqv6Bojq+3G//wN9rsRvy4i5OAAAAABJRU5ErkJggg==&#39;;const dirBtn=makeButtonImage(&#39;direction-toggle-button&#39;,&#39;החלף כיוון כתיבת טקסט&#39;,imgPromptDir,&#39;direction&#39;,toggleDirection);const markdownBtn=makeButtonImage(&#39;markdown-toggle-button&#39;,&#39;החלף כיוון הצגת תשובות&#39;,imgMarkdownDir,&#39;markdown&#39;,toggleMarkdownDirection);let btnGroup;function createButtons(){if(!btnGroup){btnGroup=document.createElement(&#39;div&#39;);btnGroup.id=&#39;custom-btn-group&#39;;btnGroup.style.cssText=&#39;position:absolute;display:flex;gap:10px;z-index:99999;&#39;;[dirBtn,markdownBtn].forEach(btn=&gt;btnGroup.appendChild(btn));document.body.appendChild(btnGroup);}const textarea=document.querySelector(&#39;#prompt-textarea&#39;);if(!textarea)return;textarea.style.direction=textareaDirection;const rect=textarea.getBoundingClientRect();const newTop=rect.top+window.scrollY-10;const newLeft=rect.left+rect.width+110;if(btnGroup.dataset.top!=newTop||btnGroup.dataset.left!=newLeft){btnGroup.dataset.top=newTop;btnGroup.dataset.left=newLeft;[dirBtn,markdownBtn].forEach(btn=&gt;{btn.style.transform=&#39;translateY(0)&#39;;/**/});}btnGroup.style.top=newTop+&#39;px&#39;;btnGroup.style.left=newLeft+&#39;px&#39;;}/**/ createButtons();window.addEventListener(&#39;scroll&#39;,createButtons);window.addEventListener(&#39;resize&#39;,createButtons);const observer=new MutationObserver(createButtons);observer.observe(document.body,{childList:true,subtree:true});})();
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p/&gt;
ניתן גם להעתיק את הקוד מאתר 
&lt;a href=&quot;https://github.com/snirex/chatgpt-hebrew-rtl/blob/main/bookmarklet.js&quot;&gt;Github&lt;/a&gt;
שלי



&lt;!-- CREATE GOOGLE CHROME TEMP EXTENSION --&gt;
&lt;div style=&quot;display: none;&quot;&gt;
&lt;u&gt;דרך שניה&lt;/u&gt;
&lt;p/&gt;
 
&lt;!--קוד JavaScript להעתקה--&gt;
&lt;b&gt;&lt;u&gt;תוסף לדפדפן גוגל כרום&lt;/u&gt;&lt;/b&gt;
&lt;br/&gt;

&lt;div&gt;&lt;b&gt;יש ליצור תיקיה חדשה ולשמור בתוכה את הקבצים הבאים:&lt;/b&gt;&lt;/div&gt;
&lt;ol&gt;&lt;li&gt;manifest.json
  	&lt;div id=&quot;div_manifest&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; text-align: left; height: 100px; overflow-y: scroll;&quot;&gt;
    	&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;{
  &quot;manifest_version&quot;: 3,
  &quot;name&quot;: &quot;כיוון כתיבת עברית ב-ChatGPT&quot;,
  &quot;version&quot;: &quot;1.2&quot;,
  &quot;author&quot;: &quot;Snir Elgabsi&quot;,
  &quot;description&quot;: &quot;הוספת תפריט קטן לשינוי כיוון כתיבה ב-ChatGPT&quot;,
  &quot;icons&quot;: {
    &quot;16&quot;: &quot;icon.png&quot;,
    &quot;48&quot;: &quot;icon.png&quot;,
    &quot;128&quot;: &quot;icon.png&quot;
  },
  &quot;content_scripts&quot;: [
    {
      &quot;matches&quot;: [
        &quot;https://chat.openai.com/*&quot;,
        &quot;https://chatgpt.com/*&quot;
      ],
      &quot;js&quot;: [
        &quot;content.js&quot;
      ]
    }
  ],
  &quot;permissions&quot;: [],
  &quot;host_permissions&quot;: [
    &quot;https://chat.openai.com/*&quot;
    &quot;https://chatgpt.com/*&quot;
  ]
}&lt;/code&gt;&lt;/pre&gt;
  	&lt;/div&gt;
      &lt;a href=&quot;javascript:copyText(&#39;div_manifest&#39;,&#39;manifest.json&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הקוד&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    content.js
    &lt;br /&gt;
    &lt;div id=&quot;div_content&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; direction: ltr; text-align: left; height: 100px; overflow-y: scroll;&quot;&gt;
      &lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;javascript:(function(){
let textareaDirection = localStorage.getItem(&#39;snir-textarea-direction&#39;) || &#39;rtl&#39;;

function toggleDirection(){
  textareaDirection = textareaDirection === &#39;rtl&#39; ? &#39;ltr&#39; : &#39;rtl&#39;;
  localStorage.setItem(&#39;snir-textarea-direction&#39;, textareaDirection);
  const textarea = document.querySelector(&#39;#prompt-textarea&#39;);
  if(textarea){ textarea.style.direction = textareaDirection; }
  const img = document.querySelector(&#39;#direction-toggle-button img&#39;);
  if(img){ img.style.transform = textareaDirection === &#39;ltr&#39; ? &#39;scaleX(-1)&#39; : &#39;scaleX(1)&#39;; }
}

function toggleMarkdownDirection(){
  const markdowns=document.querySelectorAll(&#39;.markdown&#39;);
  markdowns.forEach(el=&gt;{el.dir=el.dir===&#39;rtl&#39;?&#39;ltr&#39;:&#39;rtl&#39;;});
  const img=document.querySelector(&#39;#markdown-toggle-button img&#39;);
  if(img){img.style.transform=img.style.transform===&#39;scaleX(-1)&#39;?&#39;scaleX(1)&#39;:&#39;scaleX(-1)&#39;;}
}

function toggleWhitespaceStyle(){
  document.querySelectorAll(&#39;.whitespace-pre-wrap&#39;).forEach(el=&gt;{
    const isActive=el.classList.contains(&#39;styled-q&#39;);
    if(isActive){
      el.classList.remove(&#39;styled-q&#39;);
      el.style.border=&#39;&#39;;el.style.borderRadius=&#39;&#39;;el.style.background=&#39;&#39;;
    }else{
      el.classList.add(&#39;styled-q&#39;);
      el.style.border=&#39;2px solid red&#39;;
      el.style.borderRadius=&#39;10px&#39;;
      el.style.boxShadow=&#39;0 0 8px 2px red&#39;;
      el.style.padding=&#39;5px&#39;;
    }
  });
}

function jumpToNext(){	
  const messages = document.querySelectorAll(&#39;[data-message-author-role]&#39;);
  let current = [...messages].findIndex(m =&gt; m.getBoundingClientRect().top &gt; 100);
  if (current !== -1 &amp;&amp; messages[current]) {
    messages[current].scrollIntoView({behavior: &#39;smooth&#39;, block: &#39;start&#39;});
  }
}

function jumpToPrevious() {
  const messages = [...document.querySelectorAll(&#39;[data-message-author-role]&#39;)];
  if (messages.length === 0) return;
  let index = messages.findIndex(m =&gt; m.getBoundingClientRect().top &gt;= 10);
  if (index === -1) index = messages.length;
  if (index &gt; 0) {
    messages[index - 1].scrollIntoView({ behavior: &#39;smooth&#39;, block: &#39;start&#39; });
  }
}

function toggleQButtonGlow(){
  const qButton=document.querySelector(&#39;#q-style-toggle-button&#39;);
  if(!qButton)return;
  const glowing=qButton.classList.toggle(&#39;glowing-q&#39;);
  if(glowing){qButton.style.boxShadow=&#39;0 0 10px 4px yellow&#39;;}
  else{qButton.style.boxShadow=&#39;0 2px 6px rgba(0,0,0,0.2)&#39;;}
}

function createTooltip(btn){
  let tooltip = document.createElement(&#39;div&#39;);
  tooltip.textContent = &#39;Snir Elgabsi&#39;;
  tooltip.style.cssText = `
    position:absolute;
    bottom:120%;
    left:50%;
    transform:translateX(-50%) scale(0.5);
    padding:5px 10px;
    background:rgba(0,0,0,0.7);
    color:white;
    border-radius:6px;
    font-size:0.9rem;
    opacity:0;
    transition:opacity 0.3s ease, transform 0.3s ease;
    pointer-events:auto;
    cursor:pointer;
    z-index:10000;
    white-space:nowrap;
  `;
  tooltip.onclick = () =&gt; {
    window.open(&#39;https://snir.blogspot.com&#39;, &#39;_blank&#39;);
  };
  btn.appendChild(tooltip);
  setTimeout(() =&gt; {
    tooltip.style.opacity = &#39;1&#39;;
    tooltip.style.transform = &#39;translateX(-50%) scale(1)&#39;;
  }, 500);
  setTimeout(() =&gt; {
    tooltip.style.opacity = &#39;0&#39;;
    tooltip.style.transform = &#39;translateX(-50%) scale(0.5)&#39;;
    setTimeout(() =&gt; {
      if (tooltip.parentElement) {
        tooltip.remove();
      }
    }, 300);
  }, 5030);
  btn._tooltip = tooltip;
}

function removeTooltip(btn){
  if(btn._tooltip){
    btn._tooltip.style.opacity=&#39;0&#39;;
    btn._tooltip.style.transform=&#39;translateX(-50%) scale(0.5)&#39;;
    setTimeout(()=&gt;{if(btn._tooltip){btn._tooltip.remove();btn._tooltip=null;}},300);
  }
}

function addTooltipEvents(btn){
  let hoverTimeout=null;
  let leaveTimeout=null;
  btn.addEventListener(&#39;mouseenter&#39;,()=&gt;{
    clearTimeout(leaveTimeout);
    hoverTimeout=setTimeout(()=&gt;createTooltip(btn),1500);
  });
  btn.addEventListener(&#39;mouseleave&#39;,()=&gt;{
    clearTimeout(hoverTimeout);
    leaveTimeout=setTimeout(()=&gt;removeTooltip(btn),1000);
  });
}

function makeButtonImage(id,title,imgSrc,imgAlt,clickHandler){
  const btn=document.createElement(&#39;button&#39;);
  btn.id=id;
  btn.title=title;
  btn.style.cssText=&#39;width:2.2rem;height:2.2rem;border-radius:50%;background:white;color:black;border:1px solid lightgray;font-size:1.2rem;box-shadow:0 2px 6px rgba(0,0,0,0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;position:relative;&#39;;
  btn.onmouseover=()=&gt;btn.style.backgroundColor=&#39;#f0f0f0&#39;;
  btn.onmouseout=()=&gt;btn.style.backgroundColor=&#39;white&#39;;
  btn.onclick=(e)=&gt;{e.preventDefault();clickHandler();};
  const img=document.createElement(&#39;img&#39;);
  img.src=imgSrc;
  img.alt=imgAlt;
  img.style.cssText=&#39;width:1.5rem;height:1.5rem;object-fit:contain;pointer-events:none;&#39;;
  btn.appendChild(img);
  addTooltipEvents(btn);
  return btn;
}

// BASE64 images:
const imgPromptDir = &#39;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD/UExURenp6c7OzrKysnl5eVZWVpOTkwAAAAEBAaGhoW1tbQMDA5ycnI2NjVtbW8bGxsjIyMrKyrGxscXFxd3d3dLS0ubm5ujo6IuLi3d3d+Li4uTk5E1NTezs7CYmJicnJ1BQUI6OjtXV1ZKSknZ2dpqamgICAt/f36ampnJyclxcXDk5OaqqqrCwsK+vr7+/v66urnR0dMPDw29vb+7u7rW1tSwsLIWFhUJCQkRERMTExNTU1AYGBsfHx3FxcWtra8nJybOzswQEBE5OTjMzM6mpqa2trdzc3OXl5UxMTKWlpUtLS52dnUlJSZ6enuPj40hISMvLy0ZGRqSkpOvr6wAAAKVmCqgAAABVdFJOU////////////////////////////////////////////////////////////////////////////////////////////////////////////////wCwoQfPAAAACXBIWXMAAA7BAAAOwQG4kWvtAAAAGHRFWHRTb2Z0d2FyZQBQYWludC5ORVQgNS4xLjgbaeqoAAAAtmVYSWZJSSoACAAAAAUAGgEFAAEAAABKAAAAGwEFAAEAAABSAAAAKAEDAAEAAAACAAAAMQECABAAAABaAAAAaYcEAAEAAABqAAAAAAAAANl2AQDoAwAA2XYBAOgDAABQYWludC5ORVQgNS4xLjgAAwAAkAcABAAAADAyMzABoAMAAQAAAAEAAAAFoAQAAQAAAJQAAAAAAAAAAgABAAIABAAAAFI5OAACAAcABAAAADAxMDAAAAAA5X1phWJRlb4AAAFhSURBVEhL5ZRXV8JAEIUpurEiorGAHdGIxoYo9i5WbPP/f4uzmZFkl6xsXuV7yHLP3C9kYU9SkJh/rqTSmWyfQponRKfSLxBHXtoM8IjoUAa5PxSUHUeGYZ4RujLCXSFGc2P5cVwz+cIEDwlNmaS6JIvRxXWKJiGaMh3uYgbjLK5FmoRoSonqEktlbp7qEltlgeoS2wdbpLrEVllKvv1lqktsFVhp/5XWCpR/D5i9AquBUEmiwNq6t1FN9C0Bm8mVreSK36vKtievO0Ls4mKl7AmxXwM4qFcPMRWPGg2XBiGacoy3FSccDKhKQRp5DiYUxcpQlBwKpwUOZiLKmTzy9bJ3HsfFJbeiCv6gFe31HeWKa1GlVhLXfyg+15QHc2/Qub3L+HHcP3BL3X7zEe/2xMFMVIHmMzovHIwoChRf0XnjYEJVoPWOzgcHA5oCrU/xxR9N6Ap8dzmUMUp3eloB+AGGLqjp2OH2dAAAAABJRU5ErkJggg==&#39;;
  const imgMarkdownDir = &#39;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAIAAAAByLdKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALeSURBVHhe7ZsxjuIwFIZTU+0RKLkBJWlX4gLT0SPtDZBAokFcAYFoqaDZFiqQQKKAHi5ARUvB/orfWCSZOF7ivDHM+ypiXvL7ix2HSCG4/xhE9R2xVV0ul61Wq1qtBiyEYXg+nynbEVaqCKYuMILT6tY2XzXtiU6UCsW4ts1R7Xa7FBsE+Ox8UqXBZUJ5EQ5tTarIoMAgwLVKrSWTUAWubE2qk8lEhWE8qal8tCpC9WR2YmtS1bP3W1Qxj4BDW5PqYyo1lU8i1KGt76rAle0LqAIntq+hCorbvowqKGj7SqqgiK2/qrirU1Ocp229U9W/W5BOTSmes/VOFVkqFBgcnrD1ThVoB/NT6//a+qiKTmsHAGH05Esey3JtfVQFjyNmj/m3uqeqAEOUGLdcUE87f4W/qhqkA6zMWegnsJdXzQXdU/0UVUJUI0TVO0Q1iahGiGqMTqdTq9VQ87s0cHBEIIgiU3CojkYjVcAD4ig4Dofq4XBQBTwcj0cKjsOhCi6Xy5oFBFFkCiZVHxDVJKIakat6vV7VnYaBRqOBOAqOw6E6GAxUAQ+Io+A4HKq3263ZbKoazS9H0OE+QRDiKDgOh6oniGoSUY2wUT2dTn9ZQBBFpuBQ3W63qoAHxFFwHA7V6XSqCnhAHAXH4VAFw+GwXq+j5qM0cHBEIIgiUzCp+oCoJhHVCBvV8Xj8x5per0e7RUsaWjabDW0XgEN1NpupAnva7TZ2nM/ntB0EWc8r9nCorlYrVWBPv9/Hjuv1Wm1WKhV1qCJwqILdboepaMlisaDd7vf9fo+W4kMKmFR9QFSTiGqEqHqHqCYR1QhR9Q5RTSKqET9RdZLxGr0nWP6hzaQKQ3UI89n6drSqeUhMqpgY+nVcb+ewnr2AmjLI+VqfMIDPue/HM5PoHrVmkKMKnnixnB90krqbTb4q0OuTn1guJVaqAFd8GIY4ef4Msvqnhv0iYqv6Bojq+3G//wN9rsRvy4i5OAAAAABJRU5ErkJggg==&#39;;
  const imgPrevBtn=&#39;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCA1LjEuOBtp6qgAAAC2ZVhJZklJKgAIAAAABQAaAQUAAQAAAEoAAAAbAQUAAQAAAFIAAAAoAQMAAQAAAAIAAAAxAQIAEAAAAFoAAABphwQAAQAAAGoAAAAAAAAAYAAAAAEAAABgAAAAAQAAAFBhaW50Lk5FVCA1LjEuOAADAACQBwAEAAAAMDIzMAGgAwABAAAAAQAAAAWgBAABAAAAlAAAAAAAAAACAAEAAgAEAAAAUjk4AAIABwAEAAAAMDEwMAAAAACrgCETU544KAAAAeNJREFUaEPtmbtKxEAUhuMFLdRCsRC0ULQTES+VD2Bhr2AraKGljbYWXrASwdY3UAQbKxFRbFwrURCx9gFEK/U/mUmY7CaTEHLM7Ho++DgzG5Ldk7lkZ+IJgpCbHngM7+E6fVCPUBK38MdwD2ahT8c/pUlHk254Dmf8WhRKZkMVE5mCczDu2kWypWMslMQNNFui2l1oYwLGnVe0iWRJInAHJkEtEndO0UYImt/WnZKgltlUxQiDcBs2w5ovLJBFHUN64R2szjiL+9AJ6K61wg6/pn4c8QKfVDHkCn6qYkhwnjPQlFmBlMgbHIZnuh64BBeM+iF0kgF4Asf8muddQDORVUiswANVrA+SEnESGiMNge3pSy0yq4o+a/BIFa20wX5VZIXGcghHIuPwGrZA6pJcdOqYSt4xMgnN87iMwDFGvuEH/IL03OEyAkfXaoc0lXPzqmMqMv2WgSTiGpKIa3BMv0OQVo/cN2lex1TyTr+lrNmla1mg1eYytF27CKz7WibyZC8DScQ1JBHX4Jh+u+A0pGvXPLgK5FLHVPJOvw2zZi8Fjq41Ck8h93bQiI4+HIlQK9MGBDc1OylJyF+UMrAlQi+ATKjPO4stkWf4CB8gvb16h85iG+x0zDwejBVB+D943i8TrRfXoZttJgAAAABJRU5ErkJggg==&#39;;  
  const imgNextBtn=&#39;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCA1LjEuOBtp6qgAAAC2ZVhJZklJKgAIAAAABQAaAQUAAQAAAEoAAAAbAQUAAQAAAFIAAAAoAQMAAQAAAAIAAAAxAQIAEAAAAFoAAABphwQAAQAAAGoAAAAAAAAAYAAAAAEAAABgAAAAAQAAAFBhaW50Lk5FVCA1LjEuOAADAACQBwAEAAAAMDIzMAGgAwABAAAAAQAAAAWgBAABAAAAlAAAAAAAAAACAAEAAgAEAAAAUjk4AAIABwAEAAAAMDEwMAAAAACrgCETU544KAAAAfhJREFUaEPtmc0rBVEYhweFBYWVYkFhI8nHirKRjT1lLQskCytbC9mJIks7SxtZKUl3y4IUJf4JHwvh95tzzu3MnWvmds1rZnKeenrfubeZO+89Z87MOeM5HDLU6FgOfmd//6XNHQfwFl7BOzgLc8kFNK1AV2AltOv4p0R1rTM4qVKfZbiv0khG4DSMOnYSbOgYCwuxW2QJVsIQtPeTMkCtjkkiccxYJLpWF9yELCj0zyXInI6xVNu1UiGVbiCBKyRruEKyhsTwWw87VCrKk44+EoUMwktYByXvI006xlLtfWQY2vtJGUDiGvmEL/AdvgkaQKJrNcBOlYryqGMs7hElDVwhWcMVkjUkht9uuAWl/6QZHWOpdvjlKoq9n5QBXNeKgAt0CzDq2Ekgvq6VCm74zRr/shDpi/dX2IVwDnEMB/yt8ImbsXsRbqs0O5iT5ZB5CrmS/gyn4A7k6wHDPHyFR/6W5+3CVZUGaIajkMcO3bgS5FzHIiziBvJHOU1lfID3OjfyxQ+nmPZne7CU1ObsH5BzbGJaqBf2qbTIBGxUaRG2UCYwJ94CT+C4v1UZfDBcV2mAfshrTXo5qEdHH/uCboUsZszfiuanIghbmQsQ0oRWUmxYTAGW9kdbFpELoorJTRGGcsXkrghDGzyE13CNHzgcjrzied8Om+958SArgwAAAABJRU5ErkJggg==&#39;;

// כפתורים:
const dirBtn = makeButtonImage(&#39;direction-toggle-button&#39;, textareaDirection===&#39;rtl&#39;?&#39;כיוון כתיבה מימין לשמאל - Ctrl+Shift&#39;:&#39;כיוון כתיבה משמאל לימין - Ctrl+Shift&#39;, imgPromptDir, &#39;כיוון כתיבה&#39;, toggleDirection);
dirBtn.querySelector(&#39;img&#39;).style.transform = textareaDirection === &quot;ltr&quot; ? &quot;scaleX(-1)&quot; : &quot;scaleX(1)&quot;;

const mdBtn = makeButtonImage(&#39;markdown-toggle-button&#39;, &#39;החלף כיוון כתיבה של התשובות&#39;, imgMarkdownDir, &#39;כיוון תשובות&#39;, toggleMarkdownDirection);

const qBtn=document.createElement(&#39;button&#39;);
qBtn.id=&#39;q-style-toggle-button&#39;;
qBtn.title=&#39;הפעל/בטל עיצוב על whitespace-pre-wrap&#39;;
qBtn.textContent=&#39;Q&#39;;
qBtn.style.cssText=dirBtn.style.cssText;
qBtn.onclick=(e)=&gt;{e.preventDefault();toggleWhitespaceStyle();toggleQButtonGlow();};
addTooltipEvents(qBtn);

const nextBtn=makeButtonImage(&#39;next-snir-button&#39;,&#39;קפוץ לשאלה הבאה - Alt+↓&#39;,imgNextBtn,&#39;קפוץ לשאלה הבאה&#39;,jumpToNext);
const prevBtn=makeButtonImage(&#39;prev-snir-button&#39;,&#39;קפוץ לשאלה הקודמת - Alt+↑&#39;,imgPrevBtn,&#39;קפוץ לשאלה הקודמת&#39;,jumpToPrevious);

// יצירת כפתורים
function createButtons(){
  if(document.querySelector(&#39;#direction-toggle-button&#39;)) return;

  const textarea=document.querySelector(&#39;#prompt-textarea&#39;);
  const buttonContainer=textarea?.closest(&#39;form&#39;)?.querySelector(&#39;div.flex &gt; div.flex&#39;);
  if(!textarea||!buttonContainer) return;

  let btnGroup=document.querySelector(&#39;#custom-btn-group&#39;);
  if(!btnGroup){
    btnGroup=document.createElement(&#39;div&#39;);
    btnGroup.id=&#39;custom-btn-group&#39;;
    btnGroup.style.cssText=&#39;position:absolute;bottom:13px;right:95px;display:flex;gap:10px;z-index:9999;&#39;;
    buttonContainer.style.position=&#39;relative&#39;;
    buttonContainer.appendChild(btnGroup);
  }

  btnGroup.appendChild(prevBtn);
  btnGroup.appendChild(nextBtn);
  btnGroup.appendChild(mdBtn);
  btnGroup.appendChild(dirBtn);

  // החלת כיוון כתיבה מה־localStorage
  if (textarea) {
    textarea.style.direction = textareaDirection;
    const img = dirBtn.querySelector(&#39;img&#39;);
    if (img) img.style.transform = textareaDirection === &#39;ltr&#39; ? &#39;scaleX(-1)&#39; : &#39;scaleX(1)&#39;;
  }
}

document.addEventListener(&#39;keydown&#39;, function (e) {
  if (e.key === &#39;ArrowUp&#39; &amp;&amp; e.altKey) {
    e.preventDefault();
    jumpToPrevious();
  }
  if (e.key === &#39;ArrowDown&#39; &amp;&amp; e.altKey) {
    e.preventDefault();
    jumpToNext();
  }
  if(e.ctrlKey &amp;&amp; e.shiftKey &amp;&amp; !e.altKey) {
    e.preventDefault();
    toggleDirection();
  }
});

const observer=new MutationObserver(()=&gt;{createButtons();});
observer.observe(document.body,{childList:true,subtree:true});
createButtons();
})();
    

&lt;/code&gt;&lt;/pre&gt;
    &lt;/div&gt;
    &lt;a href=&quot;javascript:copyText(&#39;div_content&#39;,&#39;content.js&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הקוד&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    שמור את התמונה הבאה בשם icon.png&amp;nbsp;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLm-V805V5Ia1KRAu1sXMrw1NVfRgoPwwjgOEQxKMNFCfhtpw1aL1kRgMU-wvU5k6qsYJ_RFz62MguU6TU7aSQIVUvl18TzvWPxYPyy-rVl0BX1W2hJF8XLF6GjmzKKOFRgHKyqPuTLPWN-iUvAMPkMcLEExFL_VcDRSua7xgLcXAf4YW4zqxhrJ0y46Y/s128/icon.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;128&quot; data-original-width=&quot;128&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLm-V805V5Ia1KRAu1sXMrw1NVfRgoPwwjgOEQxKMNFCfhtpw1aL1kRgMU-wvU5k6qsYJ_RFz62MguU6TU7aSQIVUvl18TzvWPxYPyy-rVl0BX1W2hJF8XLF6GjmzKKOFRgHKyqPuTLPWN-iUvAMPkMcLEExFL_VcDRSua7xgLcXAf4YW4zqxhrJ0y46Y/s1600/icon.png&quot; width=&quot;128&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
    &lt;u&gt;&lt;b&gt;התוסף מוכן, כעת נפעיל אותו ע&quot;י הדפדפן:&lt;/b&gt;&lt;/u&gt;
  &lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
  &lt;li&gt;
    פתח את Chrome.
  &lt;/li&gt;
  &lt;li&gt;
    :עבור לכתובת
    &lt;div id=&quot;div_chrome&quot;&gt;&lt;b&gt;chrome://extensions&lt;/b&gt;
    &lt;br /&gt;
    (&lt;a href=&quot;javascript:copyText(&#39;div_chrome&#39;,&#39;chrome://extensions&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הכתובת&lt;/a&gt;)
    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
  הפעל את Developer mode (בצד ימין למעלה).
  &lt;/li&gt;
  &lt;li&gt;
    לחץ על Load unpacked ובחר את התיקייה עם הקבצים שלך.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/8139203434267353129/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2025/03/chatgpt-fix.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8139203434267353129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8139203434267353129'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2025/03/chatgpt-fix.html' title='ChatGPT - תיקון ימין-שמאל בכתיבת עברית'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMLm-V805V5Ia1KRAu1sXMrw1NVfRgoPwwjgOEQxKMNFCfhtpw1aL1kRgMU-wvU5k6qsYJ_RFz62MguU6TU7aSQIVUvl18TzvWPxYPyy-rVl0BX1W2hJF8XLF6GjmzKKOFRgHKyqPuTLPWN-iUvAMPkMcLEExFL_VcDRSua7xgLcXAf4YW4zqxhrJ0y46Y/s72-c/icon.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-8342695203558199544</id><published>2024-07-16T14:42:00.010+03:00</published><updated>2025-05-12T17:24:35.327+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="admin"/><category scheme="http://www.blogger.com/atom/ns#" term="Win8"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="תכנות #C"/><title type='text'>c# החלפת משתמש בווינדוס / נעילת המחשב</title><content type='html'>  &lt;!-- Prism.js CSS --&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot; /&gt;

&lt;!-- Prism.js JS --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-csharp.min.js&quot;&gt;&lt;/script&gt;

&lt;div id=&quot;div2&quot; style=&quot;background: #f5f2f0; border: 1px solid black; direction: ltr; text-align: left;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;
[DllImport(&quot;user32.dll&quot;)]
public static extern void LockWorkStation();

// The function to switch user/lock the computer
void foo() { LockWorkStation(); } 
  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/8342695203558199544/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2024/07/lock-workstation.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8342695203558199544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8342695203558199544'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2024/07/lock-workstation.html' title='c# החלפת משתמש בווינדוס / נעילת המחשב'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-4992056564664459909</id><published>2024-04-11T16:15:00.003+03:00</published><updated>2024-04-11T18:57:00.067+03:00</updated><title type='text'>merge multiple docx</title><content type='html'>&lt;p&gt;&amp;nbsp;בשביל לחבר קבצי docx צריך להוסיף reference לקבצים הבאים:&lt;/p&gt;&lt;p&gt;חלון Solution Explorer &amp;gt; לחיצה ימנית על References &amp;gt; לחיצה על Add References&lt;/p&gt;&lt;p&gt;להוריד NuGet או&amp;nbsp;&lt;a href=&quot;https://docs.telerik.com/devtools/wpf/getting-started/installation/installation-installing-which-file-do-i-need&quot; target=&quot;_blank&quot;&gt;מהאינטרנט&lt;/a&gt;&amp;nbsp;את הקבצים ולהוסיף:&lt;/p&gt;&lt;p style=&quot;direction: ltr; text-align: left;&quot;&gt;Telerik.Windows.Documents.Flow.dll&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;direction: rtl;&quot;&gt;&lt;u&gt;קוד C#:&lt;/u&gt;&lt;/p&gt;&lt;p style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;
  void &lt;/span&gt;MergeDocx(List&amp;lt;string&amp;gt; files, string result_file)&lt;br /&gt;
    {
    &lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp;RadFlowDocument &lt;/span&gt;target = &lt;span style=&quot;color: #2b00fe;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0b5394;&quot;&gt;RadFlowDocument&lt;/span&gt;();
      &lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp;RadFlowDocument &lt;/span&gt;source = &lt;span style=&quot;color: #2b00fe;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0b5394;&quot;&gt;RadFlowDocument&lt;/span&gt;();
        &lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp;DocxFormatProvider &lt;/span&gt;provider = &lt;span style=&quot;color: #2b00fe;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #0b5394;&quot;&gt;DocxFormatProvider&lt;/span&gt;();
          &lt;br /&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp; &amp;nbsp;for &lt;/span&gt;(&lt;span style=&quot;color: #2b00fe;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt; file.Count; i++)
  &lt;br /&gt;&amp;nbsp; {
&lt;br /&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;using&lt;/span&gt;(&lt;span style=&quot;color: #9fc5e8;&quot;&gt;Stream&lt;/span&gt; input = &lt;span style=&quot;color: #6fa8dc;&quot;&gt;File&lt;/span&gt;.OpenRead(files[i]))
    &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; target.Merge(provider.Import(input));&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;&amp;nbsp; &amp;nbsp;byte&lt;/span&gt;[] ba = provider.Export(target);&lt;br /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp;File&lt;/span&gt;.WriteAllBytes(result_file, ba);&lt;br /&gt;&amp;nbsp;}&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/4992056564664459909/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2024/04/merge-multiple-docx.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/4992056564664459909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/4992056564664459909'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2024/04/merge-multiple-docx.html' title='merge multiple docx'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-1455565076518452107</id><published>2024-04-11T16:05:00.001+03:00</published><updated>2024-04-11T16:05:33.918+03:00</updated><title type='text'>convert docx to pdf telerik</title><content type='html'>&lt;p&gt;&amp;nbsp;בשביל להמיר docx ל-pdf צריך להוסיף reference לקבצים הבאים:&lt;/p&gt;&lt;p&gt;חלון Solution Explorer &amp;gt; לחיצה ימנית על References &amp;gt; לחיצה על Add References&lt;/p&gt;&lt;p&gt;להוריד NuGet או &lt;a href=&quot;https://docs.telerik.com/devtools/wpf/getting-started/installation/installation-installing-which-file-do-i-need&quot; target=&quot;_blank&quot;&gt;מהאינטרנט&lt;/a&gt; את הקבצים ולהוסיף:&lt;/p&gt;&lt;p style=&quot;direction: ltr; text-align: left;&quot;&gt;Telerik.Windows.Documents.Core.dll&lt;br /&gt;
  Telerik.Windows.Documents.Flow.dll&lt;br /&gt;
  Telerik.Windows.Documents.Flow.FormatProviders.Pdf.dll&lt;/p&gt;&lt;p style=&quot;direction: rtl; text-align: right;&quot;&gt;&lt;u&gt;קוד C#:&lt;/u&gt;&lt;/p&gt;
&lt;p style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;
  void &lt;/span&gt;ConvertDocxToPdf(&lt;span style=&quot;color: #2b00fe;&quot;&gt;string &lt;/span&gt; docxpath, &lt;span style=&quot;color: #2b00fe;&quot;&gt;string &lt;/span&gt; pdfpath)&lt;br /&gt;
    {&lt;br /&gt;
      &amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;var&lt;/span&gt; docxProvider = 
  new &lt;span style=&quot;color: #0b5394;&quot;&gt;DocxFormatProvider&lt;/span&gt;();&lt;br /&gt;
        &amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;var &lt;/span&gt;pdfProvider = new &lt;span style=&quot;color: #0b5394;&quot;&gt;PdfFormatProvider&lt;/span&gt;();&lt;br /&gt;
          &amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;byte&lt;/span&gt;[] docxByteArr = &lt;span style=&quot;color: #0b5394;&quot;&gt;File&lt;/span&gt;.ReadAllBytes(docxpath);&lt;br /&gt;
            &amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;var&lt;/span&gt; doc = docxProvider.Import(docxByteArr);&lt;br /&gt;
              &amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;byte&lt;/span&gt;[] resultPdfByteArr = pdfProvider.Export(doc);&lt;br /&gt;
                &amp;nbsp; &lt;span style=&quot;color: #0b5394;&quot;&gt;File&lt;/span&gt;.WriteAllBytes(pdfpath, resultPdfByteArr);
&lt;br /&gt;}&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/1455565076518452107/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2024/04/convert-docx-to-pdf-telerik.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/1455565076518452107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/1455565076518452107'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2024/04/convert-docx-to-pdf-telerik.html' title='convert docx to pdf telerik'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-2685520431033113394</id><published>2023-06-12T11:46:00.003+03:00</published><updated>2023-06-12T11:46:49.649+03:00</updated><title type='text'>Search in list</title><content type='html'>&lt;div style=&quot;direction: ltr;&quot;&gt;&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;חיפוש מחרוזת תווים בתוך מאגר מילים: - מיושם בתוכנת C# Winform:&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;List&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;string&lt;/span&gt;&amp;gt; listTemp = new List&amp;lt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;string&lt;/span&gt;&amp;gt;();&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;private void&lt;/span&gt; textBox1_TextChanged(&lt;span style=&quot;color: #2b00fe;&quot;&gt;object &lt;/span&gt;sender, EventArgs e)&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;var&lt;/span&gt; tmp = &lt;span style=&quot;color: #2b00fe;&quot;&gt;new&lt;/span&gt; List&amp;lt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;string&lt;/span&gt;&amp;gt;();&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp; //restore source list&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;if&lt;/span&gt; (textBox1.Text.Length == 0 || textBox1.Text.Length &amp;gt; 1)&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; richTextBox1.Text = String.Join(&quot; &quot;, listTemp);&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;if &lt;/span&gt;(textBox1.Text.Length &amp;gt; 0)&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; {&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp; &amp;nbsp; //copy from src to out-temp (happens only once)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;if&lt;/span&gt; (textBox1.text.Length == 1 &amp;amp;&amp;amp; listTemp.Count == 0)&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; listTemp = richTextBox1.Text.Split(&#39; &#39;).ToList();&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp; &amp;nbsp; //filter&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #2b00fe;&quot;&gt;foreach&lt;/span&gt; (&lt;span style=&quot;color: #2b00fe;&quot;&gt;string&lt;/span&gt; item &lt;span style=&quot;color: #2b00fe;&quot;&gt;in&lt;/span&gt; richTextBox1.Text.Split(&#39; &#39;).ToList())&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (item.Contains((textBox1.text))&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tmp.Add(item);&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; richTextBox1.Text = String.Join(&quot; &quot;, tmp);&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; }&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;}&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;span style=&quot;color: #2b00fe;&quot;&gt;private void&lt;/span&gt; richTextBox1_TextChanged(&lt;span style=&quot;color: #2b00fe;&quot;&gt;object&lt;/span&gt; sender, EventArgs e)&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;{&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; if (richTextBox1.Focused)&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; listTemp.Clear();&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;}&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/2685520431033113394/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2023/06/search-in-list.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/2685520431033113394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/2685520431033113394'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2023/06/search-in-list.html' title='Search in list'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-7581993403911082178</id><published>2022-11-28T18:38:00.019+02:00</published><updated>2025-06-25T10:41:13.112+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><category scheme="http://www.blogger.com/atom/ns#" term="תכנות #C"/><title type='text'>WPF - בחירת עמודות מטופס חיצוני - Column Chooser</title><content type='html'>&lt;p&gt;בשביל שימוש בפקדים של &lt;a href=&quot;https://www.google.com/search?q=download+Telerik.Windows.Controls&quot; target=&quot;_blank&quot;&gt;telerik&lt;/a&gt;&amp;nbsp;צריך להוסיף ref לקבצים:&lt;/p&gt;&lt;p style=&quot;direction: ltr; text-align: left;&quot;&gt;Telerik.Windows.Controls&lt;br /&gt;
  Telerik.Windows.Controls.GridView&lt;br /&gt;
  Telerik.Windows.Controls.Input&lt;br /&gt;
  Telerik.Windows.Data&lt;/p&gt;
&lt;p style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;a href=&quot;  https://www.telerik.com/blogs/how-to-column-chooser-for-radgridview-for-silverlight-and-wpf&quot; target=&quot;_blank&quot;&gt;&amp;nbsp; https://www.telerik.com/blogs/how-to-column-chooser-for-radgridview-for-silverlight-and-wpf&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;b&gt;&lt;u&gt;
  MainWindow.xaml&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;textarea style=&quot;height: 270px; margin: 0px; width: 550px;&quot;&gt;https://www.telerik.com/blogs/how-to-column-chooser-for-radgridview-for-
&lt;Window x:class=&quot;WpfColumnChooser.MainWindow&quot; 
  xmlns:telerik=&quot;http://schemas.telerik.com/2008/xaml/presentaion&quot;
...&gt;
&lt;DockPanel&gt;
  &lt;StackPanel&gt;
    &lt;Button Clic=&quot;Button_Click&quot; Content=&quot;DataGrid Column Chooser&quot; /&gt;
    &lt;DataGrid x:Name=&quot;datagrid&quot; /&gt;
  &lt;/StackPanel&gt;
  &lt;StackPanel&gt;
    &lt;Button Clic=&quot;Button_Click1&quot; Content=&quot;RadGridView Column Chooser&quot; /&gt;
    &lt;telerik:RadGridView x:Name=&quot;rgv&quot; /&gt;
  &lt;/StackPanel&gt;
&lt;/DockPanel&gt;
&lt;/Window&gt;
  &lt;/textarea&gt;&lt;br /&gt;
  &lt;b&gt;&lt;u&gt;MainWindowxaml.cs&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
  &lt;textarea style=&quot;height: 270px; margin: 0px; width: 550px;&quot;&gt;namespace WpfColumnChooser
{
  public partial class MainWindow:Window
  {
    public MainWindow()
    {
      InitializeComponent();
      datagrid.MyClass.GetList();
      rgv.MyClass.GetList();
    }

    private void Button_Click(object sender, RoutedEventArgs e)
    {  return new ColumnChooser(datagrid).Show(); }

    private void Button_Click1(object sender, RoutedEventArgs e)
    {  return new ColumnChooser(rgv).Show(); }
  }
}
&lt;/textarea&gt;&lt;br /&gt;
  &lt;b&gt;&lt;u&gt;dummy class&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
  &lt;textarea style=&quot;height: 270px; margin: 0px; width: 550px;&quot;&gt;class MyClass
{
  public int Id { get; set; }
  public string Name { get; set; }

  public static List&lt;MyClass&gt; GetList()
  {
    var list = new List&lt;MyClass();
    for(int i = 0; i &lt;= 100; i++)
    {
      list.Add(new MyClass { Id = i, Name = $&quot;Person {i}&quot; });
    }
    return list;
  }
}
&lt;/textarea&gt;&lt;br /&gt;
    &lt;b&gt;&lt;u&gt;VisisbilityToBoolConverter&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
  &lt;textarea style=&quot;height: 270px; margin: 0px; width: 550px;&quot;&gt;public class VisisbilityToBoolConverter : IValueConverter
{
  public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  {
    if ((Visibility)value == Visibility.Visible)
      return true;
    return false;
  }

  public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  {
    if (value == true)
      return Visibility.Visible;
    return Visibility.Collapsed;
  }
}
&lt;/textarea&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;ColumnChooser xaml page&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
 &lt;textarea style=&quot;height: 270px; margin: 0px; width: 550px;&quot;&gt;&lt;Window x:class=&quot;WpfColumnChooser.ColumnChooser&quot; 
  xmlns:telerik=&quot;http://schemas.telerik.com/2008/xaml/presentaion&quot;
  x:Name=&quot;This&quot;
...&gt;
&lt;Window.Resources&gt;
  &lt;Converter:VisisbilityToBoolConverter x:key=&quot;visToBoolConverter&quot; /&gt;
&lt;/Window.Resources&gt;
&lt;Grid&gt;
  &lt;ListBox ItemsSource=&quot;{Binding Columns}&quot;&gt;
    &lt;ListBox.ItemsTemplate&gt;
      &lt;DataTemplate&gt;
        &lt;StackPanel&gt;
          &lt;CheckBox Content=&quot;{Binding Header}&quot; IsChecked=&quot;{Binding IsVisible, Mode=TwoWay}&quot;
            Visibility=&quot;{Binding ElementName=This, Path=RadTreeListViewVisible}&quot; /&gt;
          &lt;CheckBox Content=&quot;{Binding Header}&quot; IsChecked=&quot;{Binding IsVisible, Mode=TwoWay}&quot;
            Visibility=&quot;{Binding ElementName=This, Path=RadGridViewVisible}&quot; /&gt;
          &lt;CheckBox Content=&quot;{Binding Header}&quot; IsChecked=&quot;{Binding IsVisible, Mode=TwoWay, Converter={StaticResource=visToBoolConverter}}&quot;
            Visibility=&quot;{Binding ElementName=This, Path=DataGridVisible}&quot; /&gt;
    &lt;/ListBox.ItemsTemplate&gt;
  &lt;/ListBox&gt;
&lt;/Grid&gt;
&lt;/Window&gt;
&lt;/textarea&gt;&lt;br /&gt;
  &lt;b&gt;&lt;u&gt;ColumnChooser xaml.cs page&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
  &lt;textarea style=&quot;height: 270px; margin: 0px; width: 550px;&quot;&gt;public partial class ColumnChooser : Window
{
  public Visibilty DataGridVisible { get; set; }
  public Visibilty RadGridViewVisible { get; set; }
  public Visibilty RadTreeListViewVisible { get; set; }

public DataGrid DataGridRef
{
  set
  {
    DataGridVisible = Visibility.Visible;
    RadTreeListViewVisible = Visibility.Collapsed;
    RadGridViewVisible = Visibility.Collapsed;
  }
}

public DataGrid RadGridViewRef
{
  set
  {
    DataGridVisible = Visibility.Collapsed;
    RadTreeListViewVisible = Visibility.Collapsed;
    RadGridViewVisible = Visibility.Visible;
  }
}

public DataGrid RadTreeListViewRef
{
  set
  {
    RadTreeListViewVisible = Visibility.Visible;
    RadGridViewVisible = Visibility.Collapsed;
    DataGridVisible = Visibility.Collapsed;
  }
}

// If choosing to make it Singleton form

private static ColumnChooser instance = null;
public static ColumnChooser Instance
{
  get
  {
    if (instance == null)
      instance = new ColumnChooser();
    return instance;
  }
}

static ColumnChooser() { } // lzay ctor
private ColumnChooser() // avoid init from outside
{
  InitializationComponent();
}

private This_Closing(object sender, CancelEventArgs e)
{
  instance.Visibilty = Visibility.Collapsed;
  e.Cancel = true;
}

// If choosing to make it regular form

//  //ctor 1
//  public ColumnChooser(RadGridView grid)
//  {
//    InitializeComponent();
//    DataGridVisisble = Visibilty.Collapsed;
//    this.DataContext = grid;
//  }

//  //ctor 2
//  public ColumnChooser(DataGrid grid)
//  {
//    InitializeComponent();
//    RadVisisble = Visibilty.Collapsed;
//    this.DataContext = grid;
//  }

}
  &lt;/textarea&gt;
&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/7581993403911082178/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2022/11/column-chooser-wpf.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/7581993403911082178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/7581993403911082178'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2022/11/column-chooser-wpf.html' title='WPF - בחירת עמודות מטופס חיצוני - Column Chooser'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-2273193200136683288</id><published>2022-05-16T10:20:00.009+03:00</published><updated>2022-05-18T00:11:20.467+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="הורדות"/><title type='text'>הורדה ישירה מחנות מיקרוסופט</title><content type='html'>1. צריך למצוא את האפליקציה שרוצים להוריד, ולהעתיק את id שלה.&amp;nbsp;&lt;div&gt;למשל עבור &lt;a href=&quot;https://apps.microsoft.com/store/detail/windbg-preview/9PGJGD53TN86&quot;&gt;WinDbg Preview&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;https://apps.microsoft.com/store/detail/windbg-preview/9PGJGD53TN86&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://miro.medium.com/max/480/1*Up_7MVDmOhVMWCLQjmvUmA.png&quot; style=&quot;transform: scaleX(-1); webkit-transform: scaleX(-1);&quot; width=&quot;16&quot; /&gt;&lt;/a&gt;&amp;nbsp; הכתובת היא:&lt;/div&gt;&lt;div&gt;https://apps.microsoft.com/store/detail/windbg-preview/&lt;b&gt;9PGJGD53TN86&lt;/b&gt;&lt;/div&gt;&lt;div&gt;הקוד הוא&amp;nbsp;&lt;b&gt;9PGJGD53TN86&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;2. ללכת לאתר: &lt;a href=&quot;https://store.rg-adguard.net&quot;&gt;https://store.rg-adguard.net&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;https://store.rg-adguard.net&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://miro.medium.com/max/480/1*Up_7MVDmOhVMWCLQjmvUmA.png&quot; style=&quot;transform: scaleX(-1); webkit-transform: scaleX(-1);&quot; width=&quot;16&quot; /&gt;&lt;/a&gt;&amp;nbsp; לבחור ברשימה הנפתחת את product id להזין שם הקוד שהעתקנו,וללחוץ v.&amp;nbsp;&lt;/div&gt;&lt;div&gt;כמה שניות והכתובות יופיעו.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;3. צריך להוריד קובץ appx&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. ע&quot;פ אתר &lt;a href=&quot;https://github.com/MicrosoftFeedback/WinDbg-Feedback/issues/19&quot;&gt;https://github.com/MicrosoftFeedback/WinDbg-Feedback/issues/19&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://github.com/MicrosoftFeedback/WinDbg-Feedback/issues/19&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://miro.medium.com/max/480/1*Up_7MVDmOhVMWCLQjmvUmA.png&quot; style=&quot;transform: scaleX(-1); webkit-transform: scaleX(-1);&quot; width=&quot;16&quot; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
צריך לעשות לקובץ unzip לתוך תיקיה ולהריץ את קובץ DbgX.Shell.exe&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5. ע&quot;פ אתר &lt;a href=&quot;https://digitalitskills.com/windbg-preview-download-and-install-without-ms-store/&quot;&gt;https://digitalitskills.com&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;https://digitalitskills.com/windbg-preview-download-and-install-without-ms-store/&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://miro.medium.com/max/480/1*Up_7MVDmOhVMWCLQjmvUmA.png&quot; style=&quot;transform: scaleX(-1); webkit-transform: scaleX(-1);&quot; width=&quot;16&quot; /&gt;&lt;/a&gt;&amp;nbsp; צריך להריץ PowerShell ולהתקין:&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;b&gt;PS C:\WINDOWS\System32\Add-AppxPackage -Path C:\windbg.appx&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/2273193200136683288/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2022/05/download-install-ms-store-apps.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/2273193200136683288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/2273193200136683288'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2022/05/download-install-ms-store-apps.html' title='הורדה ישירה מחנות מיקרוסופט'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-5807076441870336254</id><published>2022-01-30T15:33:00.002+02:00</published><updated>2022-01-30T15:33:26.735+02:00</updated><title type='text'>מיפוי כונן רשת לאות כונן במחשב</title><content type='html'>&lt;p&gt;&lt;u&gt;מיפוי כונן רשת - נעשה בעבר כדי למפות database מרוחק&lt;/u&gt;&lt;/p&gt;&lt;p&gt;* חשוב לוודא תקשורת בין שני המחשבים (בעזרת &lt;a href=&quot;https://he.wikipedia.org/wiki/%D7%A4%D7%99%D7%A0%D7%92&quot; target=&quot;_blank&quot;&gt;ping&lt;/a&gt;)&lt;/p&gt;&lt;p&gt;שלבים:&lt;/p&gt;&lt;p&gt;1. למצוא את כתובת ip של המחשב (עם database) - למשל 125.16.54.77&lt;/p&gt;
&lt;p&gt;2. לעשות מיפוי כונן רשת - לחיצה ימנית על סמל &#39;המחשב שלי&#39; &amp;gt;&amp;nbsp; בחירת אות כונן (למשל A:) &amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;לבחור ספריה בכונן הרשת שאנו רוצים, למשל:&lt;/p&gt;&lt;p&gt;\\125.16.54.77\d$\databases\&lt;/p&gt;&lt;p&gt;צריך לבחור ב-Connect using different Credntials אם רוצים להזין שםמשתמש וסיסמה לכונן.&lt;/p&gt;&lt;p&gt;3. לחיצה על Finish - אם סימנו V בסעיף הקודם, אז יפתח חלון Windows Security - נלחץ על More Choices - Use Different Accout ונזין את פרטי ההתחברות&lt;/p&gt;&lt;p&gt;4. כדי לנתקן מיפוי כונן - יש ללחוץ לחיצה ימנית על הכונן בחלון &#39;המחשב שלי&#39; &amp;gt; Disconnect network drive&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgFBD_gZDGq2W1PisYF-EhI2gVyc0T9Ugvlqs3MLKauJ8eWrvmrOvg2n0alrqC33GD_v16bkitVWtFgJY8pJIeiMybrFHBkmwTkqZCMczWwwSJThlMApzIrehypPyLUBQyr9ly0YkNd1Y1rjSErt7X-_sLF9u3kYsavVmwndTUHoLX7e9Eg_SBcgiOOOw&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;464&quot; data-original-width=&quot;623&quot; height=&quot;345&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgFBD_gZDGq2W1PisYF-EhI2gVyc0T9Ugvlqs3MLKauJ8eWrvmrOvg2n0alrqC33GD_v16bkitVWtFgJY8pJIeiMybrFHBkmwTkqZCMczWwwSJThlMApzIrehypPyLUBQyr9ly0YkNd1Y1rjSErt7X-_sLF9u3kYsavVmwndTUHoLX7e9Eg_SBcgiOOOw=w464-h345&quot; width=&quot;464&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/5807076441870336254/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2022/01/map-network-drive.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/5807076441870336254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/5807076441870336254'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2022/01/map-network-drive.html' title='מיפוי כונן רשת לאות כונן במחשב'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEgFBD_gZDGq2W1PisYF-EhI2gVyc0T9Ugvlqs3MLKauJ8eWrvmrOvg2n0alrqC33GD_v16bkitVWtFgJY8pJIeiMybrFHBkmwTkqZCMczWwwSJThlMApzIrehypPyLUBQyr9ly0YkNd1Y1rjSErt7X-_sLF9u3kYsavVmwndTUHoLX7e9Eg_SBcgiOOOw=s72-w464-h345-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-1220800581366050197</id><published>2022-01-11T12:51:00.012+02:00</published><updated>2025-06-25T10:43:04.879+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><category scheme="http://www.blogger.com/atom/ns#" term="תכנות #C"/><title type='text'>C# - Udp Server &amp; Client</title><content type='html'>  &lt;!-- Prism.js CSS --&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot; /&gt;

&lt;!-- Prism.js JS --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-csharp.min.js&quot;&gt;&lt;/script&gt;
 UDP Server:&lt;br /&gt;
&lt;/p&gt;&lt;div id=&quot;div2&quot; style=&quot;background: #f5f2f0; border: 1px solid black; direction: ltr; text-align: left;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;
  Thread trdServerUdp = 
     new Thread(new ThreadStart(serverThread));
  trdServerUdp.Start();
}

void ServerThread() {
  UdpClient server = new UdpClient(port);
  while (true) {
    IPEndPoint remoteIpep = new IPEndPoint(IPAddress.Parse(ip), port);
    byte[] receiveBytes = server.Receive(ref remoteIpep);
    string str = Encoding.ASCII.GetString(receiveBytes);
    Console.WriteLine($&quot;{remoteIpep}: {str}&quot;);
  }
}
  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

UDP Client:&lt;br /&gt;
&lt;/p&gt;&lt;div id=&quot;div2&quot; style=&quot;background: #f5f2f0; border: 1px solid black; direction: ltr; text-align: left;&quot;&gt;
  &lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;
  string ip = &quot;127.0.0.1&quot;;
  int port = 8080;

  string input;
  UdpClient client = new UdpClient();
  client.Connect(ip, port);

  byte[] data;
  while (true) {
    input = Console.ReadLine();
    if (input == &quot;exit&quot;) break;
    data = Encoding.ASCII.GetBytes(input);
    client.Send(data, data.Length);
  }
}
  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/1220800581366050197/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2022/01/udpserverclient.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/1220800581366050197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/1220800581366050197'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2022/01/udpserverclient.html' title='C# - Udp Server &amp; Client'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-8897281227188829832</id><published>2022-01-11T12:21:00.040+02:00</published><updated>2025-06-25T10:53:37.958+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><category scheme="http://www.blogger.com/atom/ns#" term="תכנות #C"/><title type='text'>C# - Tcp Server &amp; Client</title><content type='html'>&lt;script&gt;
function copyText(div_id,msg) {
    /* מקבל את אלמנט ה-div */
    var copyText = document.getElementById(div_id);

    /* יוצר אלמנט טקסט סמוי (ללא השפעה על הדף) */
    var textarea = document.createElement(&quot;textarea&quot;);
    textarea.textContent = copyText.textContent; // מעתיק את תוכן ה-div
    document.body.appendChild(textarea);

    /* בחר את הטקסט החדש שנוסף */
    textarea.select();
    textarea.setSelectionRange(0, 99999); // עבור דפדפנים ניידים

    /* מבצע את פעולת ההעתקה */
    document.execCommand(&quot;copy&quot;);

    /* מסיר את ה-textarea לאחר ההעתקה */
    document.body.removeChild(textarea);

    /* תראה הודעת הצלחה */
    alert(&quot;הטקסט &quot; + msg + &quot; הועתק לקליפבורד!&quot;);
}
&lt;/script&gt;

&lt;!-- Prism.js CSS --&gt;
&lt;link href=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css&quot; rel=&quot;stylesheet&quot; /&gt;

&lt;!-- Prism.js JS --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-csharp.min.js&quot;&gt;&lt;/script&gt;


קוד סרבר שמחכה עד שקליינט יתחבר, ואז מקבל הודעות ומחזיר אותן אל הקליינט:
&lt;p style=&quot;text-align: left;&quot;&gt;
TCP Server:&lt;br /&gt;
  &lt;div dir=&quot;ltr&quot; id=&quot;div_content1&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; text-align: left; height: 250px; overflow-y: scroll;&quot;&gt;
    &lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;void server_foo(){
  int port = 9050;
  int recv;
  byte[]data = new byte[1024];
  IPEndPoint ipep = new IPEndPoint(IPAdress.Any, port);
  Socket newsock = new Socket(AddressFamily.InterNetwork, 
                        SocketType.Stream,
                        ProtocolType.Tcp);

  newsock.Bind(ipep);
  newsock.Listen(10);

  Console.WriteLine(&quot;waiting for client...&quot;);
  Socket client = newsoc.Accept();

  IPEndPoint clientep = (IPEndPoint )client.RemoteEndPoint;
  Console.WriteLine($&quot;Connected with {clientep.Address} at port {clientep.Port}&quot;);
  data = Encoding.ASCII.GetBytes(&quot;[CONNECTED TO SERVER]&quot;);
  client.Send(data, data.Length, SocketFlag.None);

  while (true) {
     try {
        data = new byte[1024];
        recv = client.Receive(data);
        Console.WriteLine(Encoding.ASCII.GetString(data, 0, recv));
        if(recv == 0) break; // 0 == exit
        client.Send(data, recv, SocketFlags.None);
     }
     catch (Exception ex) {
        Console.WriteLine(ex.Message);
        Console.ReadLine();
        break;
     }
     finally {
        client.Close();
        newsock.Close();
     }
  }
  Console.WriteLine($&quot;Disconnected from {clientep.Address}:{clientep.Port}&quot;);
}
  &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
    &lt;a href=&quot;javascript:copyText(&#39;div_content1&#39;,&#39;&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הקוד&lt;/a&gt;
    &lt;br/&gt;
  &lt;p/&gt;
קוד קליינט שמנסה כל 5 שניות להתחבר:
&lt;p dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;
TCP Client:&lt;br/&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;div_content2&quot; style=&quot;background: rgb(245, 242, 240); border: 1px solid black; text-align: left; height: 250px; overflow-y: scroll;&quot;&gt;
    &lt;pre&gt;&lt;code class=&quot;language-csharp&quot;&gt;void client_foo(){
   byte[]data = new byte[1024];
   string input, stringData;
   IPEndPoint ipep = new IPEndPoint(IPAddress.Parse(ip), port);
   Socket server = new Socket(AddressFamily.InterNetwork, 
        SocketType.Stream,
        ProtocolType.Tcp);
  
  //try to connect:
  while (true) {
    try {
      server.Connect(ipep);
      Console.WriteLine(&quot;CONNECTED&quot;);
      break;
    }
    catch {
      //try to reconnect:
      Console.WriteLine(&quot;Unable to connect: &quot; + ex.Message);
      Console.WriteLine(&quot;Trying to reconnect in:&quot;);
  
      for (int i = 1; i &lt;= 5; i++) {
        Console.Write(i);
        Console.CursorLeft = 0;
        Thread.Sleep(1000);
      }
    }
  }

  // connected
  int recv = server.Receive(data);
  stringData = Encoding.ASCII.GetString(data, 0 ,recv);
  Console.WriteLine(stringData);
                            
  while (true) {
    input = Console.ReadLine();
    if (input == &quot;exit&quot;) break;

    // send message
    server.Send(Encoding.ASCII.GetBytes(input));
                            
    // get message back
    data = new byte[1024];
    recv = server.Receive(data);
    stringData = Encoding.ASCII.GetString(data, 0 ,recv);
    Console.WriteLine(stringData);
  }

  //close connection to server
  Console.WriteLine(&quot;Disconnected from server&quot;);
  server.Shutdown(SocketShutdown.Both);
  server.Close();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
  &lt;a href=&quot;javascript:copyText(&#39;div_content2&#39;,&#39;&#39;)&quot;&gt;לחץ כאן כדי להעתיק את הקוד&lt;/a&gt;
&lt;p/&gt;
</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/8897281227188829832/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2022/01/tcpserverclient.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8897281227188829832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8897281227188829832'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2022/01/tcpserverclient.html' title='C# - Tcp Server &amp; Client'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-6017103441062324031</id><published>2021-11-10T22:39:00.006+02:00</published><updated>2022-01-11T12:54:56.529+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>hack family safety lock</title><content type='html'>&lt;p&gt;איך לפרוץ את נעילת הגנת הורים של windows&lt;/p&gt;&lt;p&gt;כאשר החשבון נעול מפני מנגנון הגנת משפחה (Family Safety Monitor by Microsoft Corporation), ומאפשר למשל כניסה הבאה רק ב-8 בבוקר, ניתן לפרוץ אותו בדרך הבאה:&lt;/p&gt;&lt;p&gt;להדליק ולכבות את המחשב לפני שהוא נכנס ל-windwos מספר פעמים עד שהמחשב יעלה במצב לתיקון בעיות אתחול.&lt;/p&gt;&lt;p&gt;ניתן לראות הדגמה לכניסה למערכת הקבצים כאן:&lt;/p&gt;&lt;p&gt;https://www.youtube.com/watch?v=n7KEwXbFlIU&lt;/p&gt;&lt;p&gt;צריך להיכנס למערכת הקבצים ולשנות את שם הקובץ&amp;nbsp;&lt;/p&gt;&lt;p&gt;c:\windows\system32\&lt;a href=&quot;https://www.fileinspect.com/fileinfo/wpcmon-exe/&quot; target=&quot;_blank&quot;&gt;wpcmon.exe&lt;/a&gt;&lt;/p&gt;&lt;p&gt;לשם אחר - למשל להוסיף לשם הקובץ 1111&lt;/p&gt;&lt;p&gt;ואז להפעיל את המחשב מחדש.&lt;/p&gt;&lt;p&gt;הקובץ הזה הוא זה שמפעיל את מנגנון הגנת הורים, וכעת הוא לא יפעל בעליית windows&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/6017103441062324031/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2021/11/hack-family-safety-lock.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/6017103441062324031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/6017103441062324031'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2021/11/hack-family-safety-lock.html' title='hack family safety lock'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-8180591910917603631</id><published>2021-10-13T11:32:00.007+03:00</published><updated>2021-10-13T11:39:34.268+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><category scheme="http://www.blogger.com/atom/ns#" term="תכנות - כללי"/><title type='text'>css</title><content type='html'>אתרים עם CSS ששווה להכיר:&lt;div&gt;
  &lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;a href=&quot;https://tympanus.net/codrops/&quot; target=&quot;_blank&quot;&gt;https://tympanus.net/codrops/&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;
    &lt;a href=&quot;https://locomotivemtl.github.io/locomotive-scroll/&quot; target=&quot;_blank&quot;&gt;LOCOMOTIVE SCROLL&lt;/a&gt;:&lt;/div&gt;
    &lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp;*&amp;nbsp;&lt;a href=&quot;https://tympanus.net/Development/TileScroll/index.html&quot; target=&quot;_blank&quot;&gt;Image Tiles Scroll Animation with Locomotive Scroll - demo 1&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp;*&amp;nbsp;&lt;a href=&quot;https://tympanus.net/Development/TileScroll/index2.html&quot; target=&quot;_blank&quot;&gt;Image Tiles Scroll Animation with Locomotive Scroll - demo 2&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&amp;nbsp;*&amp;nbsp;&lt;a href=&quot;https://tympanus.net/Development/TileScroll/index3.html&quot; target=&quot;_blank&quot;&gt;Image Tiles Scroll Animation with Locomotive Scroll - demo 3&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;a href=&quot;https://tympanus.net/Tutorials/CSS3RotatingWords/index4.html&quot; target=&quot;_blank&quot;&gt;CSS3RotatingWords 4&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;a href=&quot;https://tympanus.net/Tutorials/CSS3RotatingWords/index5.html&quot; target=&quot;_blank&quot;&gt;CSS3RotatingWords 5&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;a href=&quot;https://10ideesrecuesenuxdesign.castoretpollux.com/en/&quot; target=&quot;_blank&quot;&gt;https://10ideesrecuesenuxdesign.castoretpollux.com/en/&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;a href=&quot;http://jsfiddle.net/sunnypmody/8gdEr/&quot; target=&quot;_blank&quot;&gt;Jiggling Buttons&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/8180591910917603631/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2021/10/css.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8180591910917603631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/8180591910917603631'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2021/10/css.html' title='css'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-3577850227250277369</id><published>2021-07-15T23:15:00.000+03:00</published><updated>2021-07-15T23:15:26.862+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="אינטרנט"/><category scheme="http://www.blogger.com/atom/ns#" term="חלוקת דפים"/><category scheme="http://www.blogger.com/atom/ns#" term="טיפים"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><title type='text'>חלוקת מסך בדפדפן האינטרנט</title><content type='html'>
&lt;div&gt;ניתן לבצע חלוקת מסך אופקית או אנכית בדפדפן האינטרנט לשני אתרים בו זמנית!&lt;/div&gt;
&lt;div&gt;לשם כך, לחצו ctrl+d בשביל יצירת סימניה חדשה ריקה, ובחרו ליצור אותה בסרגל הסימניות.&lt;/div&gt;
&lt;div&gt;
    &lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;לאחר מכן, לחצו לחיצה ימנית על הסימניה ובחרו עריכה.&lt;/div&gt;
&lt;div&gt;
    &lt;div&gt;יופיעו שני שדות לעריכה:&amp;nbsp;&lt;/div&gt;
    &lt;div&gt;שם - כתבו חלוקה אנכית (או אופקית)&lt;/div&gt;
    &lt;div&gt;כתובת - לחצו לחיצה משולשת לבחירת כל הקוד, ואז העתיקו והדביקו אותו:&lt;/div&gt;
    &lt;div&gt;
        &lt;br /&gt;
    &lt;/div&gt;
    &lt;div&gt;&lt;u&gt;חלוקת מסך אנכית&lt;/u&gt;
      
      &lt;div style=&quot;direction: ltr;&quot;&gt;
      &lt;textarea style=&quot;height: 120px; width: 100%;&quot;&gt;javascript:src_page=location.href;page_left=prompt(&#39;צד שמאל&#39;,src_page);page_right=prompt(&#39;צד ימין&#39;,page_left);if(page_left&amp;&amp;page_right){snir_elgabsi=&#39;&lt;frameset cols=\&#39;*,*\&#39;&gt;\n&lt;frame src=\&#39;&#39;+page_left+&#39;\&#39;/&gt;&#39;;snir_elgabsi+=&#39;&lt;frame src=\&#39;&#39;+page_right+&#39;\&#39;/&gt;\n&#39;;snir_elgabsi+=&#39;&lt;/frameset&gt;&#39;;with(document){write(snir_elgabsi);void(close())}}else{void(null)}        
        &lt;/textarea&gt;
      &lt;/div&gt;
        &lt;div&gt;
            &lt;br /&gt;
        &lt;/div&gt;
        &lt;div&gt;&lt;u&gt;חלוקת מסך אופקית&lt;/u&gt;&lt;/div&gt;
        &lt;div&gt;
            &lt;div style=&quot;direction: ltr;&quot;&gt;
          &lt;textarea style=&quot;height: 120px; width: 100%;&quot;&gt;javascript:src_page=location.href;page_up=prompt(&#39;חלק עליון&#39;,src_page);page_down=prompt(&#39;חלק תחתון&#39;,page_up);if(page_up&amp;&amp;page_down){snir_elgabsi=&#39;&lt;frameset cols=\&#39;100%\&#39; rows=\&#39;*,*\&#39;&gt;\n&lt;frame src=\&#39;&#39;+page_up+&#39;\&#39;/&gt;&#39;;snir_elgabsi+=&#39;&lt;frame src=\&#39;&#39;+page_down+&#39;\&#39;/&gt;\n&#39;;snir_elgabsi+=&#39;&lt;/frameset&gt;&#39;;with(document){write(snir_elgabsi);void(close())}}else{void(null)}
              &lt;/textarea&gt;
          &lt;/div&gt;
            &lt;span style=&quot;color: #888888;&quot;&gt;
                &lt;br style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot; /&gt;
            &lt;/span&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/3577850227250277369/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2021/07/screensplit.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/3577850227250277369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/3577850227250277369'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2021/07/screensplit.html' title='חלוקת מסך בדפדפן האינטרנט'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total><georss:featurename>המרווה 59, בני רא&quot;ם, ישראל</georss:featurename><georss:point>31.7638348 34.7885097</georss:point><georss:box>31.749239476627665 34.771343562304686 31.778430123372338 34.805675837695311</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1252583411777639110.post-2307550388555306447</id><published>2020-11-15T20:43:00.003+02:00</published><updated>2020-11-15T20:43:31.288+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="admin"/><category scheme="http://www.blogger.com/atom/ns#" term="bat"/><category scheme="http://www.blogger.com/atom/ns#" term="txt"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="קוד"/><title type='text'> איך להריץ קובץ bat בתור מנהל מערכת</title><content type='html'>&lt;p&gt;יש להוסיף את הקוד הזה בתחילת הקובץ, ובסופו את הקוד שנרצה להריץ בתור מנהלי מערכת:&lt;/p&gt;
&lt;textarea style=&quot;background: lightyellow; direction: ltr; height: 300px; width: 90%;&quot;&gt;@echo off
:: BatchGotAdmin (Run as Admin code starts)
REM --&gt; Check for permissions
&gt;nul 2&gt;&amp;1 &quot;%SYSTEMROOT%\system32\cacls.exe&quot; &quot;%SYSTEMROOT%\system32\config\system&quot;
REM --&gt; If error flag set, we do not have admin.
if &#39;%errorlevel%&#39; NEQ &#39;0&#39; (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^(&quot;Shell.Application&quot;^) &gt; &quot;%temp%\getadmin.vbs&quot;
echo UAC.ShellExecute &quot;%~s0&quot;, &quot;&quot;, &quot;&quot;, &quot;runas&quot;, 1 &gt;&gt; &quot;%temp%\getadmin.vbs&quot;
&quot;%temp%\getadmin.vbs&quot;
exit /B
:gotAdmin
if exist &quot;%temp%\getadmin.vbs&quot; ( del &quot;%temp%\getadmin.vbs&quot; )
pushd &quot;%CD%&quot;
CD /D &quot;%~dp0&quot;
:: BatchGotAdmin (Run as Admin code ends)
:: Your codes should start from the following line
&lt;/textarea&gt;
&lt;p&gt;כיצד ליצור קובץ bat:&lt;/p&gt;&lt;p&gt;1. יש לפתוח את התיקיה בה נרצה שיהיה הקובץ&lt;/p&gt;&lt;p&gt;2. לחיצה ימנית על שטח ריק &amp;gt; ניצור קובץ txt&lt;/p&gt;&lt;p&gt;3. נכתוב בתוכו את תוכן הקובץ ונשמור&lt;/p&gt;&lt;p&gt;4. נשנה את סיומת הקובץ מ-txt ל-bat - למשל&lt;/p&gt;&lt;p&gt;snir.txt&amp;nbsp; &amp;gt;&amp;nbsp; &amp;nbsp;snir.bat&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://snir.blogspot.com/feeds/2307550388555306447/comments/default' title='תגובות לפרסום'/><link rel='replies' type='text/html' href='http://snir.blogspot.com/2020/11/admin-run-batch-file.html#comment-form' title='0 תגובות'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/2307550388555306447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1252583411777639110/posts/default/2307550388555306447'/><link rel='alternate' type='text/html' href='http://snir.blogspot.com/2020/11/admin-run-batch-file.html' title=' איך להריץ קובץ bat בתור מנהל מערכת'/><author><name>שניר</name><uri>http://www.blogger.com/profile/08529471129529808451</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTJFf-fiVPRpumU7G8UFBNNlnULwu07k-9akmJFyQsVoGkdmR5HFqh4nea6apYwyOxUQ3Nk7rz21ix2Ww6YFl3H5iBG2jsO4_gAQ91YaBGFkwQLEfilSbPF8mcG2K9ro/s220/001.jpg'/></author><thr:total>0</thr:total><georss:featurename>62, תלמים, ישראל</georss:featurename><georss:point>31.562224 34.673324</georss:point><georss:box>31.554910658913556 34.664740931152345 31.569537341086445 34.681907068847657</georss:box></entry></feed>