File tree 4 files changed +9
-5
lines changed
4 files changed +9
-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
+ const navicon = document . getElementById ( 'infToggleFavicon' )
67
+ if ( navicon ) navicon . src = `${ // update navicon color in case scheme changed
67
68
config . assetHostURL } media/images/icons/infinity-symbol/${
68
69
chatgpt . isDarkMode ( ) ? 'white' : 'black' } /icon32.png`
69
70
}
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
+ const navicon = document . getElementById ( 'infToggleFavicon' )
67
+ if ( navicon ) navicon . src = `${ // update navicon color in case scheme changed
67
68
config . assetHostURL } media/images/icons/infinity-symbol/${
68
69
chatgpt . isDarkMode ( ) ? 'white' : 'black' } /icon32.png`
69
70
}
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.3
202
+ // @version 2024.6.25.4
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
+ const navicon = document . getElementById ( 'infToggleFavicon' )
556
+ if ( navicon ) navicon . src = `${ // update navicon color in case scheme changed
556
557
config . assetHostURL } media/images/icons/infinity-symbol/${
557
558
chatgpt . isDarkMode ( ) ? 'white' : 'black' } /icon32.png`
558
559
}
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
+ const navicon = document . getElementById ( 'infToggleFavicon' )
67
+ if ( navicon ) navicon . src = `${ // update navicon color in case scheme changed
67
68
config . assetHostURL } media/images/icons/infinity-symbol/${
68
69
chatgpt . isDarkMode ( ) ? 'white' : 'black' } /icon32.png`
69
70
}
You can’t perform that action at this time.
0 commit comments