分类
公众号「0加1」

为WordPress网站提供类似GitBook的侧边目录


title: 为WordPress网站提供类似GitBook的侧边目录

为WordPress网站提供类似GitBook的侧边目录

WordPress是一个很优秀的建站工具, zhaoolee用WordPress建立了自己的博客网站v2fy.com (Way To 方圆) , 对于个人博客而言, GitBook的侧边栏文章目录, 非常适合广大读者阅读, 于是我研究了一下WordPress的开放api接口, 然后写了个工具, 可以使用纯前端的方式, 以WordPress标准Api获取数据, 构建一个类似GitBook的侧边目录;

2022年端午节更新, 用React重写所有逻辑, 新增Input搜索, Loading期间显示Loading标识, 为减少流量消耗, 改为60分钟更新一次数据;

8. 字母大小写兼容匹配

大小写兼容匹配

7.添加Input搜索

支持标题搜索, 输入关键词, 即可快速查找包含关键词的标题

添加Input

6. 拉取数据期间显示Loading

拉取数据期间显示Loading

5. 支持通过油猴(Tampermonkey)插件, 为任意WordPress站生成目录

为任意WordPress站生成目录

油猴脚本

// ==UserScript==
// @name         wordpress-sidebar
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://fangyuanxiaozhan.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=v2fy.com
// @grant        none
// @require      https://v2fy.com/wordpress-sidebar/index.js
// ==/UserScript==

4. 支持缓存侧边栏数据, 首次加载后, 侧边栏秒显示, 为了节省流量, 每次打开新页面, 程序会检测时间戳, 过期时间, 侧边栏数据超过10分钟, 才会重新拉取

支持缓存侧边栏数据

3. 侧边栏内容, 支持根据当前网址加深颜色, 并滚动到侧边栏顶部

支持根据当前网址加深颜色, 并滚动到侧边栏顶部

2. 支持根据屏幕宽度判断显示/隐藏侧边目录(窗口宽度500px及以上显示侧边栏, 500px以下则隐藏侧边栏)

根据屏幕宽度判断显示/隐藏侧边目录

1. 支持手动隐藏显示侧边栏

支持手动隐藏显示侧边栏

WordPress站长使用方法

在页脚插入js脚本即可

在页脚插入脚本即可

<script src="https://www.v2fy.com/wordpress-sidebar/index.js"></script>

以上 https://www.v2fy.com/wordpress-sidebar/index.js 不保证稳定, 代码已经在Github开源, 可以从 https://github.com/zhaoolee/wordpress-sidebar 获得最新的脚本代码

本文永久更新地址(欢迎来读留言,写评论):

https://www.v2fy.com/p/2022-05-22-wordpress-side-1653217493000

分类
公众号「0加1」

网易云音乐V4精简养老版


title: 网易云音乐V4精简养老版

网易云官方4.0养老版, 无广告,功能简单, 可用音乐云盘, 微信授权登录即可

下载地址

https://frp.v2fy.com/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90V4%E7%B2%BE%E7%AE%80%E5%85%BB%E8%80%81%E7%89%88/

本文永久更新地址(欢迎来读留言,写评论):

https://www.v2fy.com/p/2022-05-12-netmusic-v4-1652357959000

分类
公众号「0加1」

想好好听歌? QQ音乐精简版下载


title: 想好好听歌? QQ音乐精简版下载

以前网易云音乐简洁好用,但现在网易云的功能超多,十分难用;而QQ音乐反而出了精简版,精简版比网易云好用很多,这里推荐一波。

精简的首页布局

精简的首页布局

支持官方推送歌单

精简的首页布局

播放界面很干净

播放界面很干净

另外QQ音乐官方居然支持Linux了,可喜可贺!

下载地址

QQ音乐安卓App精简版: https://frp.v2fy.com/QQMusic%E8%BD%BB%E9%87%8F%E7%89%88/

本文永久更新地址(欢迎来读留言,写评论):

https://www.v2fy.com/p/2022-05-11-qq-music-1652267193000

分类
Chrome插件英雄榜

Chrome插件英雄榜113《SVG Export》将SVG矢量图导出为任意尺寸的PNG图片


title: Chrome插件英雄榜113《SVG Export》将SVG矢量图导出为任意尺寸的PNG图片

可缩放矢量图形(英语:Scalable Vector Graphics,SVG)是一种基于可扩展标记语言(XML),用于描述二维矢量图形的图形格式。SVG由W3C制定,是一个开放标准。

SVG非常适合作为品牌Logo, 因为无论放大多少倍, 都不会失真, 而在制作PPT或Word的过程中, 往往需要PNG格式的图片, 《SVG Export》这款扩展程序,可以将网页上的SVG矢量图导出为任意尺寸的PNG图片.

使用效果

  • 将svg转换为任意尺寸的png

将svg转换为任意尺寸的png

  • 当然你也可以直接下载svg, 甚至直接一键复制svg到设计软件Sketch

复制svg到设计软件Sketch-001

复制svg到设计软件Sketch-002

svg可以用文本表示,内容如下

  • youtube svg文本
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 20" preserveAspectRatio="xMidYMid meet" focusable="false" class="style-scope yt-icon" style="pointer-events: none; display: block; width: 100%; height: 100%;" width="90" height="20"><g viewBox="0 0 90 20" preserveAspectRatio="xMidYMid meet" class="style-scope yt-icon" fill="#FFFFFF"><g class="style-scope yt-icon" fill="#FFFFFF"><path d="M27.9727 3.12324C27.6435 1.89323 26.6768 0.926623 25.4468 0.597366C23.2197 2.24288e-07 14.285 0 14.285 0C14.285 0 5.35042 2.24288e-07 3.12323 0.597366C1.89323 0.926623 0.926623 1.89323 0.597366 3.12324C2.24288e-07 5.35042 0 10 0 10C0 10 2.24288e-07 14.6496 0.597366 16.8768C0.926623 18.1068 1.89323 19.0734 3.12323 19.4026C5.35042 20 14.285 20 14.285 20C14.285 20 23.2197 20 25.4468 19.4026C26.6768 19.0734 27.6435 18.1068 27.9727 16.8768C28.5701 14.6496 28.5701 10 28.5701 10C28.5701 10 28.5677 5.35042 27.9727 3.12324Z" fill="#FF0000" class="style-scope yt-icon"></path><path d="M11.4253 14.2854L18.8477 10.0004L11.4253 5.71533V14.2854Z" fill="#FFFFFF" class="style-scope yt-icon"></path></g><g class="style-scope yt-icon" fill="#FFFFFF"><g id="youtube-paths" class="style-scope yt-icon" fill="#FFFFFF"><path d="M34.6024 13.0036L31.3945 1.41846H34.1932L35.3174 6.6701C35.6043 7.96361 35.8136 9.06662 35.95 9.97913H36.0323C36.1264 9.32532 36.3381 8.22937 36.665 6.68892L37.8291 1.41846H40.6278L37.3799 13.0036V18.561H34.6001V13.0036H34.6024Z" class="style-scope yt-icon" fill="#FFFFFF"></path><path d="M41.4697 18.1937C40.9053 17.8127 40.5031 17.22 40.2632 16.4157C40.0257 15.6114 39.9058 14.5437 39.9058 13.2078V11.3898C39.9058 10.0422 40.0422 8.95805 40.315 8.14196C40.5878 7.32588 41.0135 6.72851 41.592 6.35457C42.1706 5.98063 42.9302 5.79248 43.871 5.79248C44.7976 5.79248 45.5384 5.98298 46.0981 6.36398C46.6555 6.74497 47.0647 7.34234 47.3234 8.15137C47.5821 8.96275 47.7115 10.0422 47.7115 11.3898V13.2078C47.7115 14.5437 47.5845 15.6161 47.3329 16.4251C47.0812 17.2365 46.672 17.8292 46.1075 18.2031C45.5431 18.5771 44.7764 18.7652 43.8098 18.7652C42.8126 18.7675 42.0342 18.5747 41.4697 18.1937ZM44.6353 16.2323C44.7905 15.8231 44.8705 15.1575 44.8705 14.2309V10.3292C44.8705 9.43077 44.7929 8.77225 44.6353 8.35833C44.4777 7.94206 44.2026 7.7351 43.8074 7.7351C43.4265 7.7351 43.156 7.94206 43.0008 8.35833C42.8432 8.77461 42.7656 9.43077 42.7656 10.3292V14.2309C42.7656 15.1575 42.8408 15.8254 42.9914 16.2323C43.1419 16.6415 43.4123 16.8461 43.8074 16.8461C44.2026 16.8461 44.4777 16.6415 44.6353 16.2323Z" class="style-scope yt-icon" fill="#FFFFFF"></path><path d="M56.8154 18.5634H54.6094L54.3648 17.03H54.3037C53.7039 18.1871 52.8055 18.7656 51.6061 18.7656C50.7759 18.7656 50.1621 18.4928 49.767 17.9496C49.3719 17.4039 49.1743 16.5526 49.1743 15.3955V6.03751H51.9942V15.2308C51.9942 15.7906 52.0553 16.188 52.1776 16.4256C52.2999 16.6631 52.5045 16.783 52.7914 16.783C53.036 16.783 53.2712 16.7078 53.497 16.5573C53.7228 16.4067 53.8874 16.2162 53.9979 15.9858V6.03516H56.8154V18.5634Z" class="style-scope yt-icon" fill="#FFFFFF"></path><path d="M64.4755 3.68758H61.6768V18.5629H58.9181V3.68758H56.1194V1.42041H64.4755V3.68758Z" class="style-scope yt-icon" fill="#FFFFFF"></path><path d="M71.2768 18.5634H69.0708L68.8262 17.03H68.7651C68.1654 18.1871 67.267 18.7656 66.0675 18.7656C65.2373 18.7656 64.6235 18.4928 64.2284 17.9496C63.8333 17.4039 63.6357 16.5526 63.6357 15.3955V6.03751H66.4556V15.2308C66.4556 15.7906 66.5167 16.188 66.639 16.4256C66.7613 16.6631 66.9659 16.783 67.2529 16.783C67.4974 16.783 67.7326 16.7078 67.9584 16.5573C68.1842 16.4067 68.3488 16.2162 68.4593 15.9858V6.03516H71.2768V18.5634Z" class="style-scope yt-icon" fill="#FFFFFF"></path><path d="M80.609 8.0387C80.4373 7.24849 80.1621 6.67699 79.7812 6.32186C79.4002 5.96674 78.8757 5.79035 78.2078 5.79035C77.6904 5.79035 77.2059 5.93616 76.7567 6.23014C76.3075 6.52412 75.9594 6.90747 75.7148 7.38489H75.6937V0.785645H72.9773V18.5608H75.3056L75.5925 17.3755H75.6537C75.8724 17.7988 76.1993 18.1304 76.6344 18.3774C77.0695 18.622 77.554 18.7443 78.0855 18.7443C79.038 18.7443 79.7412 18.3045 80.1904 17.4272C80.6396 16.5476 80.8653 15.1765 80.8653 13.3092V11.3266C80.8653 9.92722 80.7783 8.82892 80.609 8.0387ZM78.0243 13.1492C78.0243 14.0617 77.9867 14.7767 77.9114 15.2941C77.8362 15.8115 77.7115 16.1808 77.5328 16.3971C77.3564 16.6158 77.1165 16.724 76.8178 16.724C76.585 16.724 76.371 16.6699 76.1734 16.5594C75.9759 16.4512 75.816 16.2866 75.6937 16.0702V8.96062C75.7877 8.6196 75.9524 8.34209 76.1852 8.12337C76.4157 7.90465 76.6697 7.79646 76.9401 7.79646C77.2271 7.79646 77.4481 7.90935 77.6034 8.13278C77.7609 8.35855 77.8691 8.73485 77.9303 9.26636C77.9914 9.79787 78.022 10.5528 78.022 11.5335V13.1492H78.0243Z" class="style-scope yt-icon" fill="#FFFFFF"></path><path d="M84.8657 13.8712C84.8657 14.6755 84.8892 15.2776 84.9363 15.6798C84.9833 16.0819 85.0821 16.3736 85.2326 16.5594C85.3831 16.7428 85.6136 16.8345 85.9264 16.8345C86.3474 16.8345 86.639 16.6699 86.7942 16.343C86.9518 16.0161 87.0365 15.4705 87.0506 14.7085L89.4824 14.8519C89.4965 14.9601 89.5035 15.1106 89.5035 15.3011C89.5035 16.4582 89.186 17.3237 88.5534 17.8952C87.9208 18.4667 87.0247 18.7536 85.8676 18.7536C84.4777 18.7536 83.504 18.3185 82.9466 17.446C82.3869 16.5735 82.1094 15.2259 82.1094 13.4008V11.2136C82.1094 9.33452 82.3987 7.96105 82.9772 7.09558C83.5558 6.2301 84.5459 5.79736 85.9499 5.79736C86.9165 5.79736 87.6597 5.97375 88.1771 6.32888C88.6945 6.684 89.059 7.23433 89.2707 7.98457C89.4824 8.7348 89.5882 9.76961 89.5882 11.0913V13.2362H84.8657V13.8712ZM85.2232 7.96811C85.0797 8.14449 84.9857 8.43377 84.9363 8.83593C84.8892 9.2381 84.8657 9.84722 84.8657 10.6657V11.5641H86.9283V10.6657C86.9283 9.86133 86.9001 9.25221 86.846 8.83593C86.7919 8.41966 86.6931 8.12803 86.5496 7.95635C86.4062 7.78702 86.1851 7.7 85.8864 7.7C85.5854 7.70235 85.3643 7.79172 85.2232 7.96811Z" class="style-scope yt-icon" fill="#FFFFFF"></path></g></g></g></svg>

《SVG Export》 下载链接

Chrome

Edge

FireFox

离线安装包

小结

svg是一种优雅的图片格式, 它开放标准, 广泛应用于web领域, 工程师们使用svg, 可以告别各种高清屏幕的适配问题, 我们可以将svg视为曲线与颜色填充的混合体, 由于曲线可以用数学公式表达, 所以放大多少倍也不会失真.

写在最后(我需要你的支持) / At the end (I need your support)

  • 本文属于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.

分类
公众号「0加1」

开源免费软件推荐-独立调节mac OS运行App的音量


title: 开源免费软件推荐-独立调节mac OS运行App的音量

最近考驾照,要刷驾考宝典的课, 移动端刷课效率很低, 于是我从App Store商店下载了iPad版(M1芯片mac OS特供),运行在mac OS刷课, 但驾考宝典这款App没有提供调节音量的功能,mac OS也无法调节单个App的音量

mac OS下载iPad版App

于是我找了一波第三方软件, 终于找到一款开源免费且好用的软件BackgroundMusic, 开源地址 https://github.com/kyleneideck/BackgroundMusic

使用方法也很简单,安装后,拖动app对应的滑块,即可实时调节音量

调节mac OS 每个App的音量

如果你的网络访问github比较慢, 可以下载我上传到自家服务器的备份版, 下载地址
https://frp.v2fy.com/%E7%8B%AC%E7%AB%8B%E8%B0%83%E8%8A%82mac%20OS%E8%BF%90%E8%A1%8CApp%E7%9A%84%E9%9F%B3%E9%87%8FBackgroundMusic/

本文永久更新地址(欢迎来读留言,写评论):

https://www.v2fy.com/p/2022-05-03-mac-bgm-1651559177000