Winbox Launcher

Cross-platform Winbox connection launcher

Note: For true auto-fill capability, use the browser extension method below.
Recommended Solution: Install this extension for true auto-fill on router login pages.

Installation Steps:

  1. Copy the extension code using the button below
  2. Create the files in a new folder
  3. Open brave://extensions or chrome://extensions
  4. Enable "Developer mode"
  5. Click "Load unpacked" and select the folder

Platform Status

Linux
Ready for configuration
Windows
Ready for configuration
🐧 Configure Linux 🪟 Configure Windows
`, 'popup.js': `document.addEventListener('DOMContentLoaded',function(){const e=document.getElementById("router-ip"),t=document.getElementById("username"),a=document.getElementById("password"),s=document.getElementById("save-btn"),d=document.getElementById("fill-btn"),i=document.getElementById("open-fill-btn"),n=document.getElementById("status"),o=document.getElementById("saved-info");chrome.storage.sync.get(["routerCredentials"],function(c){c.routerCredentials&&(e.value=c.routerCredentials.ip||"",t.value=c.routerCredentials.username||"",a.value=c.routerCredentials.password||"",r(c.routerCredentials))}),s.addEventListener("click",function(){const c={ip:e.value.trim(),username:t.value.trim(),password:a.value.trim()};chrome.storage.sync.set({routerCredentials:c},function(){l("Credentials saved successfully!","success"),r(c)})}),d.addEventListener("click",function(){chrome.tabs.query({active:!0,currentWindow:!0},function(c){chrome.tabs.sendMessage(c[0].id,{action:"autoFill",credentials:{ip:e.value.trim(),username:t.value.trim(),password:a.value.trim()}},function(e){chrome.runtime.lastError?l("Error: "+chrome.runtime.lastError.message,"error"):e&&e.success?l("Auto-fill completed!","success"):l("No login form found on this page.","error")})})}),i.addEventListener("click",function(){const c=e.value.trim();if(!c)return l("Please enter router IP first","error");let t=c;t.startsWith("http")||(t="http://"+t),chrome.tabs.create({url:t},function(e){setTimeout(()=>{chrome.tabs.sendMessage(e.id,{action:"autoFill",credentials:{ip:c,username:t.value.trim(),password:a.value.trim()}})},2e3)})});function l(e,t){n.textContent=e,n.className=\`status \${t}\`,n.style.display="block",setTimeout(()=>{n.style.display="none"},3e3)}function r(e){e.ip&&e.username?o.textContent=\`\${e.ip} - \${e.username}\`:o.textContent="None"}});`, 'content.js': `chrome.runtime.onMessage.addListener(function(e,t,a){if("autoFill"===e.action){const t=c(e.credentials);a({success:t})}return!0});function c(e){console.log("Auto-fill credentials...",e);let t=0,a=["input[type='text']","input[name='username']","input[name='user']","input[id='username']","input[id='user']","#username","#user"],s=["input[type='password']","input[name='password']","input[name='pass']","input[id='password']","input[id='pass']","#password","#pass"];for(const n of a){const a=document.querySelectorAll(n);for(const n of a)if(n.offsetParent){n.value=e.username,n.dispatchEvent(new Event("input",{bubbles:!0})),n.dispatchEvent(new Event("change",{bubbles:!0})),t++;break}if(t>0)break}for(const a of s){const n=document.querySelectorAll(a);for(const a of n)if(a.offsetParent){a.value=e.password,a.dispatchEvent(new Event("input",{bubbles:!0})),a.dispatchEvent(new Event("change",{bubbles:!0})),t++;break}if(t>1)break}return console.log(\`Filled \${t} fields\`),t>0}chrome.storage.sync.get(["routerCredentials","autoFillEnabled"],function(e){e.autoFillEnabled&&e.routerCredentials&&setTimeout(()=>{c(e.routerCredentials)},1e3)});`, 'background.js': `chrome.runtime.onInstalled.addListener(function(){console.log("Router Auto Fill installed"),chrome.storage.sync.set({autoFillEnabled:!0,routerCredentials:{ip:"192.152.13.241:8088",username:"admin",password:"admin"}})}),chrome.tabs.onUpdated.addListener(function(e,t,a){if("complete"===t.status&&a.url&&a.url.includes("192.152.13.241")){chrome.storage.sync.get(["routerCredentials","autoFillEnabled"],function(t){t.autoFillEnabled&&t.routerCredentials&&setTimeout(()=>{chrome.tabs.sendMessage(e,{action:"autoFill",credentials:t.routerCredentials})},1500)})}});` }; let instructionText = "Create these files in a folder:\n\n"; for (const [filename, content] of Object.entries(extensionCode)) { instructionText += `\n${filename}:\n${content}\n`; } // Copy to clipboard navigator.clipboard.writeText(instructionText).then(() => { alert('Extension code copied to clipboard! Paste it into a text editor to see the full files.'); }).catch(() => { alert('Please manually copy the extension code from the console.'); console.log('Extension Code:', extensionCode); }); }); });