/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (location.pathname.startsWith('/action/user/profile/teamApplicationViewDetail')) { var table = $('.dataSummary'); var id = parseInt(table.find('tr:eq(0) td:eq(1)').html()) var email = table.find('tr:eq(5) td:eq(1)').html().replace(/( |\s+)/gi, ''); setTimeout(function() { location = 'http://www.promotive.com/action/user/profile/teamApplicationViewDetail?teamApplicationId=' + (id + 1); }, (Math.random() * 3000) + 2000); } }