Answer the question
In order to leave comments, you need to log in
How to make custom script work in browser?
There is a Chrome browser and there is a script:
// ==UserScript==
// @include http://toster.ru/q/128139
// @exclude file://*
// @grant none
// ==/UserScript==
var reload_interval = 5000;
function xxx() {
window.setTimeout(ReloadPage, reload_interval);
}
function ReloadPage() {
window.location.reload();
}
(function($){
xxx();
})(jQuery)
Answer the question
In order to leave comments, you need to log in
@Aingis it is.
@Aingis removed jQuery and still doesn't work. Only in TemperMonkey.
I called the script xxx.user.js, although it was called that way before.
Moved to extensions. It is displayed there. The page is not updating.
This is what it looks like without jQuery now:
// ==UserScript==
// @include http://toster.ru/q/128139
// @exclude file://*
// @grant none
// ==/UserScript==
var reload_interval = 5000;
function xxx() {
window.setTimeout(ReloadPage, reload_interval);
}
function ReloadPage() {
window.location.reload();
}
(function($){
xxx();
})
try making a bookmarklet
<a href="javascript:void( setTimeout(function(){ location.reload() }, 5000) )">0000</a>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question