You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
843 B
24 lines
843 B
document.addEventListener('DOMContentLoaded', function() {
|
|
var openIncognitoButton = document.getElementById('openIncognito');
|
|
var usernameInput = document.getElementById('username');
|
|
var passwordInput = document.getElementById('password');
|
|
|
|
openIncognitoButton.addEventListener('click', function() {
|
|
const username = usernameInput.value;
|
|
const password = passwordInput.value;
|
|
|
|
chrome.runtime.sendMessage({
|
|
action: 'openIncognitoDouyin',
|
|
username: username,
|
|
password: password
|
|
});
|
|
});
|
|
|
|
document.getElementById('openLive').addEventListener('click', () => {
|
|
const liveId = document.getElementById('liveId').value;
|
|
if (liveId) {
|
|
const liveUrl = `https://live.douyin.com/${liveId}`;
|
|
chrome.runtime.sendMessage({ action: 'openLiveIncognito', url: liveUrl });
|
|
}
|
|
});
|
|
});
|