Skip to content

Commit

Permalink
Merge pull request #1 from ShaneXie/bugfix/adapt-new-twitch-layout
Browse files Browse the repository at this point in the history
move button to new position
  • Loading branch information
axe-me authored Jan 18, 2017
2 parents f3218aa + 5e48b66 commit 6b6babc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
var chatOb = new MutationObserver(newChatMsgHandler);
var chatObConfig = { childList: true };

var dmBtn = "<span><a class='button primary dark' id='dmTogglelBtn'><span>Turn Danmaku OFF</span></a></span>"
var dmBtn = "<dd class='cn-tabs__button'><a class='button primary dark' id='dmTogglelBtn'><span>Turn Danmaku OFF</span></a></dd>"

/***************Construct Danmaku Object*********************/
var Danmaku = function (basicInfo) {
Expand Down Expand Up @@ -204,10 +204,10 @@
}

function insertToggleBtn () {
if ( $(".channel-actions").length ) {
if ( $(".cn-tabs--2").length ) {
clearInterval(chkActionItv);
if ( $("#dmTogglelBtn").length === 0 ) {
$(".channel-actions").append(dmBtn);
$(".cn-tabs--2").append(dmBtn);
$( "#dmTogglelBtn" ).click(toggleDanmu);
};
};
Expand Down
2 changes: 1 addition & 1 deletion app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Twitch Danmaku",
"description": "Display Twitch chat messages on streaming player.",
"version": "1.1.1",
"version": "1.1.2",

"icons": {
"16": "assets/icon-16.png",
Expand Down
Binary file modified screenshoot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified twitchDanmaku.crx
Binary file not shown.

0 comments on commit 6b6babc

Please sign in to comment.