gep*_*gep 2 javascript ssl https jquery feedly
我正在尝试从 feedly 迁移,因为搜索查询仅由专业版本(完全)启用是不可接受的(至少对我来说)。
不管怎样,为了导出我冗长的“稍后保存”列表,我发现了一些可爱的脚本: 将用户“稍后保存”列表导出为 JSON 字符串和feedly-to-pocket 的简单脚本。我被指示:
您必须关闭 SSL(http 而不是 https),否则 jQuery 将无法加载!
所以我虽然添加了(ubuntu 14.04/chrome 40 x64)
--ssl-version-min=tls1
Run Code Online (Sandbox Code Playgroud)
到我的 /usr/share/applications/google-chrome.desktop 文件(所有以 Exec= 开头的行)。但是,当我尝试在浏览器控制台中运行它时,我得到了
该请求已被阻止;内容必须通过 HTTPS 提供。
那么,有什么建议吗?(另外,请原谅我的菜鸟)
小智 5
打开控制台并将以下 Javascript 粘贴到其中:
function loadJQuery() {
script = document.createElement('script');
script.setAttribute('src', '//code.jquery.com/jquery-2.1.3.js');
script.setAttribute('type', 'text/javascript');
script.onload = loadSaveAs;
document.getElementsByTagName('head')[0].appendChild(script);
}
function loadSaveAs() {
saveAsScript = document.createElement('script');
saveAsScript.setAttribute('src', 'https://cdn.rawgit.com/eligrey/FileSaver.js/5733e40e5af936eb3f48554cf6a8a7075d71d18a/FileSaver.js');
saveAsScript.setAttribute('type', 'text/javascript');
saveAsScript.onload = saveToFile;
document.getElementsByTagName('head')[0].appendChild(saveAsScript);
}
function saveToFile() {
// Loop through the DOM, grabbing the information from each bookmark
map = jQuery(".entry.quicklisted").map(function(i, el) {
var $el = jQuery(el);
var regex = /Published:(.*)(.*)/i;
return {
title: $el.attr("data-title"),
url: $el.attr("data-alternate-link"),
summary: $el.find(".summary")[0].innerHTML,
time: regex.exec($el.find("span.ago").attr("title"))[1]
};
}).get(); // Convert jQuery object into an array
// Convert to a nicely indented JSON string
json = JSON.stringify(map, undefined, 2);
var blob = new Blob([json], {type: "text/plain;charset=utf-8"});
saveAs(blob, "FeedlySavedForLater" + Date.now().toString() + ".txt");
}
loadJQuery()
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
5716 次 |
| 最近记录: |