// Option B: Run by clicking a button on the page const button = document.createElement('button'); button.innerText = 'Run iMacros Automation'; button.style.position = 'fixed'; button.style.bottom = '20px'; button.style.right = '20px'; button.style.zIndex = '9999'; button.style.padding = '10px 20px'; button.style.backgroundColor = '#4CAF50'; button.style.color = 'white'; button.style.border = 'none'; button.style.borderRadius = '5px'; button.style.cursor = 'pointer'; button.onclick = startAutomation; document.body.appendChild(button);
// Step 2: Wait for login to complete (optional, can add a delay) setTimeout(() => { // Step 3: Extract data runiMacros(extractDataMacro); imacros extension
(function() { 'use strict';
// Step 1: Login runiMacros(loginMacro); // Option B: Run by clicking a button