diff --git a/BarkMe b/BarkMe new file mode 100644 index 0000000..8c607ba --- /dev/null +++ b/BarkMe @@ -0,0 +1 @@ +javascript:(async function() { try { const clipboardData = await navigator.clipboard.readText(); const clipboardContent = clipboardData.trim(); if (clipboardContent !== '') { const url = 'https://api.day.app/yourkey/' + encodeURIComponent(clipboardContent); await fetch(url); } }catch (error) {console.log('ERROR:', error);}})(); \ No newline at end of file diff --git a/MailmeLink b/MailmeLink deleted file mode 100644 index 6159f3c..0000000 --- a/MailmeLink +++ /dev/null @@ -1,6 +0,0 @@ -javascript:(function() { - var subject = encodeURIComponent(document.title); - var body = encodeURIComponent(document.title + '\n\n' + location.href); - var mailtoLink = 'mailto:iswangli@outlook.com?subject=' + subject + '&body=' + body; - window.location.href = mailtoLink; -})(); diff --git a/README.md b/README.md index 49bc49f..b9dfa10 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ This is a bookmarklet that mail me the current page. ## 使用方法 ### 方式1 拖动添加书签 1. 访问[https://troilus.github.io/MailmeLink](https://troilus.github.io/MailmeLink) , 将书签拖动到收藏夹栏保存。 +2. 修改标签地址,将地址中的iswangli@outlook.com为其他接收邮箱地址。 ### 方式2 自建书签 1. 在浏览器收藏夹栏新增一个书签。 2. 修改这个书签,将地址改为[MailmeLink](https://github.com/troilus/MailmeLink/blob/main/MailmeLink)中的代码。 @@ -12,7 +13,8 @@ This is a bookmarklet that mail me the current page. ## How to use ### Option 1: Drag to add a bookmark. 1. Visit [https://troilus.github.io/](https://troilus.github.io/MailmeLink) , drag the bookmark to the bookmarks bar to save it. +2. Modify the "iswangli@outlook.com" in the bookmark url to a different email address. ### Option 2: Create a bookmark manually. 1. Add a new bookmark to the browser's bookmarks bar. -2. Modify this bookmark by replacing the URL with the code from MailmeLink. +2. Modify this bookmark by replacing the URL with the code from [MailmeLink](https://github.com/troilus/MailmeLink/blob/main/MailmeLink) 3. Modify the email address "iswangli@outlook.com" in the code to a different email address.