본문으로 바로가기

파일의 IT 블로그

  1. Home
  2. 웹/JS
  3. [Polyfill] beforescriptexecute, beforescriptexecute 이벤트의 폴리필

[Polyfill] beforescriptexecute, beforescriptexecute 이벤트의 폴리필

· 댓글개 · KRFile

beforescriptexecute 이벤트를 활용하면 JS 로딩전에 JS를 내 마음대로 조작시킬 수 있습니다.

(JS 로딩자체를 없애버리거나 안의 변수 이름, 내용등을 Replace 해버릴 수 있습니다)

 

TamperMonkey, GreaseMonkey 같은 것에서 사용하면 거의 왠만한 사이트를 내 마음대로 조작이 가능해집니다.

 

하지만 사진 이 이벤트가 파이어 폭스 이외엔 제대로 작동하지 않는것으로 알려져 있습니다.

 

크롬에서도 작동시키려면 아래 주소의 Polyfill을 사용하면 됩니다.

gist.github.com/maple3142/c6593f0aff180bc0e4be5d549259da2c

 

polyfill of 'beforescriptexecute' event

polyfill of 'beforescriptexecute' event. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

 

SNS 공유하기
💬 댓글 개
이모티콘창 닫기
울음
안녕
감사해요
당황
피폐

이모티콘을 클릭하면 댓글창에 입력됩니다.