In example.com/page/1, I run a user script JavaScript via a user script manager like Tampermonkey but for some reason this webpage is always redirected to example.com/page/2.
How could I re-run the JavaScript right after the redirection was completed?
Using a global // @match *://*/* doesn’t help for some reason, i.e. it just won’t cover the redirect.
I think LocalStorage is a topic I should learn to know how to do that. Am I wrong?
In the third part of the code, were 'match' is available, I have tried to block two websites and didn’t succeed, unless a specific // @match *://DOMAIN_TLD_1/*/* was used alongside the more general // @match *://*/*.
But, for some reason, If I run that third part of the code in a separate, standalone script, it does work only with the general // @match *://*/*, so I was probably wrong about redirects, it’s not redirects, but running all three code blocks together causing some clashing maybe.