Skip to content

Commit 6a3c0ba

Browse files
authored
Update unlimited.js
Bing Search Bar Unlimited
1 parent ede4933 commit 6a3c0ba

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

unlimited.js

+15-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88

99
async function removeCharLimit() {
1010
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+
1125
const serp = document.querySelector("#b_sydConvCont > cib-serp");
1226

1327
if (!serp) {
@@ -54,10 +68,7 @@
5468
removeCharLimit();
5569
}
5670

71+
const interval = setInterval(initializeExtension, 3000);
5772
window.addEventListener("load", initializeExtension);
5873
window.addEventListener("popstate", initializeExtension);
59-
60-
setInterval(() => {
61-
initializeExtension();
62-
}, 3000);
6374
})();

0 commit comments

Comments
 (0)