Last active
October 19, 2022 07:22
-
-
Save kojp/e8a0fa1b4719e3147978b38f615d787b to your computer and use it in GitHub Desktop.
ウェブページの選択範囲(テキスト)とタイトルをLogseqに貼り付けるスタイルに整形するブックマークレット(空行ができないバージョン)。Logseqのプラグイン“Paste More”と併用する必要があります。詳しい説明→ https://ich.hatenadiary.com/entry/logseq-bookmarklet
This file contains 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 markdown = "[" + document.title + "](" + window.location.href + ")";var selection = window.getSelection().toString();array = selection.split(/\n/);c = window.open();c.document.open();c.document.write(markdown + "<br />");for (j = 0; j < array.length; j++) {if (array[j] != "") {c.document.write(" " + "- >" + array[j] + "<br />");} else {c.document.write(" " + array[j] + "<br />");}}})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Logseqに貼り付けると、空行は消されます(Logseqのバージョン0.7.2時点)。