Skip to content

Commit 53a6840

Browse files
committed
Fix: remove github star iframe for popup speed
1 parent f00a35f commit 53a6840

File tree

3 files changed

+28
-90
lines changed

3 files changed

+28
-90
lines changed

popup.html

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,18 @@ <h3>Add New Problem</h3>
131131
<!-- GitHub Star -->
132132
<!-- 先放一个占位符 -->
133133
<div id="github-star-container"
134-
data-bs-toggle="tooltip"
135-
data-bs-placement="top"
136-
title="A star from you would make our day! 🌟">
134+
data-bs-toggle="tooltip"
135+
data-bs-placement="top"
136+
title="A star from you would make our day! 🌟">
137+
<a href="https://github.com/xiaohajiayou/Leetcode-Mastery-Scheduler"
138+
target="_blank"
139+
style="text-decoration: none; display: inline-block; margin-right: 15px;">
140+
<img alt="GitHub"
141+
src="https://img.shields.io/badge/GitHub-%20Star%20Us-color%3D%2523%234a9d9c?style=flat&color=%234a9d9c
142+
"
143+
height="20"
144+
style="margin: 0; vertical-align: middle;">
145+
</a>
137146
</div>
138147

139148
<!-- 将 GitHub iframe 加载逻辑放在单独的脚本文件中 -->
@@ -326,7 +335,7 @@ <h3>Add New Problem</h3>
326335
box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
327336
">
328337
<!-- GitHub Star 按钮 -->
329-
<iframe
338+
<!-- <iframe
330339
src="https://ghbtns.com/github-btn.html?user=xiaohajiayou&repo=Leetcode-Mastery-Scheduler&type=star&count=true"
331340
frameborder="0"
332341
scrolling="0"
@@ -337,7 +346,21 @@ <h3>Add New Problem</h3>
337346
data-bs-placement="top"
338347
data-bs-title="A star from you would make our day! ✨"
339348
style="opacity: 0.9;"
340-
></iframe>
349+
></iframe> -->
350+
<div id="github-problems"
351+
data-bs-toggle="tooltip"
352+
data-bs-placement="top"
353+
title="A star from you would make our day! 🌟">
354+
<a href="https://github.com/xiaohajiayou/Leetcode-Mastery-Scheduler"
355+
target="_blank"
356+
style="text-decoration: none; display: inline-block; margin-right: 15px;">
357+
<img alt="GitHub"
358+
src="https://img.shields.io/badge/GitHub-%20Star%20Us-color%3D%2523%234a9d9c?style=flat&color=%234a9d9c
359+
"
360+
height="20"
361+
style="margin: 0; vertical-align: middle;">
362+
</a>
363+
</div>
341364

342365
<!-- 反馈按钮 -->
343366
<a href="https://github.com/xiaohajiayou/Leetcode-Mastery-Scheduler/issues"
@@ -349,7 +372,6 @@ <h3>Add New Problem</h3>
349372
style="
350373
font-size: 0.875rem;
351374
font-family: 'Courier Prime', monospace;
352-
padding: 0.5rem 1.2rem;
353375
background: #1d2e3d;
354376
border: 1px solid rgba(97, 218, 251, 0.3);
355377
color: #61dafb;

src/popup/script/loadGithubStar.js

Lines changed: 0 additions & 79 deletions
This file was deleted.

webpack.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ module.exports = {
3838
leetcode: './src/popup/script/leetcode.js',
3939
leetcodecn: './src/popup/script/leetcodecn.js',
4040
reminder: './src/content-scripts/reminder.js',
41-
// 添加 GitHub Star 加载脚本
42-
githubStar: {
43-
import: './src/popup/script/loadGithubStar.js',
44-
filename: 'loadGithubStar.js'
45-
}
4641
},
4742
output: {
4843
filename: '[name].js',

0 commit comments

Comments
 (0)