File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
chromium/extension/components
firefox/extension/components Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,11 @@ window.buttons = {
92
92
btn . onclick = ( ) => {
93
93
if ( btnType == 'newChat' ) {
94
94
document . querySelector ( this . imports . sites [ site ] . selectors . btns . newChat ) ?. click ( )
95
- tooltip . div . style . opacity = 0
95
+ btn . style . cursor = 'default' ; btn . dispatchEvent ( new Event ( 'mouseleave' ) ) // disable finger/tooltip
96
+ setTimeout ( ( ) => { // restore finger/tooltip after 1s
97
+ btn . style . cursor = 'pointer'
98
+ if ( btn . matches ( ':hover' ) ) btn . dispatchEvent ( new Event ( 'mouseenter' ) )
99
+ } , 1000 )
96
100
} else { // toggle mode
97
101
this . imports . toggleMode ( btnType )
98
102
if ( btnType == 'fullWindow' // disable right btn tooltips on Perplexity homepage to avoid v-flicker
Original file line number Diff line number Diff line change @@ -92,7 +92,11 @@ window.buttons = {
92
92
btn . onclick = ( ) => {
93
93
if ( btnType == 'newChat' ) {
94
94
document . querySelector ( this . imports . sites [ site ] . selectors . btns . newChat ) ?. click ( )
95
- tooltip . div . style . opacity = 0
95
+ btn . style . cursor = 'default' ; btn . dispatchEvent ( new Event ( 'mouseleave' ) ) // disable finger/tooltip
96
+ setTimeout ( ( ) => { // restore finger/tooltip after 1s
97
+ btn . style . cursor = 'pointer'
98
+ if ( btn . matches ( ':hover' ) ) btn . dispatchEvent ( new Event ( 'mouseenter' ) )
99
+ } , 1000 )
96
100
} else { // toggle mode
97
101
this . imports . toggleMode ( btnType )
98
102
if ( btnType == 'fullWindow' // disable right btn tooltips on Perplexity homepage to avoid v-flicker
You can’t perform that action at this time.
0 commit comments