云博客个人主页插件【分类/查询】

举报
Amrf 发表于 2020/01/08 12:47:06 2020/01/08
【摘要】 云博客这边的个人博客页没有个人分类整理功能,所以没什么事就花了些时间整了一个本地存储博客分类信息的chrome插件;已开发者模式加载插件解压后的文件夹之后,进入个人博客形如usersname/id_xxxx的页面后:点击(1)可以过滤显示分类中的所有博客点击(2)可以直接编辑、备份、迁移所有的目录信息点击(3)可以修改对应博客的分类

云博客这边的个人博客页没有个人分类整理功能,所以没什么事就花了些时间整了一个本地存储博客分类信息的chrome插件;

使用方法:

在chrome扩展开发者模式条件下,加载插件解压后的文件夹之后,进入个人博客形如(https://bbs.huaweicloud.com/community/usersnew/id_xxxxx)的个人博客页面后即可使用到插件的相关功能;

/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.1.0说明:

1.问题处理;

/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.0.8说明:

1.增加个人博客收藏功能,被收藏的博客的所有博客信息会被缓存到浏览器以便更快速的进行查阅和查找等;

image.png

2.支持搜索当前博主的所有文章(全文搜索)---使用该功能前必须收藏该博主的个人博客

image.png

3.新增设置指定博客为插件首页的功能(指定目标唯一),首页可以通过点击插件图标快速访问

image.png

4.新增博客分类专栏信息可视化编辑按钮(功能设计仿csdn分类专栏管理)

image.png

image.png


/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.0.7说明:

添加设置个人博客默认主页功能,设置后点击插件图标会跳转到该地址;

/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.0.6说明:

跳页内容错位修复;

/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.0.5说明:

  1. 页面切换分类信息刷新及问题修复

  2. 保障js加载顺序

/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.0.4说明:

  1. 页面切换分类信息刷新及问题修复

/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.0.3说明:

  1. 减少掉不必要的文件加载,提高加载速度;

  2. 部分操作细节优化,提高可靠性;

/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.0.2说明:

image.png

/*----------------------------------------------------------------------------------------------------------------*/

版本更新hblogHelper0.0.1说明:

image.png

已开发者模式加载插件解压后的文件夹之后,进入个人博客形如usersname/id_xxxx(https://bbs.huaweicloud.com/community/usersnew/id_xxxxx)的页面后:

点击(1)可以过滤显示分类中的所有博客

点击(2)可以直接编辑、备份、迁移所有的目录信息

点击(3)可以修改对应博客的分类


/*---------------------------------------------------------------------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------------------------------------------------------------------*/

分类信息参考结构:

image.png

{
	"categorys": [{
		"text": "Java",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_java.svg?sanitize=true",
		"child": [],
		"intro": "2333"
	}, {
		"text": "C++",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_cpp3.svg?sanitize=true",
		"child": [],
		"intro": "c++相关"
	}, {
		"text": "Javascript/nodejs/As/openfl/extension",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_js.svg?sanitize=true",
		"child": [],
		"intro": ""
	}, {
		"text": "C#/dephi",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_csharp.svg?sanitize=true",
		"child": [],
		"intro": ""
	}, {
		"text": "Python/lua",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_python.svg?sanitize=true",
		"child": [],
		"intro": "Python/lua脚本相关"
	}, {
		"text": "Golang/Rust",
		"img": "https://user-images.githubusercontent.com/3613230/41752586-476b0b24-7596-11e8-95fe-8fd3faa21e8a.png",
		"child": [],
		"intro": ""
	}, {
		"text": "数据库",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_sql.svg?sanitize=true",
		"child": [],
		"intro": "mysql,orache,sqlite3,mangodb"
	}, {
		"text": "Opengl/D3D",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_glsl.svg?sanitize=true",
		"child": [],
		"intro": ""
	}, {
		"text": "AI",
		"img": "https://img-blog.csdn.net/20170510181713373?imageView2/1/w/64/h/64/interlace/1",
		"child": [],
		"intro": "人工智能/机器学习"
	}, {
		"text": "设计模式/交互设计",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_apache.svg?sanitize=true",
		"child": [],
		"intro": ""
	}, {
		"text": "分布式系统",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_docker2.svg?sanitize=true",
		"child": [],
		"intro": ""
	}, {
		"text": "iot",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_chef.svg?sanitize=true",
		"child": [],
		"intro": ""
	}, {
		"text": "硬件相关",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_light_config.svg?sanitize=true",
		"child": [],
		"intro": ""
	}, {
		"text": "linux/http",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_vim.svg?sanitize=true",
		"child": [],
		"intro": "linux相关"
	}, {
		"text": "游戏开发",
		"img": "https://img-blog.csdn.net/20180121091749972?imageView2/1/w/224/h/224/interlace/1",
		"child": [],
		"intro": ""
	}, {
		"text": "Team",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_husky.svg?sanitize=true",
		"child": [],
		"intro": ""
	}, {
		"text": "日志",
		"img": "https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_log.svg?sanitize=true",
		"child": [],
		"intro": ""
	}]
}

设置效果如下:

image.png


bug记录:

  • 未订阅时点击分类

info['blogId'] = $html1.find(".cloud-blog-detail-comment-section>div[class^='blog-']").attr('class').replace('blog-','');

  • 新发博客图片不显示

function doImg(){

    $("#blogDatialInfo img").each(function(index){

        if(($(this)["0"].src.indexOf("/ueditor/php/upload/image")>0

  • Promise.any使用范围需要扩大,并且后续脚本添加应该在Promise回调之中



【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

举报
请填写举报理由
0/200