Skip to content

Commit

Permalink
新窗口打开推荐主题
Browse files Browse the repository at this point in the history
  • Loading branch information
T authored and T committed Mar 23, 2023
1 parent 1884dfc commit f985015
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inject/topicList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ chrome.storage.sync.get("options", async (data) => {
cell.append(a)
a.href = `/t/${i['id']}`
a.innerText = `${i['score']} - ${i['name']}`
a.target = '_blank'
topicBox.append(cell)
})

Expand All @@ -152,6 +153,7 @@ chrome.storage.sync.get("options", async (data) => {
cell.append(a)
a.href = `/t/${i['topicId']}?p=${i['topicPage']}#r_${i['id']}`
a.innerHTML = `${i['thank']} - ${i['content']}`.replaceAll('<br>', ' ')
a.target = '_blank'
replyBox.append(cell)
})
} else {
Expand Down

0 comments on commit f985015

Please sign in to comment.