You will need to install a user script manager extension to install this script.
To choose your preferred viewer, click your scripts extension icon, and then choose one of the viewers under the script name (default is imginn):
Changes all Instagram links (profile & posts) on the page to open in the chosen viewer.
Redirects profile links such as https://www.instagram.com/accounts/login/?next=/seblester to https://picuki.com/profile/seblester
Redirects post links such as https://www.instagram.com/accounts/login/?next=/p/CQRLa3co38H to https://picuki.com/media/2598908684723781383
The script can avoid https://www.instagram.com/accounts/login redirects (that have no query strings) only when clicking on Instagram profile or post links from inside the browser, for example, clicking on a Google search result link WILL work, however pasting or dragging a link into the address bar WONT.