PageSourceSearch

https://smartmoneycymru.co.uk/Scripts/footerScripts.js

js smartmoneycymru.co.uk collected 2026-10-07 11:13:25 UTC 994 bytes, 32 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2	const allAnchorTags = document.querySelectorAll('a[target="_blank"]');
3
4	if (allAnchorTags && allAnchorTags.length > 0) {
5		allAnchorTags.forEach(function (anchorTag) {
6			if (anchorTag && !anchorTag.hasAttribute('rel')) {
7				anchorTag.setAttribute('rel', 'noopener');
8			}
9		});
10	}
11
12	const footerSoc = document.querySelector('.footer-soc');
13
14	if (footerSoc) {
15		const anchorTags = footerSoc.querySelectorAll('a');
16
17		if (anchorTags && anchorTags.length > 0) {
18			anchorTags.forEach(anchor => {
19				const pattern = "https://";
20                const matches = anchor.href.match(new RegExp(pattern, 'g'));
21
22				if (matches && matches.length > 1) {
23                    const secondIndex = anchor.href.indexOf(pattern, anchor.href.indexOf(pattern) + pattern.length);
24
25					if (secondIndex && secondIndex !== -1) {
26						anchor.href = anchor.href.substring(secondIndex);
27					}
28				}
29			});
30		}
31	}
32});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.