Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Commit

Permalink
disable update
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreeer committed Jun 28, 2016
1 parent bbd64d8 commit 6b70379
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions options.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,59 +268,5 @@ $(document).ready(function () {
return String(year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second);
}

var updateInfo = JSON.parse(bkg_page.getOption('crx_update'));

if (updateInfo.version && bkg_page.compareVersion(updateInfo.version, chrome.app.getDetails().version) > 0) {
$('#update').show();
$('#update .version').text(updateInfo.version);
$('#update .date').text(formateDatetime(updateInfo.update_time / 1000));
if (updateInfo.detail) {
$('#update .detail').text(updateInfo.detail);
} else {
$('#update .detail').parent().hide();
}
$('#update .url').attr('href', 'https://bilihelper.guguke.net/');
$('#about #update p').addClass('highlight');
}

switch (getQueryVariable('mod')) {
case 'update':
swal({
title : "升级成功",
text : "您已成功升级至哔哩哔哩助手版本 v" + chrome.app.getDetails().version + "!请参阅右侧有关扩展更新内容,再次感谢您对哔哩哔哩助手项目的支持。",
type : "success",
confirmButtonText: "好的",
html : true
});
break;
case 'install':
swal({
title : "安装成功",
text : "感谢您安装哔哩哔哩助手版本 v" + chrome.app.getDetails().version + "!请根据您的需要在左侧更改扩展的选项,右侧为有关扩展的相关介绍和说明。使用此扩展前请您阅读相关<a href=\"http://addons-privacy.com/\" target=\"_blank\">使用协议和隐私策略</a>。",
type : "success",
confirmButtonText: "同意并开始使用扩展",
html : true,
//closeOnConfirm: false
}, function () {
//$('#support_qm').click();
});
break;
case 'new':
if (updateInfo.version) {
swal({
title : "发现新版本",
text : "发现新版哔哩哔哩助手: v" + updateInfo.version + "<br/>您当前使用的版本是: v" + chrome.app.getDetails().version + "<br/>如果您不能通过 Google 自动更新扩展或者在使用上遇到严重的问题,建议您参阅右侧信息,手动更新。",
type : "warning",
confirmButtonText: "好的",
cancelButtonText : "不再提醒",
html : true,
showCancelButton : true
}, function (isConfirm) {
!isConfirm && bkg_page.setOption("versionNotify", 'off', false);
});
}
break;
}

window.history.replaceState({}, document.title, '/options.html');
});

5 comments on commit 6b70379

@jjj201200
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最新的版本已经添加了不再提醒更新按钮,没必要暴力的把他整个删掉的233,毕竟更新还是需要的嘛

@myfreeer
Copy link
Owner Author

@myfreeer myfreeer commented on 6b70379 Jul 3, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jjj201200
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有很大一部分人并不能随时都翻墙的,所以才准备gugu 的站来提供crx下载

@myfreeer
Copy link
Owner Author

@myfreeer myfreeer commented on 6b70379 Jul 4, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sftt
Copy link

@sftt sftt commented on 6b70379 Jul 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

或者能否判断出是通过Chrome商店安装的,就完全不检查更新?谢谢

Please sign in to comment.