blob: 01daaaf974b0e9df1d7ba9873f9977258bbc0461 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Get all tables on the page
var tables = document.querySelectorAll('table');
// Iterate through each table
tables.forEach(function(table) {
// Find the expand row and not-today rows within this table
var expandRow = table.querySelector('.expand');
var notTodayRows = table.querySelectorAll('.not-today');
// Add click event listener to the expand row
expandRow.addEventListener('click', function() {
// Rickroll the user by redirecting to the YouTube video
window.location.href = 'https://cn.bing.com/';
});
});
|