Skip to content

Commit

Permalink
fix: 新增屏蔽拼音/翻译的选项
Browse files Browse the repository at this point in the history
  • Loading branch information
dlzmoe committed Nov 20, 2024
1 parent e1a0e41 commit 43421fd
Show file tree
Hide file tree
Showing 8 changed files with 1,099 additions and 1,004 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- 新增:今日最热帖子排行榜
- 新增:屏蔽拼音/翻译的选项
1,029 changes: 531 additions & 498 deletions dist/linuxdo-scripts.user.js

Large diffs are not rendered by default.

1,029 changes: 531 additions & 498 deletions linuxdo-scripts.user.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linuxdo-scripts",
"version": "0.3.66",
"version": "0.3.67",
"author": "dlzmoe",
"description": "An enhanced script for the linux.do forum",
"type": "module",
Expand Down
13 changes: 7 additions & 6 deletions src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<div id="linuxdoscripts">
<div class="linuxdoscripts-opacity"></div>
<div class="setting-btn">

<ReplyBtn v-show="showreplybtn" />
<!-- 显示回复按钮 -->
<LookOP v-show="showlookop" />
Expand Down Expand Up @@ -131,6 +130,7 @@
</div>
<div class="menu-body-item">
<MenuTranslate :sort="1" v-model="settingData.checked32" />
<isTranslate :sort="1" v-model="settingData.checked32_1" />
</div>
<div class="menu-body-item">
<Themes v-model="settingData.themes" />
Expand All @@ -144,10 +144,7 @@
<button class="save" @click="save">保存</button>
<button class="saveload" @click="saveload">保存并刷新</button>
<button class="floorlottery" @click="openFloorlottery">楼层抽奖</button>
<!-- <a
target="_blank"
href="https://greasyfork.org/scripts/501827"
> -->
<!-- <a target="_blank" href="https://greasyfork.org/scripts/501827"> -->
<button style="margin-left: 8px" class="detection" @click="checkversion">
检测新版本
</button>
Expand Down Expand Up @@ -248,7 +245,9 @@ import Setting5 from "./components/Svg/Setting5.vue";
import Setting6 from "./components/Svg/Setting6.vue";
import Setting7 from "./components/Svg/Setting7.vue";
import MenuTranslate from "./components/BasicSettings/MenuTranslate.vue";
// 拼音翻译功能
import MenuTranslate from "./components/Translate/MenuTranslate.vue";
import isTranslate from "./components/Translate/isTranslate.vue";
export default {
components: {
Expand Down Expand Up @@ -312,6 +311,7 @@ export default {
MenuDisableReplaceState,
MenuRemovePostAvatar,
MenuTranslate,
isTranslate,
MenuHotRankingList,
HotRankingList,
},
Expand Down Expand Up @@ -370,6 +370,7 @@ export default {
checked28: false,
checked29: false,
checked32: false,
checked32_1: false,
checked33: false,
removePostavatarData: {
enable: false,
Expand Down
File renamed without changes.
24 changes: 24 additions & 0 deletions src/components/Translate/isTranslate.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div class="item">
<div class="tit">{{ sort }}. 是否屏蔽拼音/翻译显示</div>
<input
type="checkbox"
:checked="modelValue"
@change="$emit('update:modelValue', $event.target.checked)"
/>
</div>
</template>

<script>
export default {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
created() {
if (this.modelValue) {
$('head').append(`<style>
.topic-body .cooked ruby>rt{display:none!important}
</style>`)
}
},
};
</script>
4 changes: 4 additions & 0 deletions version-log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.67

- 新增:屏蔽拼音/翻译的选项

## 0.3.66

- 新增:今日最热帖子排行榜
Expand Down

0 comments on commit 43421fd

Please sign in to comment.