PageSourceSearch

https://www.theamericanconservative.com/wp-content/themes/tac/js/tac-login-redirect.js?ver=6.2.5

js theamericanconservative.com collected 2026-10-01 08:34:03 UTC 578 bytes, 14 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2    // Get all links containing "/login"
3    var loginLinks = document.querySelectorAll('a[href*="/login"]');
4
5    // Loop through the links and modify their href
6    loginLinks.forEach(function(link) {
7        // Check if the link already has a query string
8        if (link.href.indexOf('?') > -1) {
9            link.href += '&redirect_to=' + encodeURIComponent(window.location.pathname);
10        } else {
11            link.href += '?redirect_to=' + encodeURIComponent(window.location.pathname);
12        }
13    });
14});

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.