File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 63
63
if ( isGPT4oUI ) navToggleDiv . style . flexGrow = 'unset' // overcome OpenAI .grow
64
64
if ( ! firstLink ) parentToInsertInto . children [ 0 ] . style . marginBottom = '5px'
65
65
navToggleDiv . style . paddingLeft = '8px'
66
- document . getElementById ( 'infToggleFavicon' ) . src = `${ // update navicon color in case scheme changed
66
+ document . getElementById ( 'infToggleFavicon' ) ? .src = `${ // update navicon color in case scheme changed
67
67
config . assetHostURL } media/images/icons/infinity-symbol/${
68
68
chatgpt . isDarkMode ( ) ? 'white' : 'black' } /icon32.png`
69
69
}
Original file line number Diff line number Diff line change 63
63
if ( isGPT4oUI ) navToggleDiv . style . flexGrow = 'unset' // overcome OpenAI .grow
64
64
if ( ! firstLink ) parentToInsertInto . children [ 0 ] . style . marginBottom = '5px'
65
65
navToggleDiv . style . paddingLeft = '8px'
66
- document . getElementById ( 'infToggleFavicon' ) . src = `${ // update navicon color in case scheme changed
66
+ document . getElementById ( 'infToggleFavicon' ) ? .src = `${ // update navicon color in case scheme changed
67
67
config . assetHostURL } media/images/icons/infinity-symbol/${
68
68
chatgpt . isDarkMode ( ) ? 'white' : 'black' } /icon32.png`
69
69
}
Original file line number Diff line number Diff line change 199
199
// @description :zh-TW 從無所不知的 ChatGPT 生成無窮無盡的答案 (用任何語言!)
200
200
// @author Adam Lui
201
201
// @namespace https://github.com/adamlui
202
- // @version 2024.6.25.2
202
+ // @version 2024.6.25.3
203
203
// @license MIT
204
204
// @match *://chatgpt.com/*
205
205
// @match *://chat.openai.com/*
552
552
if ( isGPT4oUI ) navToggleDiv . style . flexGrow = 'unset' // overcome OpenAI .grow
553
553
if ( ! firstLink ) parentToInsertInto . children [ 0 ] . style . marginBottom = '5px'
554
554
navToggleDiv . style . paddingLeft = '8px'
555
- document . getElementById ( 'infToggleFavicon' ) . src = `${ // update navicon color in case scheme changed
555
+ document . getElementById ( 'infToggleFavicon' ) ? .src = `${ // update navicon color in case scheme changed
556
556
config . assetHostURL } media/images/icons/infinity-symbol/${
557
557
chatgpt . isDarkMode ( ) ? 'white' : 'black' } /icon32.png`
558
558
}
Original file line number Diff line number Diff line change 63
63
if ( isGPT4oUI ) navToggleDiv . style . flexGrow = 'unset' // overcome OpenAI .grow
64
64
if ( ! firstLink ) parentToInsertInto . children [ 0 ] . style . marginBottom = '5px'
65
65
navToggleDiv . style . paddingLeft = '8px'
66
- document . getElementById ( 'infToggleFavicon' ) . src = `${ // update navicon color in case scheme changed
66
+ document . getElementById ( 'infToggleFavicon' ) ? .src = `${ // update navicon color in case scheme changed
67
67
config . assetHostURL } media/images/icons/infinity-symbol/${
68
68
chatgpt . isDarkMode ( ) ? 'white' : 'black' } /icon32.png`
69
69
}
You can’t perform that action at this time.
0 commit comments