Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

257
Views
Tampermonkey run script every 10s

I'm trying to build a script that runs every 10seconds and sends a GM_notification. But I dont receive any notification. What's wrong?

// ==UserScript==
// @name        _Notification test
// @grant       GM_notification
// @require     http://code.jquery.com/jquery-1.12.4.min.js
// ==/UserScript==

setTimeout(function() {

GM_notification ( {title: 'foo', text: '42'} );

}, 1000);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you need match url give url of page and for every 10 sec need setInterval not setTimeout

// ==UserScript==
// @name        _Notification test
// @match       https://stackoverflow.com/questions/70249774/tampermonkey-run-script-every-10s*
// @grant       GM_notification
// @require     http://code.jquery.com/jquery-1.12.4.min.js
// ==/UserScript==




var intervalId = window.setInterval(function(){
  GM_notification ( {
    title: 'foo', text: '42'
} );
}, 10000);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!