We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Extension could also work for WinCC ViewOfThings Website (Hosted from S7- CPU), if some minor Change apply.
Here the nessary Changes in the "background.js":
Please test the Unified RT side. I have no test opportunity.
let isViewOfThings = tabs[0].url.toLowerCase().endsWith('ViewOfThings/index.html') && tabs[0].title === 'WinCC Unified View-of-Things'; let isWinCcUnified = tabs[0].url.toLowerCase().endsWith('/webrh') && tabs[0].title === 'WinCC Unified RT'; if(isViewOfThings) { chrome.tabs.executeScript( tabs[0].id, { code: ` // console.log('Login!'); setTimeout(function() { var user = document.getElementById('user'); var pass = document.getElementById('pass'); var btn = document.getElementById('loginbutton'); user.value = '${data.user}'; pass.value = '${data2.pass}'; pass.dispatchEvent(new Event('login')); btn.click(); }, ${waitingTime}); ` }); } else if (isWinCcUnified) { chrome.tabs.executeScript( tabs[0].id, { code: ` // console.log('Login!'); setTimeout(function() { var d = document.getElementsByTagName('iframe')[0].contentWindow.document; var user = d.getElementById('username'); var pass = d.getElementById('password'); var btn = d.getElementById('loginFormSubmit'); user.value = '${data.user}'; pass.value = '${data2.pass}'; pass.dispatchEvent(new Event('input')); btn.click(); }, ${waitingTime}); ` }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The Extension could also work for WinCC ViewOfThings Website (Hosted from S7- CPU), if some minor Change apply.
Here the nessary Changes in the "background.js":
Please test the Unified RT side. I have no test opportunity.
The text was updated successfully, but these errors were encountered: