https://github.com/zhaoolee/WordPressXMLRPCTools是一个通过markdown自动更新WordPress网站的开源项目。
如果我想以 https://github.com/zhaoolee/WordPressXMLRPCTools 为模版建立一个新的仓库,管理第二个网站,需要按照以下步骤来
创建完成后的仓库 https://github.com/zhaoolee/wp_v2fy
https://github.com/zhaoolee/WordPressXMLRPCTools是一个通过markdown自动更新WordPress网站的开源项目。
如果我想以 https://github.com/zhaoolee/WordPressXMLRPCTools 为模版建立一个新的仓库,管理第二个网站,需要按照以下步骤来
创建完成后的仓库 https://github.com/zhaoolee/wp_v2fy
极客们手头有很多好玩的网站,但每天挨个打开网站去看内容又很麻烦,于是极客们便会使用RSS订阅网站内容更新。
查看当前网站的RSS订阅地址最简单的方法,是直接查看源代码, 网页会在 HTML 头部包含 type 为 application/atom+xml
或 application/rss+xml
的 link 元素来指明 RSS 链接
但每次查代码过于麻烦,于是 DIYgod 开发了一个小工具,可以一键获取当前页面的RSS,开源地址https://github.com/DIYgod/RSSHub-Radar
《RSSHub Radar》的作者 DIYgod 是一个很极客的人,他不仅开发了《RSSHub Radar》,而且还在gtihub发起了一个 万物皆可RSS 的开源项目RSSHub,吸引开发者们开发第三方爬虫,让原本不提供RSS的网页,也能使用RSS订阅,DIYgod实乃吾辈楷模!DIYgod也是一个B站开发者,负责维护bilibili HTML5 播放器,个人网站为https://diygod.me/ ,网站主题是基于Hexo的NexT主题,进行了美化,非常个性化,满满二次元!
通过安装Chrome扩展使用RSS阅读器《Feedbro》在Chrome中订阅RSS信息流
通过Github开源项目获取优质RSS源:
DIYgod发起的《万物皆可 RSS》 https://github.com/DIYgod/RSSHub
zhaoolee发起的 《嘎!RSS》 https://github.com/zhaoolee/garss
timqian发起的《中文独立博客列表》 https://github.com/timqian/chinese-independent-blogs
Chrome ![]() | Edge ![]() | FireFox ![]() | 离线安装包 ![]() |
RSS是上个世代的东西,随着内容平台们推荐算法的各种骚操作,RSS又被翻了出来;以现在的眼光看,RSS相当于把每个网站当成了公众号,用户可以通过RSS阅读器,订阅自己喜欢的网站更新,与公众号不同的是,RSS无广告,无需登录,且无法收集用户信息,用户也不会被同质化信息封闭自己的知识体系。
本文属于Chrome插件英雄榜 项目的一部分, 项目Github地址: https://github.com/zhaoolee/ChromeAppHeroes
This article is part of the ChromeAppHeroes project. Github link : https://github.com/zhaoolee/ChromeAppHeroes
Chrome插件英雄榜, 为优秀的Chrome插件写一本中文说明书, 让Chrome插件英雄们造福人类, 如果你喜欢这个项目, 希望你能为本项目添加一颗 🌟星.
ChromeAppHeroes, Write a Chinese manual for the excellent Chrome plugin, let the Chrome plugin heroes benefit the human, If you like this project, I hope you can add a star 🌟 to this project.
《假装水墨屏》是一款Tampermonkey脚本,需要先完成Tampermonkey安装,才可以使用。Tampermonkey安装和使用教程在这里 《Tampermonkey》 油猴子! 给浏览器开个挂: https://www.v2fy.com/p/004_tampermonkey/
《假装水墨屏》可以让网页内容变成水墨屏,彩色&反色水墨屏模式效果
// ==UserScript==
// @name 假装水墨屏
// @name:en-US Fake Ink Screen
// @namespace Fake Ink Screen
// @match *://*/*
// @grant GM_addStyle
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
// @grant GM_registerMenuCommand
// @run-at document-start
// @inject-into content
// @version 0.2.3
// @author 稻米鼠
// @created 2020-07-24 13:02:56
// @updated 2020-08-10 18:51:07
// @description 假装用的水墨屏,阅读不累眼(可能吧)。最新加入彩色&反色水墨屏模式,在脚本菜单中切换。
// ==/UserScript==
(function(){
// 闭包 Start
GM_addStyle(`
html.gray-ink-screen {
-webkit-filter: grayscale(100%) brightness(120%);
-moz-filter: grayscale(100%) brightness(120%);
-ms-filter: grayscale(100%) brightness(120%);
-o-filter: grayscale(100%) brightness(120%);
filter: grayscale(100%) brightness(120%);
}
html.dark-ink-screen {
-webkit-filter: grayscale(100%) brightness(120%) invert(100%);
-moz-filter: grayscale(100%) brightness(120%) invert(100%);
-ms-filter: grayscale(100%) brightness(120%) invert(100%);
-o-filter: grayscale(100%) brightness(120%) invert(100%);
filter: grayscale(100%) brightness(120%) invert(100%);
}
html.color-ink-screen {
-webkit-filter: saturate(60%) contrast(160%);
-moz-filter: saturate(100%) contrast(160%);
-ms-filter: saturate(60%) contrast(160%);
-o-filter: saturate(60%) contrast(160%);
filter: saturate(60%) contrast(160%);
}
html.gray-ink-screen,
html.gray-ink-screen body,
html.gray-ink-screen .ink-background,
html.dark-ink-screen,
html.dark-ink-screen body,
html.dark-ink-screen .ink-background {
background-color: rgb(200, 200, 200) !important
}
html.color-ink-screen,
html.color-ink-screen body,
html.color-ink-screen .ink-background {
background-color: rgb(198, 198, 198) !important
}
html.dark-ink-screen .ink-font,
html.gray-ink-screen .ink-font {
color: rgb(66, 66, 66) !important
}
html.color-ink-screen .ink-font {
color: rgb(98, 98, 98) !important
}
html.gray-ink-screen * {
text-shadow: 0 0 1.2rem rgba(0, 0, 0, .24), 0 0 .5px rgba(0, 0, 0, .5)
}
html.color-ink-screen * {
text-shadow: 0 0 1.2rem rgba(0, 0, 0, .2), 0 0 .5px rgba(0, 0, 0, .4)
}
`);
const modes = ['gray-ink-screen', 'color-ink-screen', 'dark-ink-screen']
const toggleMode = (modeIndex)=>{
for(const className of modes) {
document.body.parentElement.classList.remove(className)
}
document.body.parentElement.classList.add(modes[modeIndex])
}
toggleMode(GM_getValue('mode', 0))
GM_registerMenuCommand('切换【黑白&彩色&反色】水墨屏',()=>{
let mode = GM_getValue('mode', 0)
mode = mode>=2 ? 0 : ++mode
toggleMode(mode)
GM_setValue('mode', mode)
})
window.addEventListener('load', () => {
const inkEl = async(el) => {
const fontColor = window.getComputedStyle(el).color.match(/\d+/g);
const rgbVal = window.getComputedStyle(el).backgroundColor.match(/\d+/g);
if(!fontColor || !rgbVal) return;
if (
fontColor &&
+fontColor[0] + +fontColor[1] + +fontColor[2] > 255 &&
+fontColor[0] + +fontColor[1] + +fontColor[2] < 588
) {
el.classList.add('ink-font');
}
if (rgbVal[3] && rgbVal[3] === '0') return;
if (
(+rgbVal[0] + +rgbVal[1] + +rgbVal[2]) / (rgbVal[3] ? +rgbVal[3] : 1) >
640
)
el.classList.add('ink-background');
};
document.body.querySelectorAll('*').forEach((el) => inkEl(el) );
const obOptions = {
childList: true,
subtree: true,
attributes: true,
characterData: true,
attributeOldValue: false,
characterDataOldValue: false,
attributeFilter: [],
};
const observer = new MutationObserver(async (records, observer) => {
observer.disconnect();
const els = records
// 改变的类型为 characterData,并且不是 body 元素的话
.filter((el) => /^characterData$/i.test(el.type))
.map((el) => el.target); // 把发生改变的元素放入合集
// 改变的类型为 childList,则把新增的元素放入合集
records
.filter((el) => /^childList$/i.test(el.type))
.forEach((el) => {
el.addedNodes.forEach((node) => els.push(node));
});
// 遍历合集中所有元素
for await (el of els) {
if(el.nodeType === 1) {
inkEl(el);
el.querySelectorAll('*').forEach(e=>inkEl(e))
}
}
// 页面处理完成之后重新监控页面变化
observer.observe(document.body, obOptions);
});
observer.observe(document.body, obOptions);
});
// 闭包 End
})()
往油猴编辑器中粘贴脚本后,按Ctrl+s键即可保存,自动跳转到脚本列表页面,然后刷新页面,脚本即刻生效。
Chrome ![]() | Edge ![]() | FireFox ![]() | 离线安装包 ![]() |
墨水屏相当于把屏幕彩色变成了舒适的黑白,眼睛会舒服一些。
本文属于Chrome插件英雄榜 项目的一部分, 项目Github地址: https://github.com/zhaoolee/ChromeAppHeroes
This article is part of the ChromeAppHeroes project. Github link : https://github.com/zhaoolee/ChromeAppHeroes
Chrome插件英雄榜, 为优秀的Chrome插件写一本中文说明书, 让Chrome插件英雄们造福人类, 如果你喜欢这个项目, 希望你能为本项目添加一颗 🌟星.
ChromeAppHeroes, Write a Chinese manual for the excellent Chrome plugin, let the Chrome plugin heroes benefit the human, If you like this project, I hope you can add a star 🌟 to this project.
RSS是一种标准的网站内容投递协议,通过解析RSS我们可以获取网站的内容更新。
Feedbro是一款可以在浏览器中直接订阅管理查看RSS的Chrome扩展工具。
汉化脚本来自 https://raw.githubusercontent.com/YEWl/feedbro-locale/master/feedbro-locale-zh_CN.json
如果有些地区的网络无法打开,可以直接使用我的备份源 https://www.v2fy.com/feedbro/feedbro-locale-zh_CN.json
进行汉化
找到自己喜欢的网站,如果在标题栏或底部栏或侧边栏能找到RSS订阅的超链接是最好的,如果找不到,就只能靠猜,比如域名后追加 /rss
或 /feed
路径,
为了节约大家的时间,我做了一个收集并自动爬取RSS内容的开源项目,名为《嘎! RSS》, 地址 https://github.com/zhaoolee/garss , 截止2021年02月27日,已经收录了69个rss常用源,后续会不断扩充~
在Feedbro中,默认每30分钟就会自动扫描更新RSS,当然这个扫描间隔你可以改为更长或更短。
如果你一定要手动更新, 可以在主页点击刷新按钮(又不是秒杀抢货,大多数情况下用不到这个按钮)
你看这么一搞,是不是就很有 锤子便签 的味道了
配合排版方式的调整,会让你产生在锤子便签里读公众号的错觉
Chrome ![]() | Edge ![]() | FireFox ![]() | 离线安装包 ![]() |
在信息爆炸的今天,每个人获取的信息很多,但由于推荐算法的滥用, 大多数信息是同质化的;偏听则暗,兼听则明,我们可以通过订阅多站点的RSS, 让自己接受的信息不偏颇,听百家之言,行稳妥之事。
本文属于Chrome插件英雄榜 项目的一部分, 项目Github地址: https://github.com/zhaoolee/ChromeAppHeroes
This article is part of the ChromeAppHeroes project. Github link : https://github.com/zhaoolee/ChromeAppHeroes
Chrome插件英雄榜, 为优秀的Chrome插件写一本中文说明书, 让Chrome插件英雄们造福人类, 如果你喜欢这个项目, 希望你能为本项目添加一颗 🌟星.
ChromeAppHeroes, Write a Chinese manual for the excellent Chrome plugin, let the Chrome plugin heroes benefit the human, If you like this project, I hope you can add a star 🌟 to this project.