Replace text of links that start with xy

Since I wanted shorter hyperlinks I created a solution based on a previous post that replaces the link text and design of links that start in a certain way.

$(document).on(‘knack-view-render.view_69’, function(event, view, data) {
var links= $(“a[href^='https://xy]”);

links.html(“new link text”);
links.css(‘color’, ‘rgb(50, 50, 50)’);
});

previous post