On-the-fly modifications of the links according to a set of rules (Greasekit / Javascript)
问题 I have an HTML page with loads of entries like this: <a href="https://www.example.co.uk/gp/wine/product?ie=UTF8&asin=123456789&tab=UK_Default" class="PrmryBtnMed" I want to replace all this links so they instead are: https://www.example.co.uk/gp/wine/order?ie=UTF8&asin=1233456789 So, it's quite a complicated search and replace. These are the instructions for a human: Look at the URL. Only make a note of the number after 'asin='. (Forget everything before that and everything after that) Then,