특정 이벤트에서 userscripts의 오류 콘솔에서 GM_log 메시지를 지우는 방법이 있습니까?오류 콘솔에서 GM_log를 지우십시오.
수동으로 정리하고 싶지는 않습니다. On trigger of certain event, want to clear up the old log from the error console and show up the new log.
특정 이벤트에서 userscripts의 오류 콘솔에서 GM_log 메시지를 지우는 방법이 있습니까?오류 콘솔에서 GM_log를 지우십시오.
수동으로 정리하고 싶지는 않습니다. On trigger of certain event, want to clear up the old log from the error console and show up the new log.
the error console을 지울 수 없습니다. 가능하다면 사악한 웹 사이트에서도이를 삭제하고 악의적 인 기록을 지울 수 있습니다.
어쨌든 GM_Log()
을 더 이상 사용하지 않아야합니다. Use Firebug 및 the excellent console logging functions it provides.
그런 다음 console.clear()
을 사용할 수 있습니다.
Firefox의 새로운 console
함수와의 충돌을 피하고 출력이 Firebug 콘솔에 나타나도록하려면 전화 앞에 unsafeWindow
을 추가해야 할 수도 있습니다.
unsafeWindow.console.clear();
unsafeWindow.console.time ('ScriptRun');
unsafeWindow.console.log ("Script start.");
unsafeWindow.console.timeEnd ('ScriptRun');
파이어 버그 콘솔에서 다음과 같이 보일 것이다 :
그래서 스크립트는 다음과 같이 할 수
을 - 모든 이전 cruft에 함께 삭제. (clear()
전화가 걸린 후에도 웹 페이지가 수행하는 모든 내용은 계속 표시됩니다.)