|
@@ -26,7 +26,7 @@
|
|
|
<body>
|
|
<body>
|
|
|
<div class="box owo">
|
|
<div class="box owo">
|
|
|
<h4>网址</h4>
|
|
<h4>网址</h4>
|
|
|
- <input type="text" id="wangzhan" value="https://sexkk01.xyz" stored="">
|
|
|
|
|
|
|
+ <input type="text" id="wangzhan" value="https://www.ip138.com/" stored="">
|
|
|
<h4>代理地址</h4>
|
|
<h4>代理地址</h4>
|
|
|
<input type="text" id="dldz" value="http://api.tianqiip.com/getip?secret=8nieqg3rpcg2ml08&num=1&type=txt&port=1&time=3&mr=1&sign=73a2f344b40ba112a9625e589751c19a" stored="">
|
|
<input type="text" id="dldz" value="http://api.tianqiip.com/getip?secret=8nieqg3rpcg2ml08&num=1&type=txt&port=1&time=3&mr=1&sign=73a2f344b40ba112a9625e589751c19a" stored="">
|
|
|
<h4>停留时间(秒)</h4>
|
|
<h4>停留时间(秒)</h4>
|
|
@@ -34,7 +34,7 @@
|
|
|
<h4>循环间隔(秒)</h4>
|
|
<h4>循环间隔(秒)</h4>
|
|
|
<input type="number" id="xhjg" value="30" stored="">
|
|
<input type="number" id="xhjg" value="30" stored="">
|
|
|
<h4>浏览器身份</h4>
|
|
<h4>浏览器身份</h4>
|
|
|
- <textarea id="ua">userAgent: message.userAgent ? message.userAgent : "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1</textarea>
|
|
|
|
|
|
|
+ <textarea id="ua">Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1</textarea>
|
|
|
<div class="owo button" onclick="window.running=true;start()">启动</div>
|
|
<div class="owo button" onclick="window.running=true;start()">启动</div>
|
|
|
<div class="owo button" onclick="window.running=false;">停止</div>
|
|
<div class="owo button" onclick="window.running=false;">停止</div>
|
|
|
<div id="xsxx"></div>
|
|
<div id="xsxx"></div>
|
|
@@ -52,17 +52,25 @@
|
|
|
.then((dldz) => {
|
|
.then((dldz) => {
|
|
|
console.log(dldz)
|
|
console.log(dldz)
|
|
|
window.xsxx.innerText = `获取到代理:${dldz}`
|
|
window.xsxx.innerText = `获取到代理:${dldz}`
|
|
|
|
|
+ window.dldzSet = dldz
|
|
|
|
|
+ window.dldzSet = window.dldzSet.replaceAll('\r', '').replaceAll('\n', '')
|
|
|
window.electronAPI.openWindow({
|
|
window.electronAPI.openWindow({
|
|
|
|
|
+ "width": 350,
|
|
|
|
|
+ "height": 700,
|
|
|
"url": window.wangzhan.value,
|
|
"url": window.wangzhan.value,
|
|
|
- "proxy": "49.85.115.54:40045",
|
|
|
|
|
- "userAgent": window.ua.value
|
|
|
|
|
|
|
+ "proxy": `http=${window.dldzSet};https=${window.dldzSet}`,
|
|
|
|
|
+ "userAgent": window.ua.value,
|
|
|
|
|
+ "noCache": false
|
|
|
})
|
|
})
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- window.electronAPI.closeAllWindow()
|
|
|
|
|
|
|
+ window.electronAPI.closeAllWindow()
|
|
|
|
|
+ }, parseInt(window.tljg.value) * 1000);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+
|
|
|
if (window.running) {
|
|
if (window.running) {
|
|
|
start()
|
|
start()
|
|
|
}
|
|
}
|
|
|
- }, parseInt(window.xhjg.value) * 1000);
|
|
|
|
|
|
|
+ }, (parseInt(window.xhjg.value) + parseInt(window.tljg.value)) * 1000);
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
.catch((error) => console.error(error));
|
|
.catch((error) => console.error(error));
|