Skip to content

Commit

Permalink
0.8.16.26 fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jjj201200 committed May 11, 2017
1 parent f7c5039 commit a87ecb4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/bilibili_injected.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,13 @@
biliHelper.avid = response.videoInfo.avid;
biliHelper.cid = response.videoInfo.danmaku;
biliHelper.index = response.videoInfo.index;
createDanmuList();
});
} else {
createDanmuList();
}
}
function createDanmuList() {
biliHelper.mainBlock.infoSection.find('p').append($('<span>cid: ' + biliHelper.cid + '</span>'));
let commentDiv = $('<div class="section comment"><h3>弹幕下载</h3><p><a class="b-btn w" href="' + biliHelper.protocol + '//comment.bilibili.com/' + biliHelper.cid + '.xml">下载 XML 格式弹幕</a></p></div>');
let url = biliHelper.protocol + '//comment.bilibili.com/' + biliHelper.cid + '.xml';
Expand Down Expand Up @@ -545,7 +550,6 @@
biliHelper.mainBlock.querySection.find('p').empty().append(control);
});
}

let c = null;

window.postMessage ? (c = function(a) {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"options_page": "options.html",
"permissions": [ "downloads", "alarms", "contextMenus", "cookies", "notifications", "storage", "tabs", "webRequest", "webRequestBlocking", "http://*/", "https://*/" ],
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "0.8.16.25",
"version": "0.8.16.26",
"content_security_policy":"script-src 'self' 'unsafe-eval'; object-src 'self'",
"web_accessible_resources": [ "bilibili-helper.woff", "options.min.css", "popup.min.css", "imgs/icon-32.png", "imgs/loading.gif", "imgs/jinkela.png", "imgs/loading.gif", "imgs/helper-neko.png","imgs/icon.png", "options.html", "imgs/menu-icon.png", "live.min.css", "live-content-script.min.js","bilibiliHelperAd.min.css","bilibiliHelperVideo.min.css"]
}
8 changes: 7 additions & 1 deletion src/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,13 @@ <h1 class="title">发现新版本</h1>
<span>手动更新: <a class="url" href="#" target="_blank">下载页面</a> <a href="http://www.3haow.com/drag-and-drop-the-crx-file-to-install-chrome-plugin/" target="_blank">安装教程</a></span></p>
</div>
<div class="highlight">
<h1>更新内容</h1>
<h1>0.8.16.26 更新内容</h1>
<p>
※ 修复弹幕查询功能中,弹幕列表获取错误问题<br>
</p>
</div>
<div class="highlight">
<h1>0.8.16.25 更新内容</h1>
<p>
+ 增加自动设置番剧播放器宽屏的功能<br>
+ 增加自动设置番剧播放器合适位置的功能<br>
Expand Down

0 comments on commit a87ecb4

Please sign in to comment.