Discussions » Demandes de création de scripts

阻止页面退出的脚本

§
Posté le: 30/10/2023

跑ai的时候老是手欠,有没有可以阻止某一页面(127.0.0.1)退出的脚本,在控制台通过window.onbeforeunload实现了,不知道油猴该怎么实现

Deleted user 821489
§
Posté le: 31/10/2023
Édité le: 31/10/2023

check hostname. If it has changed, redirect to 127.0.0.1

there is another way. If there are no links to external resources in (127.0.0.1), then you can hide the input panel

"%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" --new-window --app=http://127.0.0.1

Poster une réponse

Connectez-vous pour poster une réponse.