console.log('Hello World!');

function waitAndFix(time) {
	window.setTimeout(function() {
		$('div[id^="content_aggregator"] a[href*="/content/oliver-wyman/ow-v2/en/"]').each((k, e) => {
           let href = $(e).attr("href");
           $(e).attr("href", href.replace("/content/oliver-wyman/ow-v2/en/", "/"));
        console.log("ow:", e);
        });
	}, time);
}

$( document ).ready(function() {
	$(".hub-banner .four--columns-tablet-one-column img").attr("src","/etc/designs/oliverwymanv2/custom/980-390.png");
    $(".hub-banner .eight--columns-tablet-one-column img").attr("src","/etc/designs/oliverwymanv2/custom/1300-780.png");

	waitAndFix(1000);

    $(document).on("click", $(".tiles__load-more"), function(e) {
		waitAndFix(1000);
    });
});

