File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,4 +33,6 @@ tailwind.config.js
3333package-lock.json
3434yarn.lock
3535
36- .claude /settings.local.json
36+ .claude
37+
38+ CLAUDE.md
Original file line number Diff line number Diff line change 11{
22 "manifest_version" : 3 ,
33 "name" : " __MSG_scriptcat__" ,
4- "version" : " 1.3.0.1500 " ,
4+ "version" : " 1.3.0" ,
55 "author" : " CodFrm" ,
66 "description" : " __MSG_scriptcat_description__" ,
77 "options_ui" : {
Original file line number Diff line number Diff line change @@ -194,6 +194,10 @@ export function errorMsg(e: any): string {
194194
195195// 预计报错有机会在异步Promise里发生,不一定是 chrome.userScripts.getScripts
196196export async function checkUserScriptsAvailable ( ) {
197+ if ( chrome . extension . inIncognitoContext ) {
198+ // 隐身模式不检查 API 可用性,避免冲突
199+ return true ;
200+ }
197201 try {
198202 // Property access which throws if developer mode is not enabled.
199203 // Method call which throws if API permission or toggle is not enabled.
You can’t perform that action at this time.
0 commit comments