ssborbis / ContextSearch-web-ext

Search engine manager for modern browsers
315 stars 35 forks source link

How to add this searcg engin, it looks rare! #693

Closed runningcheese closed 1 month ago

runningcheese commented 2 months ago

Website: https://kimi.moonshot.cn I've tried all id and class, but not working. Thanks in advance.

Update: It's works with this code. document.querySelector('[contenteditable]').textContent = searchTerms;

But the problem is, This website is built with the React framework. If we directly insert content, the search icon at the end won't be clickable. Can this issue be resolved?

iShot_2024-05-11_22 04 50 iShot_2024-05-11_22 05 35

@ssborbis

ssborbis commented 2 months ago

I can't access that site to test. It just stalls.

ssborbis commented 2 months ago

Ok, I got in via VPN but there's some kind of login before I can search.

image

runningcheese commented 2 months ago

the website need account to use. and the problem is, i can't send "searchTerms" to input area, i have tried all id and class, but it looks different. would you help me out? thanks @ssborbis

ssborbis commented 2 months ago

Try something like

document.querySelector('[contenteditable]').textContent = searchTerms;
runningcheese commented 1 month ago

Update: It's works with this code. document.querySelector('[contenteditable]').textContent = searchTerms;

But the problem is, This website is built with the React framework. If we directly insert content, the search icon at the end won't be clickable. Can this issue be resolved?

iShot_2024-05-11_22 04 50 iShot_2024-05-11_22 05 35

Thank you in advance.

@ssborbis