@@ -335,7 +335,7 @@ class ScriptEditor {
335335 }
336336 this . setupBackgroundConnection ( ) ;
337337 this . codeEditorManager . updateEditorLintAndAutocomplete ( ) ;
338- this . applyTheme ( ) ;
338+ window . applyTheme ( ) ;
339339
340340 setTimeout ( ( ) => this . codeEditorManager . focus ( ) , 100 ) ;
341341 } catch ( error ) {
@@ -470,25 +470,17 @@ class ScriptEditor {
470470
471471 const { code, sourceUrl } = aiData ;
472472
473- console . log ( '📥 Loading AI-generated script...' ) ;
474-
475473 // Validate and enhance the AI-generated script
476474 const enhanced = ScriptAnalyzer . validateAndEnhanceMetadata ( code , {
477475 url : sourceUrl || '' ,
478476 hostname : sourceUrl ? new URL ( sourceUrl ) . hostname : '' ,
479477 userPrompt : 'AI Generated Script'
480478 } ) ;
481-
482- // Log detected APIs and any warnings
483- console . log ( '🔍 Analysis complete:' ) ;
484- console . log ( ' 📊 Detected GM APIs:' , Object . keys ( enhanced . detectedApis || { } ) . length ) ;
485479
486480 if ( enhanced . warnings && enhanced . warnings . length > 0 ) {
487- console . log ( ' ⚠️ Issues found and fixed:' ) ;
488481 enhanced . warnings . forEach ( warning => {
489- console . log ( ` - ${ warning . message } ` ) ;
490482 if ( warning . suggestion ) {
491- console . log ( ` 💡 ${ warning . suggestion } ` ) ;
483+ console . log ( ` ${ warning . suggestion } ` ) ;
492484 }
493485 } ) ;
494486
@@ -516,9 +508,8 @@ class ScriptEditor {
516508 // Clean up storage
517509 await chrome . storage . local . remove ( key ) ;
518510
519- console . log ( '✅ AI script loaded successfully' ) ;
520511 } catch ( err ) {
521- console . error ( '❌ Error loading AI script:' , err ) ;
512+ console . error ( 'Error loading AI script:' , err ) ;
522513 this . ui . showStatusMessage ( 'Failed to load AI-generated script' , 'error' ) ;
523514 }
524515 }
0 commit comments