This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include the crypto-js library dynamically | |
var script = document.createElement('script'); | |
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js'; | |
script.onload = function () { | |
// The script has loaded, now you can use CryptoJS | |
function extractGameId() { | |
// Replace this with your actual logic to extract the game ID from the DOM | |
const iframe = document.querySelector('iframe[src*="game-"]'); | |
if (iframe) { |
OlderNewer