Untitled

 avatar
unknown
plain_text
a year ago
620 B
4
Indexable
<script>
document.addEventListener('DOMContentLoaded', function() {
    // Assuming the message has a specific class or ID, e.g., "message"
    var messages = document.querySelectorAll('.message');
    messages.forEach(function(message) {
        var messageText = message.textContent;
        var link = message.querySelector('a');
        var href = link ? link.getAttribute('href') : '';

        if (messageText.includes('Export') && href && href.match(/\.csv$/)) {
            console.log('Message contains "Export" and CSV file found:', href);
            // Perform your logic here
        }
    });
});
</script>
Editor is loading...
Leave a Comment