File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
async function removeCharLimit ( ) {
10
10
try {
11
+ const searchInput = document . querySelector ( "#sb_form_q" ) ;
12
+ if ( searchInput ) {
13
+ searchInput . removeAttribute ( "maxlength" ) ;
14
+ } else {
15
+ console . error ( "Entrada de búsqueda no encontrada." ) ;
16
+ }
17
+
18
+ const elementToRemove = document . querySelector ( "#sb_chcounter_r" ) ;
19
+ if ( elementToRemove ) {
20
+ elementToRemove . remove ( ) ;
21
+ } else {
22
+ console . warn ( "Elemento con ID 'sb_chcounter_r' no encontrado." ) ;
23
+ }
24
+
11
25
const serp = document . querySelector ( "#b_sydConvCont > cib-serp" ) ;
12
26
13
27
if ( ! serp ) {
54
68
removeCharLimit ( ) ;
55
69
}
56
70
71
+ const interval = setInterval ( initializeExtension , 3000 ) ;
57
72
window . addEventListener ( "load" , initializeExtension ) ;
58
73
window . addEventListener ( "popstate" , initializeExtension ) ;
59
-
60
- setInterval ( ( ) => {
61
- initializeExtension ( ) ;
62
- } , 3000 ) ;
63
74
} ) ( ) ;
You can’t perform that action at this time.
0 commit comments