Answer the question
In order to leave comments, you need to log in
How to set a page to execute a script through regular expressions?
It is necessary that the script is executed only on pages of a certain type.
For a static page, I do this:
let path = window.location.href;
let opt = !path || path === 'url website';
https://website.ru/search?results%5Btable%5D=85&results%5Bfilters%5D%5B0%5D%5Bfield%5D=0&results%5Bfilters%5D%5B0%5D%5Bvalue%5D=число любой длинны&results%5Bfilters%5D%5B1%5D%5Bfield%5D=104
/[0-9]{7}/g
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question