Greasy Fork is available in English.

게시판 » 제작 요청

阻止页面退出的脚本

§
작성: 2023-10-30

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

Deleted user 821489
§
작성: 2023-10-31
수정: 2023-10-31

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

댓글 남기기

댓글을 남기려면 로그인하세요.