ZauSenecZ
ZauSenecZ

Reputation: 23

How to create auto-executing script for Chrome console

The idea is that when I open a certain site in Chrome using a desktop shortcut, I want a certain script to be automatically executed via the console. It is desirable that it starts executing when the page loads. This can be done? Through the properties of the shortcut or maybe a .bat file? I want to make a shortcut for a quick reboot of the router, which, after opening the settings page, will log into the account and click on the necessary buttons to reboot. In manual mode, everything works, but I don’t know how to automate.

Upvotes: 0

Views: 1160

Answers (1)

niklasbec
niklasbec

Reputation: 1044

You can create your own chrome extension that does certain actions depending on what happens in the browser, it is actually quite easy to do and there are multiple guides out there on how to do it.

I will shamelessly plug my own guide on how to create one with react, be aware there are many other and probably better guides out there:

Guide

Upvotes: 1

Related Questions