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

159
Views
How do I run the script automatically when the page loads?

I have a script that outputs an alert if certain conditions are met (when entered directly into the browser console, it works). But setTimeout() or window.onload and addEventListener are not triggered. The code is located in the Google Chrome extension.

function Check_RM() {
    RM_number = $('#CasePageStnCaseNumberRMIntegerEdit-el').val()
    RM_number_full = RM_number.replace(/\s/g, '');
    check_length = new RegExp("[0-9]{6.6}+$").test(RM_number_full);
    check_number = new RegExp("[2,3,4]+$").test(RM_number_full);
    if (check_number) {
        alert('Заявка есть в Redmine');
    } else {
        console.log('Нет заявки')
    };
}
about 4 years ago · Juan Pablo Isaza
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!