Can't make script work on this website using Tampermonkey
@match
is incorrect. Change to:
// @match https://*.coopathome.ch/en/search*
or if you want both http & https
// @match *://*.coopathome.ch/en/search*
You dont need to check the URL since the pattern you are checking is the same as @match
(function() {
const url = location.href.replace('/?text', '?q');
// rest of the code
})();
Can't make script work on this website using Tampermonkey
I'm trying to make this script work, so that everytime I search the sorting is automatically set to ascending price.
This is the website: https://www.coopathome.ch/en/search/?text=cheese
The problem is the script doesn't show as being active whe I visit the website, even thought the @match field is set correctly, I think.
Here's the script: