A bookmarklet that pops up the current title of the page and url as a markdown text.
- LinkMD.js -
- [Title of the page](URL of the page) - LinkTXT.js -
Title of the page\nURL of the page
A bookmarklet that pops up the current title of the page and url as a markdown text.
- [Title of the page](URL of the page)Title of the page\nURL of the page| /* | |
| * BookMarkDown.js | |
| * ブラウザで見ているページのタイトルとURLを、 | |
| * - [タイトル](URL) という形式と、 | |
| * タイトル+改行+URL+改行 という形式と、 | |
| * [タイトル URL] という形式にする | |
| * Bookmarklet | |
| */ | |
| function start() { | |
| let url = location.href; | |
| let title = document.title; | |
| prompt('BookMarkDown.js for Markdown', '- [' + title + '](' + url + ')'); | |
| prompt('BookMarkDown.js for Plaintext', title + "\n" + url + "\n"); | |
| prompt('BookMarkDown.js for Scrapbox', '[' + title + ' ' + url + ']'); | |
| } | |
| start(); | |
| /* | |
| * LinkMD.js | |
| * ブラウザで見ているページのタイトルとURLを、 | |
| * - [タイトル](URL) という形式にする | |
| * Bookmarklet | |
| */ | |
| function start() { | |
| let url = location.href; | |
| let title = document.title; | |
| prompt('LinkMD.js', '- [' + title + '](' + url + ')'); | |
| } | |
| start(); |
| /* | |
| * LinkTXT.js | |
| * ブラウザで見ているページのタイトルとURLを、 | |
| * タイトル+改行+URL+改行 という形式にする | |
| * Bookmarklet | |
| */ | |
| function start() { | |
| let url = location.href; | |
| let title = document.title; | |
| prompt('LinkTXT.js', title + "\n" + url + "\n"); | |
| } | |
| start(); |
https://snap.textfile.org/20200330214051/