generated at
scrapbox関連のブックマークレットがedgeのブラウザでうまく動作しない
221122_記入
このブックマークレットがedgeのブラウザで動作しなかった.chrome,braveでは動作する.
EdgeがtoLocaleStringの戻り値に余計な文字をくっつける仕様になっているらしい。

なっちさん(岩谷さん)に修正対応頂いた.感謝です.


brave
電撃樋口塾用
$ javascript:(function(){var now=new Date();window.open("https://scrapbox.io/dhiguchijuku/電撃樋口塾"+now.toLocaleString("ja-JP",{year:"numeric",month:"2-digit"})+"月号?body="+encodeURIComponent("["+document.title+" "+window.location.href+"]("+now.toLocaleString()+")\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())

taiseidou用
$ javascript:(function(){var now=new Date();window.open("https://scrapbox.io/taiseidou/ネタ置き場(思考の貯水湖)"+"?body="+encodeURIComponent("["+document.title.replace(/[\[\]]/g,"")+" "+window.location.href+"]\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())

els用
$ javascript:(function(){var now=new Date();window.open("https://scrapbox.io/easylazyscrap/scrap_"+now.toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"})+"?body="+encodeURIComponent("["+document.title.replace(/[\[\]]/g,"")+" "+window.location.href+"](scraped at "+now.toLocaleString()+")\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())


edge
電撃樋口塾用 動作しない
$ javascript:(function(){var now=new Date();window.open("https://scrapbox.io/dhiguchijuku/電撃樋口塾"+now.toLocaleString("ja-JP",{year:"numeric",month:"2-digit"})+"月号?body="+encodeURIComponent("["+document.title+" "+window.location.href+"]("+now.toLocaleString()+")\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())
改良版 動作する
javascript
javascript:(function(){var now=new Date();window.open("https://scrapbox.io/dhiguchijuku/電撃樋口塾"+encodeURIComponent(now.toLocaleString("ja-JP",{year:"numeric",month:"2-digit"}))+"月号?body="+encodeURIComponent("["+document.title+" "+window.location.href+"]("+now.toLocaleString()+")\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())


taiseidou用 動作する
$ javascript:(function(){var now=new Date();window.open("https://scrapbox.io/taiseidou/ネタ置き場(思考の貯水湖)"+"?body="+encodeURIComponent("["+document.title.replace(/[\[\]]/g,"")+" "+window.location.href+"]\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())

els用 動作しない
$ javascript:(function(){var now=new Date();window.open("https://scrapbox.io/easylazyscrap/scrap_"+now.toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"})+"?body="+encodeURIComponent("["+document.title.replace(/[\[\]]/g,"")+" "+window.location.href+"](scraped at "+now.toLocaleString()+")\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())
改良版 動作しない
$ javascript:(function(){var now=new Date();window.open("https://scrapbox.io/easylazyscrap/scrap_"+now.toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/\u200E/g,"")+"?body="+encodeURIComponent("["+document.title.replace(/[\[\]]/g,"")+" "+window.location.href+"](scraped at "+now.toLocaleString().replace(/\u200E/g,"")+")\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())

改善版 動作する
javascript
javascript:(function(){var now=new Date();window.open("https://scrapbox.io/easylazyscrap/scrap_"+encodeURIComponent(now.toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}))+"?body="+encodeURIComponent("["+document.title.replace(/[\[\]]/g,"")+" "+window.location.href+"]\n"+window.getSelection().toString().split(/\n+/g).map(function(line){return line.length>0?%27> %27+line:%27%27}).join(%27\n%27)))}())