Skip to content

Commit

Permalink
Fix #3
Browse files Browse the repository at this point in the history
Ready to release v0.6.2
  • Loading branch information
zacyu committed Sep 15, 2014
1 parent af41538 commit 474f6ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions bilibili_injected.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
(function() {
if (typeof biliHelper !== "undefined") return false;

console.log("initializing");
if ($("html").hasClass("bilibili-helper")) return false;

var adModeOn = false;
window.biliHelper = new Object();
var biliHelper = new Object();

function formatInt(Source, Length) {
var strTemp = "";
Expand Down Expand Up @@ -140,6 +139,7 @@

var biliHelperFunc = function() {
intilize_style();
$("html").addClass("bilibili-helper");
var bili_reg = /\/video\/av([0-9]+)\/(?:index_([0-9]+)\.html)?$/,
urlResult = bili_reg.exec(document.URL);
if (urlResult) {
Expand Down Expand Up @@ -531,5 +531,5 @@
}
}
}
biliHelperFunc();
$(document).ready(biliHelperFunc);
})();
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"options_page": "options.html",
"permissions": [ "alarms", "contextMenus", "cookies", "notifications", "storage", "tabs", "webRequest", "webRequestBlocking", "*://*.bilibili.com/*" ],
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "0.6.1",
"version": "0.6.2",
"web_accessible_resources": [ "template.html", "imgs/icon-32.png", "imgs/loading.gif" ]
}
2 changes: 1 addition & 1 deletion template.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" class="bilibili-helper">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Expand Down

0 comments on commit 474f6ea

Please sign in to comment.