c# 书签保存到word_使用书签将链接保存到我的网站

c# 书签保存到word

c# 书签保存到word

I started using my site to post bookmarks late in 2016, but I didn’t do it often. I never sat down and took the time to create a nice publishing workflow for bookmarks, so the process was clunky and cumbersome. Anytime I needed to save a bookmark I had to:

我从2016年底开始使用我的网站发布书签,但是我并不经常这样做。 我从不坐下来,花时间为书签创建一个不错的发布工作流,所以这个过程很麻烦而且麻烦。 每当我需要保存书签时,我都必须:

  1. Copy/paste any selected text I wanted to quote

    复制/粘贴我想引用的任何选定文本
  2. Create a new markdown file for Jekyll

    为Jekyll创建一个新的markdown文件
  3. Setup any metdata I needed

    设置我需要的任何元数据
  4. Manually deploy

    手动部署

This wasn’t a limitation of Jekyll or anything, just a matter of me never taking the time to make the process more seamless.

这不是Jekyll或其他任何限制,这只是我一个问题,我从未花时间使该过程更加无缝。

What I wanted was a bookmarklet to fast-track that whole process and make it automatic. With a static-site generator, that’s not quite as simple as it would be otherwise.

我想要的是一个书签,可以快速跟踪整个过程并使其自动化。 使用静态站点生成器,并不像以前那样简单。

But then I remembered that the Github API allows you to create and commit a file to a given repository. I did a little looking around. It turns out someone had already taken the time to build a bookmarklet for Jekyll that used the GitHub API to do exactly what I wanted to accomplish.

但是后来我想起了Github API,它允许您创建文件并将其提交到给定的存储库 。 我环顾四周。 事实证明,有人已经花时间为Jekyll构建了一个书签,书签使用GitHub API来完成我想要完成的工作。

Modifying it for Hugo didn’t take long. Mostly, I had to change the JavaScript to account for the metadata I wanted included in the file.

很快就为Hugo进行了修改。 通常,我不得不更改JavaScript以解决我想要包含在文件中的元数据的问题。

Since I use two-factor authentication (2FA) on my Github account (because 2FA is annoying, but not as annoying as having someone get into my account) I also had to generate a personal access token to allow my account to post directly to the repository. After that and a couple tweaks to the template itself to make it fit my style a bit more, I had a working bookmarklet that I can now use to save any site I happen to be on.

由于我在Github帐户上使用两因素身份验证( 2FA )(因为2FA令人讨厌,但不像有人进入我的帐户那样令人讨厌),所以我还必须生成个人访问令牌,以允许我的帐户直接发布到资料库。 之后,再对模板本身进行一些调整以使其更符合我的风格,我有了一个工作中的书签,现在可以用来保存我碰巧所在的任何网站。

Any text I select is auto-filled into the bookmarklet form, I can annotate from there, and then hit submit. The new file gets committed to my repository using the GitHub API and then Netlify kicks in with an automatic-deploy. It’s a much simpler process.

我选择的任何文本都会自动填写到书签表单中,我可以从那里进行注释,然后点击“提交”。 使用GitHub API将新文件提交到我的存储库,然后Netlify进行自动部署。 这是一个简单得多的过程。

Even better is that this whole process works very well on mobile, where I often pull open Feedbin to catch up on some posts. Clicking the bookmarklet from the bookmarks bar in Chrome doesn’t work. However, there’s a less obvious method of using bookmarklets in Chrome on mobile devices.

更好的是,整个过程在移动设备上效果很好,我经常拉开Feedbin来跟踪一些帖子。 在Chrome浏览器的书签栏中单击小书签无效。 但是,在移动设备上的Chrome中使用书签的方法不太明显。

On Chrome for Android, the bookmarklet is accessible by typing its name into the URL bar.

On Chrome for Android, the bookmarklet is accessible by typing its name into the URL bar.

在Android版Chrome浏览器上,可通过在URL栏中输入书签的名称来访问书签。

If you start to type the name of the bookmarklet (in my case “Save to TimKadlec.com”) in the URL bar, you’ll see the bookmarklet come up as an option. Once you select that, the bookmarklet opens in another tab and you can publish on the go.

如果您开始在URL栏中键入小书签的名称(在我的情况下为“保存到TimKadlec.com”),您会看到小书签作为一个选项出现。 选择后,小书签将在另一个选项卡中打开,您可以随时进行发布。

The whole flow is much simpler now and I’m pretty happy with it. Unsurprisingly, if you’ve been following along with the links via RSS, expect to see an uptick in frequency.

现在整个流程要简单得多,对此我感到非常满意。 毫不奇怪,如果您一直关注着通过RSS进行的链接 ,那么请期待频率的上升。

翻译自: https://timkadlec.com/remembers/2018-02-06-saving-links-to-my-site-with-a-bookmarklet/

c# 书签保存到word

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值