This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){ var title = document.title; var cleanTitle = title.replace(/\s*-\s*YouTube$/, '').trim(); var url = encodeURIComponent(location.href); var scrapboxUrl = 'https://scrapbox.io/{project-name}/' + encodeURIComponent(cleanTitle) + '?body=[%27 + url + %27]%27; window.open(scrapboxUrl, %27_blank%27);})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(()=>{const selection=window.getSelection()?.toString();if(!selection)return;window.open(`https://www.google.com/search?q=${encodeURIComponent(selection)}`,'_blank','noopener,noreferrer');navigator.clipboard.writeText(selection).catch(error=>console.error('コピーに失敗',error));})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(()=>{const selection=window.getSelection()?.toString();if(!selection)return;window.open(`https://scrapbox.io/{project-name}/search/page?q=${encodeURIComponent(selection)}`,'_blank','noopener,noreferrer');})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(async()=>{const text=window.getSelection()?.toString();if(!text)return;try{await navigator.clipboard.writeText(text.replace(/\r\n?|\n/g,''));const notice=document.createElement('div');notice.textContent='改行を削除してコピー完了';Object.assign(notice.style,{position:'fixed',top:'20px',left:'50%',transform:'translateX(-50%)',padding:'8px 16px',background:'#333',color:'#fff',zIndex:2147483647,borderRadius:'4px',fontSize:'14px',pointerEvents:'none',boxShadow:'0 2px 8px rgba(0,0,0,.3)'});document.body.appendChild(notice);setTimeout(()=>notice.remove(),1500);}catch(error){console.error('コピーに失敗',error);}})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(async()=>{const selection=window.getSelection();const text=selection?.toString().trim();if(!text||selection.rangeCount===0)return;const range=selection.getRangeAt(0);const context=(node,offset,length,before)=>{if(node?.nodeType!==Node.TEXT_NODE)return'';const value=node.textContent;return(before?value.slice(Math.max(0,offset-length),offset):value.slice(offset,offset+length)).trim();};const prefix=context(range.startContainer,range.startOffset,20,true);const suffix=context(range.endContainer,range.endOffset,20,false);const encodeTextFragment=value=>value.replace(/[\t\n\r ]/g,c=>encodeURIComponent(c)).replace(/-/g,"%2D");const fragment=`:~:text=${prefix?`${encodeTextFragment(prefix)}-,`:''}${encodeTextFragment(text)}${suffix?`,-${encodeTextFragment(suffix)}`:''}`;const baseUrl=location.href.split('#')[0];const url=`${baseUrl}#${fragment}`;try{await navigator.clipboard.writeText(`[${url} ${text}]`);const notice=document.createElement('div');notice.textContent='コピー完了';Object.assign(notice.style,{posit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(()=>{const selection=window.getSelection()?.toString();if(!selection)return;const prefix=prompt('検索キーワードの前に追加する文字列','');if(prefix===null)return;const suffix=prompt('検索キーワードの後ろに追加する文字列','');if(suffix===null)return;const query=`${prefix?prefix+' ':''}${selection}${suffix?' '+suffix:''}`;window.open(`https://www.google.com/search?q=${encodeURIComponent(query)}`,'_blank','noopener,noreferrer');})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(async function(){text=await navigator.clipboard.readText();newtext='['+text+']'+'\n'+location.href;window.open('https://scrapbox.io/sendarionn/'+encodeURIComponent(document.title)+'?body=%27+encodeURIComponent(newtext));})() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){var currentUrl=encodeURIComponent(location.href);var newUrl='https://scrapbox.io/sendarionn/search/page?q=%27+currentUrl;window.open(newUrl,%27_blank%27);})(); |