Skip to content

Commit

Permalink
#10,順便取代程式碼中的 tab 字元成 space
Browse files Browse the repository at this point in the history
  • Loading branch information
dannvix committed Aug 19, 2013
1 parent 6e4fb57 commit 5cef625
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions content_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,18 @@ var censorFacebook = function(baseNode) {
// 先看看是不是 uiStreamActionFooter, 表示是同一個新聞有多人分享, 那只要最上面加上就好了
var addedAction = false;
containerNode.parent('div[role=article]').find('.uiStreamActionFooter').each(function(idx, uiStreamSource) {
$(uiStreamSource).find('li:first').append('· ' + buildActionBar({title: titleText, link: linkHref}));
addedAction = true;
$(uiStreamSource).find('li:first').append(' · ' + buildActionBar({title: titleText, link: linkHref}));
addedAction = true;
});

// 再看看單一動態,要加在 .uiStreamSource
if (!addedAction) {
containerNode.parent('div[role=article]').find('.uiStreamSource').each(function(idx, uiStreamSource) {
$($('<span></span>').html(buildActionBar({title: titleText, link: linkHref}))).insertBefore(uiStreamSource);
containerNode.parent('div[role=article]').find('.uiStreamSource').each(function(idx, uiStreamSource) {
$($('<span></span>').html(buildActionBar({title: titleText, link: linkHref}) + ' · ')).insertBefore(uiStreamSource);

// should only have one uiStreamSource
if (idx != 0) console.error(idx + titleText);
});
// should only have one uiStreamSource
if (idx != 0) console.error(idx + titleText);
});
}

/* log the link first */
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "新聞小幫手",
"description": "協助您判別含有誤導資訊的新聞",
"version": "1.0.4.1",
"version": "1.0.4.2",

"permissions": [
"notifications",
Expand Down

0 comments on commit 5cef625

Please sign in to comment.