WEB3LEARNINGWITHINGER Telegram 1346
Forwarded from zi존파워잼민
에블린인가 이블린인가
https://www.everlyn.ai/
여기 크레딧 녹이는 코드인데
랜덤클릭- >생성클릭이라 단순해서 만들어봤음

text->image는 여러번 테스트를 해봤음
동영상을 만드는건 지금 오류 때문에 못했음 테스트 X
동영상 생성은 24~48시간 안으로 해결 해준다고 함

코드 맨밑에
const delay = 6 * 60 * 1000; 이부분에 있는 6을 바꾸면 딜레이는 달라짐 현재는 6분임.

예시:
const delay = 10 * 60 * 1000; = 10분
const delay = 1 * 60 * 1000; = 1분

코드를 중지할라면 F5를 눌러 새로고침 해주면 됨


+추가 업데이트
과부화 메시지 감지하면 생성버튼을 다시 누르게 끔 업데이트
랜덤 버튼이 씹히는 버그 -> 랜덤버튼 누른 뒤 2초 후 생성버튼 입력
생성버튼 누르는 주기는 3분 주기로 바꿈

동영상 생성은 완벽하게 됨 엊그제부터 돌려봤음 Image to Video Agent 탭 켜놓고 돌리시면 됨

(() => {
// ===== Helper =====
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
const isVisible = (el) => {
if (!el) return false;
const cs = getComputedStyle(el);
const r = el.getBoundingClientRect();
return cs.display !== 'none' && cs.visibility !== 'hidden' &&
parseFloat(cs.opacity || '1') > 0 && r.width > 0 && r.height > 0;
};
const text = (el) => (el.textContent || '').replace(/\s+/g, ' ').trim();

function getButtonByText(label) {
const btns = [...document.querySelectorAll('button')];
let cand = btns.find(b => isVisible(b) && text(b) === label);
if (cand) return cand;
cand = btns.find(b => isVisible(b) && text(b).includes(label));
if (cand) return cand;
return btns.find(b => text(b).includes(label));
}

function strongClick(el) {
try { el.disabled = false; } catch {}
try { el.removeAttribute?.('disabled'); } catch {}
try { el.focus?.(); } catch {}
try { el.click?.(); } catch {}
try {
el.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }));
} catch {}
}

// "고부하" 메시지 탐지
const HIGH_LOAD_MSG = 'We are experiencing high load, please submit your job later';
function isHighLoadVisible() {
const nodes = [...document.querySelectorAll('div, p, span')];
return nodes.some(n => isVisible(n) && text(n) === HIGH_LOAD_MSG);
}

let running = true;
window.stopRandGen = () => { running = false; console.log('Stopped.'); };

console.log('Random → 2초 대기 → Generate 자동 클릭 시작');

(async function loop() {
while (running) {
// 1) Random 클릭 시도
const randomBtn = getButtonByText('Random');
if (randomBtn) {
strongClick(randomBtn);
await sleep(2000); // Random 후 정확히 2초 대기
} else {
console.warn('Random 버튼을 찾지 못함 → Generate로 진행');
}

// 2) Generate 클릭
const genBtn = getButtonByText('Generate');
if (!genBtn) {
console.warn('Generate 버튼을 찾지 못함. 5초 후 재시도');
await sleep(5000);
continue;
}
strongClick(genBtn);

// 3) Generate 후 과부하 메시지 확인 (2초 대기 후 체크)
await sleep(2000);
if (isHighLoadVisible()) {
console.log('고부하 메시지 감지됨 → 2초마다 Generate 재시도');
while (running && isHighLoadVisible()) {
await sleep(2000);
const btn = getButtonByText('Generate');
if (btn) strongClick(btn);
else console.warn('Generate 버튼을 찾지 못함(재시도 루프 중)');
await sleep(1000); // 상태 갱신 여유
}
console.log('과부하 메시지 해제됨 → 즉시 다음 루프로 진행');
continue;
}

// 4) 메시지가 없으면 정확히 3분 대기
const delay = 3 * 60 * 1000;
console.log(`대기 중: ${delay/1000}초… 중단하려면 stopRandGen() 호출`);
await sleep(delay);
}
})();
})();
👍1



tgoop.com/Web3LearningWithInger/1346
Create:
Last Update:

에블린인가 이블린인가
https://www.everlyn.ai/
여기 크레딧 녹이는 코드인데
랜덤클릭- >생성클릭이라 단순해서 만들어봤음

text->image는 여러번 테스트를 해봤음
동영상을 만드는건 지금 오류 때문에 못했음 테스트 X
동영상 생성은 24~48시간 안으로 해결 해준다고 함

코드 맨밑에
const delay = 6 * 60 * 1000; 이부분에 있는 6을 바꾸면 딜레이는 달라짐 현재는 6분임.

예시:
const delay = 10 * 60 * 1000; = 10분
const delay = 1 * 60 * 1000; = 1분

코드를 중지할라면 F5를 눌러 새로고침 해주면 됨


+추가 업데이트
과부화 메시지 감지하면 생성버튼을 다시 누르게 끔 업데이트
랜덤 버튼이 씹히는 버그 -> 랜덤버튼 누른 뒤 2초 후 생성버튼 입력
생성버튼 누르는 주기는 3분 주기로 바꿈

동영상 생성은 완벽하게 됨 엊그제부터 돌려봤음 Image to Video Agent 탭 켜놓고 돌리시면 됨

(() => {
// ===== Helper =====
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
const isVisible = (el) => {
if (!el) return false;
const cs = getComputedStyle(el);
const r = el.getBoundingClientRect();
return cs.display !== 'none' && cs.visibility !== 'hidden' &&
parseFloat(cs.opacity || '1') > 0 && r.width > 0 && r.height > 0;
};
const text = (el) => (el.textContent || '').replace(/\s+/g, ' ').trim();

function getButtonByText(label) {
const btns = [...document.querySelectorAll('button')];
let cand = btns.find(b => isVisible(b) && text(b) === label);
if (cand) return cand;
cand = btns.find(b => isVisible(b) && text(b).includes(label));
if (cand) return cand;
return btns.find(b => text(b).includes(label));
}

function strongClick(el) {
try { el.disabled = false; } catch {}
try { el.removeAttribute?.('disabled'); } catch {}
try { el.focus?.(); } catch {}
try { el.click?.(); } catch {}
try {
el.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }));
} catch {}
}

// "고부하" 메시지 탐지
const HIGH_LOAD_MSG = 'We are experiencing high load, please submit your job later';
function isHighLoadVisible() {
const nodes = [...document.querySelectorAll('div, p, span')];
return nodes.some(n => isVisible(n) && text(n) === HIGH_LOAD_MSG);
}

let running = true;
window.stopRandGen = () => { running = false; console.log('Stopped.'); };

console.log('Random → 2초 대기 → Generate 자동 클릭 시작');

(async function loop() {
while (running) {
// 1) Random 클릭 시도
const randomBtn = getButtonByText('Random');
if (randomBtn) {
strongClick(randomBtn);
await sleep(2000); // Random 후 정확히 2초 대기
} else {
console.warn('Random 버튼을 찾지 못함 → Generate로 진행');
}

// 2) Generate 클릭
const genBtn = getButtonByText('Generate');
if (!genBtn) {
console.warn('Generate 버튼을 찾지 못함. 5초 후 재시도');
await sleep(5000);
continue;
}
strongClick(genBtn);

// 3) Generate 후 과부하 메시지 확인 (2초 대기 후 체크)
await sleep(2000);
if (isHighLoadVisible()) {
console.log('고부하 메시지 감지됨 → 2초마다 Generate 재시도');
while (running && isHighLoadVisible()) {
await sleep(2000);
const btn = getButtonByText('Generate');
if (btn) strongClick(btn);
else console.warn('Generate 버튼을 찾지 못함(재시도 루프 중)');
await sleep(1000); // 상태 갱신 여유
}
console.log('과부하 메시지 해제됨 → 즉시 다음 루프로 진행');
continue;
}

// 4) 메시지가 없으면 정확히 3분 대기
const delay = 3 * 60 * 1000;
console.log(`대기 중: ${delay/1000}초… 중단하려면 stopRandGen() 호출`);
await sleep(delay);
}
})();
})();

BY 돈포하 I Dont focus on hype


Share with your friend now:
tgoop.com/Web3LearningWithInger/1346

View MORE
Open in Telegram


Telegram News

Date: |

best-secure-messaging-apps-shutterstock-1892950018.jpg Today, we will address Telegram channels and how to use them for maximum benefit. 3How to create a Telegram channel? Channel login must contain 5-32 characters Developing social channels based on exchanging a single message isn’t exactly new, of course. Back in 2014, the “Yo” app was launched with the sole purpose of enabling users to send each other the greeting “Yo.”
from us


Telegram 돈포하 I Dont focus on hype
FROM American