Skip to content

Commit

Permalink
Fix "monkeyback" page inject problem
Browse files Browse the repository at this point in the history
  • Loading branch information
typcn committed Nov 21, 2015
1 parent 34364aa commit 6bc4a92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bilibili/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1277</string>
<string>1282</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down
3 changes: 2 additions & 1 deletion bilibili/WebPages/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function applyUI(){
}catch(e){

}
if(window.location.href.indexOf("av") > 1 || window.location.href.indexOf("topic") > 1 || window.location.href.indexOf("live") > 1){
if(window.location.href.indexOf("av") > 1 || window.location.href.indexOf("topic") > 1 || window.location.href.indexOf("live") > 1 || window.location.href.indexOf("html") > 1){
console.log("getting cid");
try{
var fv=$("param[name='flashvars']").val();
Expand Down Expand Up @@ -66,6 +66,7 @@ function applyUI(){
window.TYPCN_PLAYER_CID = window.TYPCN_PLAYER_CID + '|' + window.location.href + '|' + document.title;
console.log("inject player page");
$('#bofqi').html(window.injectHTML);
$('.player-box').html(window.injectHTML);
var ci = document.querySelector(".cover_image");
if(ci && ci.src){
var ph = document.querySelector(".TYPCN_PLAYER_INJECT_PAGE .player-placeholder");
Expand Down

0 comments on commit 6bc4a92

Please sign in to comment.