# taboola-pixel/trunk/assets/loading.html

Taboola Pixel, version trunk. 41 lines.

- Page: https://pluginprobe.com/plugins/taboola-pixel/trunk/code/assets/loading.html
- Raw: https://pluginprobe.com/plugins/taboola-pixel/trunk/raw/assets/loading.html
- Modified: 2026-08-12T10:56:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/taboola-pixel/trunk/code/assets/loading.html#L10-L20`.

```html
<!DOCTYPE html>
<html>
<head>
    <title>Loading...</title>
    <script>
        // Function to get URL parameters
        function getParameterByName(name, url = window.location.href) {
            name = name.replace(/[\[\]]/g, '\\$&');
            var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
                results = regex.exec(url);
            if (!results) return null;
            if (!results[2]) return '';
            return decodeURIComponent(results[2].replace(/\+/g, ' '));
        }

        // Get the redirect URL from the query parameter
        var redirectUrl = getParameterByName('url');

        // Validate the URL protocol to prevent javascript: XSS
        function isSafeUrl(url) {
            try {
                var parsed = new URL(url, window.location.href);
                return parsed.protocol === 'http:' || parsed.protocol === 'https:';
            } catch (e) {
                return false;
            }
        }

        // Wait 100ms and then redirect
        if (redirectUrl && isSafeUrl(redirectUrl)) {
            setTimeout(function() {
                window.location.href = redirectUrl;
            }, 100);
        } else {
            document.write('No redirect URL specified.');
        }
    </script>
</head>
<body>
</body>
</html>
```
