Skip to content

Instantly share code, notes, and snippets.

@object1985
Created December 2, 2022 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save object1985/e902954b8f3ce7aaaf5926ba88f5bb58 to your computer and use it in GitHub Desktop.
Save object1985/e902954b8f3ce7aaaf5926ba88f5bb58 to your computer and use it in GitHub Desktop.
//文字連結しつつ、「"CRLF"」という文字列区切りでクリップボードにコピー
//(Chrome,Edge,Firefox,Safari)開発者ツールで使用想定
hoge="";
document.querySelectorAll('button.ms-Link.7939f24e').forEach(e=>{
hoge += e.innerText + "CRLF";
});
copy(hoge);
//一旦consoleに出力するなら以下。
//hoge="";
//document.querySelectorAll('button.ms-Link.7939f24e').forEach(e=>{
// hoge += e.innerText + "CRLF";
//});
//console.log(hoge);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment