File size: 990 Bytes
b0387d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
window.onload = function () {
    setTimeout(() => {
        // Select all anchor tags with href containing the specified URL
        const links = document.querySelectorAll("a[href*='https://github.com/Chainlit/chainlit']");
        
        links.forEach(link => {
            // Update the content of the link
            link.textContent = "CastroForGeorgia chats aren't used to train our models. CastroForGeorgia can make mistakes. ALWAYS double-check resources.";
            
            // Update the href to point to the new terms of service
            link.href = 'https://andrescastro.us/project/help/terms-of-service';
            
            // Apply CSS to center align the text
            link.style.display = 'block'; // Ensure the link behaves like a block element
            link.style.textAlign = 'center'; // Align the text to the center
            link.style.visibility = 'visible'; // Ensure visibility if necessary
        });
    }, 2000); // 5-second delay
};