Create a script that will click on the extension button in the browser.
Hello. My programmer thought about automating this through the backend using Selenium. But he looked at it and said it would be better, faster, and easier to use a script in Js. I have a program that is built on the backend and frontend. The page runs locally in the browser. On the pages with the Excel file, for convenience, an article is loaded, and this is done using HTML, CSS + Js script. And sometimes in the browser itself, various extensions are used, like grammar checking and so on. When there is one article, it is not a problem to click the button once. But when I load 10 - 50 such articles, I think it's clear.
Task for the script.
We add a button to the page. Where the articles are loaded. There are many other buttons of mine from which we can take style copies and so on. And clone one of the buttons for the future button. Now the script itself. What it needs to do.
1. Click the extension button. The button itself appears floating in every visual block where there is an article. The script needs to click on it. One by one. And here is the most important point. It must understand that until the extension has completed its action, it should not go and click on another button in another block. We thought about tracking the response in the console, in the network, but there is nothing written there. There is no response code. So here we will have to latch onto something else. Or wait for a timing, for example, 10 seconds, which is very trivial. Or a more precise option. The script observes how many characters are in the block. For example, there were 1000. After the action of the extension, for example, it checked and corrected errors. The number of characters will change in the block. For the script, this is a signal that the extension has completed its work in this block. And it can go to another block and click the button there.
2. There can be a lot of text in the block. And the extension may write a standard error. With text. How I manually deal with it. I highlight half of the article's text and click the button again. The script needs to have the same logic. If there is an error, highlight half of the article and click the button again. There are different ways to approach this. And how can the script know how much half of the article is? It's simple. Either a percentage of 100 is 50. Or the number of characters from 1000 is 500. That's it.
Applications 1
-
908 11 0 Hello!
I am ready to take on the project, I have over a year of commercial experience in the field of web development, we can have a meeting and discuss all the details of what needs to be done, from my side I guarantee that I will complete the task!
-
2593 427 9 1 I think we can create a browser extension, but we need to discuss the work in more detail.
-
551 33 0 Hello, I can make the script in node.js, details in private messages.
Current freelance projects in the category Javascript and Typescript
Optimization of Core Web Vitals (OpenCart) for Google PageSpeed — Mobile and PC versionsOrder description: We are looking for an experienced frontend developer/OpenCart specialist to optimize the loading speed of the website (categories and product cards) according to Google Core Web Vitals requirements. About the project: * CMS: OpenCart. * Specifics: The site… Content Management Systems, Javascript and Typescript ∙ 16 hours 44 minutes back ∙ 14 proposals |
Optimization of WordPress site speed
113 USD
We will send full details in private messages Goal Maximize website loading speed, especially on mobile devices. KPI (mandatory) After the work is completed, the following metrics must be achieved. Mobile Performance 90+ LCP less than 2.2 sec INP less than 200 ms CLS less than… HTML & CSS, Javascript and Typescript ∙ 1 day 12 hours back ∙ 62 proposals |
Integration of a service cost calculator on the Webflow site
330 USD
We are looking for a developer to integrate a ready-made service cost calculator into our website, created on Webflow. About the company We are engaged in: furniture assembly; TV mounting; mounting shelves, pictures, mirrors, and other items; moving help; heavy lifting; handyman… Javascript and Typescript, Web Programming ∙ 1 day 13 hours back ∙ 58 proposals |
Looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition.There is a working, well-designed project on Odoo 19 Community — CRM for a Ukrainian hotel, already in production-grade infrastructure. We do not plan to rewrite from scratch. We are looking for one person who will take over the project, maintain the working state, and lead it… Javascript and Typescript, Web Programming ∙ 3 days 13 hours back ∙ 2 proposals |
I am looking for an experienced Full Stack developer to create a SaaS service for online stores.Service idea: The client uploads a link to their product feed (XML or CSV). The service automatically retrieves the products, takes their photos, and creates new advertising images based on ready-made templates: price, discount, logo, promotional tags, etc. There should also be… Javascript and Typescript, Web Programming ∙ 4 days 19 hours back ∙ 87 proposals |