LoginSignup
0
0

More than 3 years have passed since last update.

Markdown形式でURLをコピーするブックマークレット

Last updated at Posted at 2020-09-20

いつも使っているスクリプトを貼ります。実際にブックマークレットを追加する方法については、お使いのブラウザのマニュアルを読んでみてください。

Markdown用
javascript:(function(){y=window.open('','','resizable,width=500,height=200');y.document.write('<body onload="t.focus();"><form><textarea id="t" onfocus="this.select()" style="width:100%;height:100%">'+"["+document.title+"]("+document.URL+')</textarea></form></body>');y.document.close();})();

このブックマークレットではウインドウが出てしまうので、直接コピーするスクリプトをご存知のかたはコメント欄で教えて頂けると助かります。

メール等にコピペする用
javascript:(function(){y=window.open('','','resizable,width=500,height=200');y.document.write('<body onload="t.focus();"><form><textarea id="t" onfocus="this.select()" style="width:100%;height:100%">'+""+document.title+""+"\n"+document.URL+'</textarea></form></body>');y.document.close();})();
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0