Discussões » Criação de Solicitações

阻止页面退出的脚本

§
Publicado: 30/10/2023

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

Deleted user 821489
§
Publicado: 31/10/2023
Editado: 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

Publicar resposta

Faça o login para publicar uma resposta.