Skip to content

Commit 5143cd6

Browse files
committed
fix: 当链接处于 raw 页面时,停止渲染扩展以避免不必要的冲突 #313
1 parent 99c5f00 commit 5143cd6

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- feat: 重构等级对话框为卡片式 UI 并添加可视化样式
1+
- fix: 当链接处于 `raw` 页面时,停止渲染扩展以避免不必要的冲突 #313

docs/docs/version-log.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog / 更新日志
22

3+
## 1.5.27
4+
5+
- fix: 当链接处于 `raw` 页面时,停止渲染扩展以避免不必要的冲突 #313
6+
7+
https://github.com/anghunk/linuxdo-scripts/releases/tag/1.5.27
8+
39
## 1.5.26
410

511
- feat: 重构等级对话框为卡片式 UI 并添加可视化样式

entrypoints/content.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export default defineContentScript({
77
cssInjectionMode: 'ui',
88

99
async main(ctx) {
10+
if (window.location.pathname.includes('/raw/')) return;
11+
1012
const ui = await createShadowRootUi(ctx, {
1113
name: 'linuxdo-scripts-ui',
1214
position: 'inline',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "linuxdo-scripts",
33
"description": "manifest.json description",
4-
"version": "1.5.26",
4+
"version": "1.5.27",
55
"type": "module",
66
"scripts": {
77
"dev": "wxt",

0 commit comments

Comments
 (0)