D
D
Diamond2015-11-04 15:09:42
JavaScript
Diamond, 2015-11-04 15:09:42

How to force the browser to execute scripts on a specific page and at a specific time?

Hello! I need my browser (google chrome) to execute a certain script on a certain website after a certain period of time, but I did not find anything on the Internet about this. Maybe there are some plugins? Or the built-in means it is possible to achieve success?
Ps the problem is that after executing the script the page reloads.
Ps Oh, yes, I forgot to say again that the script is not on the page itself, but is executed through the console in DevTools

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HoHsi, 2015-11-04
@HoHsi

var sec = 60; // Выполняется раз в минуту

setInterval(function(){
  // Тут вызов функции
}, sec * 1000);

This is what happens most often on the internet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question