Skip to content

Commit 9eb7d81

Browse files
committed
fix
1 parent 1919670 commit 9eb7d81

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Switch Traditional Chinese and Simplified Chinese/Switch Traditional Chinese and Simplified Chinese.user.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// @name:zh-CN 简繁自由切换
44
// @name:en Switch Traditional Chinese and Simplified Chinese
55
// @namespace hoothin
6-
// @version 0.6
7-
// @description 快速轉換整個網頁或者指定輸入框中的簡體中文與繁體中文
8-
// @description:zh-CN 快速转换整个网页或者指定输入框中的简体中文与繁体中文
6+
// @version 0.7
7+
// @description 任意轉換網頁中的簡體中文與繁體中文
8+
// @description:zh-CN 任意转换网页中的简体中文与繁体中文
99
// @description:en Just Switch Traditional Chinese and Simplified Chinese
1010
// @author hoothin
1111
// @include *
@@ -114,11 +114,11 @@
114114

115115
function switchLanguage(){
116116
if(isSimple){
117-
action++;
118-
action=action>3?1:action;
119-
}else{
120117
action--;
121118
action=action<1?3:action;
119+
}else{
120+
action++;
121+
action=action>3?1:action;
122122
}
123123
setLanguage();
124124
}
@@ -145,5 +145,5 @@
145145
}
146146
});
147147

148-
GM_registerMenuCommand("繁簡切換", switchLanguage);
148+
GM_registerMenuCommand("繁簡切換【Ctrl+F8】", switchLanguage);
149149
})();

0 commit comments

Comments
 (0)