Skip to content

Commit

Permalink
增加讓個人頁面也會顯示 [回報到新聞小幫手]
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnywang committed Aug 20, 2013
1 parent e661a7a commit 7a67772
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@ var censorFacebook = function(baseNode) {
});
}

// 再來是個人頁面
if (!addedAction) {
containerNode.parent('div[role="article"]').siblings('.uiCommentContainer').find('.UIActionLinks').each(function(idx, uiStreamSource){
$(uiStreamSource).append(' · ').append(buildActionBar({title: titleText, link: linkHref}));
addedAction = true;
});
}

/* log the link first */
log_browsed_link(linkHref, titleText);

Expand Down

0 comments on commit 7a67772

Please sign in to comment.