You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The current implementation of the inputDetector API works well for a few websites, but there are still many more websites out there that may have bugs that prevent the tooltip from working correctly. To improve this, we need to add more website structures and input field selectors to the API.
To do this, we can follow the steps below:
Open the Tooltip.tsx file.
Locate the handleSelection function.
Uncomment the console.log(isTextInput, activeElement) line.
Open the website in the browser and copy the HTML element shown in the console log.
Inspect the copied element for common classnames, attributes, selectors, etc.
Add the new website structure and input field selectors to the websitesInputFieldConfigOptions array in src/config/input_field_configs.ts file.
Test the new configuration by using the website and checking if the tooltip works correctly.
If the tooltip doesn't work as expected, adjust the threshold value (between 0 and 1) to a suitable value, typically between 0.4 to 0.5.
We encourage developers to contribute to this effort by adding new website structures and input field selectors to the API. By doing this, we can make the inputDetector API more robust and cover a wider range of websites.
Thank you 🙏 🤩
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The current implementation of the
inputDetector
API works well for a few websites, but there are still many more websites out there that may have bugs that prevent the tooltip from working correctly. To improve this, we need to add more website structures and input field selectors to the API.To do this, we can follow the steps below:
Tooltip.tsx
file.handleSelection
function.console.log(isTextInput, activeElement)
line.websitesInputFieldConfigOptions
array insrc/config/input_field_configs.ts
file.This is an example for twitter:
We encourage developers to contribute to this effort by adding new website structures and input field selectors to the API. By doing this, we can make the inputDetector API more robust and cover a wider range of websites.
Thank you 🙏 🤩
The text was updated successfully, but these errors were encountered: