NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Inoreader feed to Wiz
// @namespace com.inoreader.to.wiz
// @description 为Inoreader标题栏添加发送到wiz笔记链接,注意:这里只是简单的提取原文地址并通过wiz的url2wiz功能保持到为知笔记中,只能保存RSS地址与实际地址一致的文章,有些文章的RSS地址和实际地址不一致,暂时没办法处理。
// @include https://www.inoreader.com/*
// @include http://www.inoreader.com/*
// @require http://code.jquery.com/jquery-1.11.1.min.js
// @author liuzhuyuehe
// @version 1.0
// @grant none
// ==/UserScript==
var wizid = "note2001"; // Mywiz邮箱ID,例如:如果您的mywiz邮箱是 note2001@mywiz.cn,那么只需要输入note2001
var wizfolder = "/My Emails/"; // 保存到文件夹,默认保存到/My Notes/,也就是我的笔记。可以直接输入中文,例如/网页收藏/
var contentOnly = true; // 是否仅保存正文(为true时,只会保存网页正文。会采用智能提取正文功能)
$("#reader_pane").bind('DOMNodeInserted', function (e){
var item = $(e.target);
if (item.attr("id").indexOf("article_") > -1) {
var aurl = item.find("a[id^='aurl_']");
var entry_src = aurl.attr('href'); // 实际网址
// alert(entry_src);
var url2wiz = "http://note.wiz.cn/url2wiz?url=" + encodeURIComponent(entry_src) + "&folder=" + encodeURIComponent(wizfolder) + "&user=" + wizid + "&content-only=" + contentOnly;
var wizicon = "<img src='http://www.wiz.cn/favicon.ico'/>";
var aurl2wiz = '<a href="' + url2wiz + '" title="发送到我的为知笔记" target="_blank" >'+wizicon+'</a>';
aurl.after(aurl2wiz);
}
});