Skip to content

Commit

Permalink
发布 2.0.7 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
T authored and T committed Apr 22, 2023
1 parent e347cf2 commit 8a6ff4f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions background.js
Expand Up @@ -24,46 +24,48 @@ chrome.runtime.onInstalled.addListener(async (e) => {
chrome.notifications.create({
type: "basic",
iconUrl: "icon/icon38_msg.png",
title: "更新至 2.0.6",
message: "Base64 Decode 改为弹窗、启用右键 sov2ex 时在所有网页生效,如需反馈欢迎 @sciooga"
});
title: "更新至 2.0.7",
message: "增加楼中楼模式、增加自定义样式市场(选项页进入)、增加 base64 复制按钮、增加高亮用户颜色自定、修复最近回复部分情况不显示的 BUG,如需反馈欢迎 @sciooga"
})

// 2.0.0 checkin typo
let data = await chrome.storage.sync.get("options")
if (data.options.chickin) {
let options = data.options
let options = data.options

if (options.chickin) {
options.checkin = options.chickin
chrome.storage.sync.set({ options })
}

// 2.0.3 增加新功能
if (data.options.vDaily === undefined) {
let options = data.options
if (options.vDaily === undefined) {
options.vDaily = 1
chrome.storage.sync.set({ options })
}

// 2.0.4 新增加功能
if (data.options.searchShortcut === undefined) {
let options = data.options
if (options.searchShortcut === undefined) {
options.searchShortcut = 1
chrome.storage.sync.set({ options })
}

// 2.0.6 新增加功能
if (!data.options.sov2exMenu) {
if (!options.sov2exMenu) {
chrome.contextMenus.update(
"vplus.sov2ex", {
documentUrlPatterns: ['<all_urls>']
})
}

// 2.0.7 新增加功能
if (data.options.nestedComment === undefined) {
let options = data.options
if (options.nestedComment === undefined) {
options.nestedComment = 1
chrome.storage.sync.set({ options })
}
if (options.markColor === undefined) {
options.markColor = '#ff0000'
chrome.storage.sync.set({ options })
}
}
})

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,6 +1,6 @@
{
"name": "v2ex plus",
"version": "2.0.6",
"version": "2.0.7",
"manifest_version": 3,
"description": "优雅便捷的 V2EX 扩展",
"background": {
Expand Down

0 comments on commit 8a6ff4f

Please sign in to comment.