From e6e17bdfd178e636031d91b85affed66346e5219 Mon Sep 17 00:00:00 2001 From: T Date: Thu, 23 Mar 2023 22:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E5=A2=9E=E5=8A=A0=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E6=8C=89=E9=92=AE=E8=B7=B3=E8=BD=AC=E8=87=B3=20vDaily?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inject/topicList/index.css | 4 ++++ inject/topicList/index.js | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/inject/topicList/index.css b/inject/topicList/index.css index 45cfea6..3e6b649 100644 --- a/inject/topicList/index.css +++ b/inject/topicList/index.css @@ -29,4 +29,8 @@ #my-recent-topics { display: none; +} + +.vdaily { + float: right; } \ No newline at end of file diff --git a/inject/topicList/index.js b/inject/topicList/index.js index c6789ee..b0e08a8 100644 --- a/inject/topicList/index.js +++ b/inject/topicList/index.js @@ -129,6 +129,15 @@ chrome.storage.sync.get("options", async (data) => { topicTitle.innerText = 'vDaily 推荐主题' topicBox.append(topicTitle) + + let more = document.createElement('a') + more.innerText = '更多' + more.classList.add('vdaily') + more.target = '_blank' + more.href = 'https://vdaily.huguotao.com' + replyTitle.append(more) + topicTitle.append(more.cloneNode(1)) + let topicList = await fetch('https://vdaily.huguotao.com/api/topic/recommend') topicList = await topicList.json() topicList.map(i => {