כתבתי תוסף לשימוש ChatGpt בכל אתרי האינטרנט:
- מסמנים טקסט כלשהו
- לוחצים Shift+Q
- יופיע בלון קטן - שאל את chatGpt.
- לוחצים על הבלון וייפתח חלון עם הטקסט כשאלה ב-chatGpt:
- העתק את הקוד
- לחץ ctrl+d כדי ליצור סימניה
- שנה את שם הסימניה ל-AskGPT ובמקום הכתובת, הדבק את הטקסט שהעתקת בסעיף 1
- כעת תוכל להשתמש בתוסף בכל אתר אינטרנט, כפי שמוסבר למעלה
javascript:(function(){const m=document.createElement('div');m.id='chatgpt-context-menu';m.style.position='absolute';m.style.background='#fff';m.style.border='1px solid #ccc';m.style.padding='8px 12px';m.style.borderRadius='5px';m.style.boxShadow='0 2px 8px rgba(0,0,0,0.2)';m.style.cursor='pointer';m.style.display='none';m.style.zIndex=99999;m.style.transition='opacity 0.2s';m.style.opacity=0;m.innerText='שאל את ChatGPT';document.body.appendChild(m);let t='';function s(x,y){m.style.top=y+'px';m.style.left=x+'px';m.style.display='block';setTimeout(()=>m.style.opacity=1,10)}function h(){m.style.opacity=0;setTimeout(()=>m.style.display='none',200)}document.addEventListener('keydown',e=>{if(e.shiftKey&&e.key.toLowerCase()==='q'){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('click',e=>{if(!m.contains(e.target))h()});m.addEventListener('click',()=>{if(t){window.open('https://chat.openai.com/?q='+encodeURIComponent(t),'_blank','width=600,height=600')}h()})();})();