Skip to content

cvazac/detect-native-overrides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

detect-native-overrides

Getting Started

git clone [email protected]:cvazac/detect-native-overrides.git
cd detect-native-overrides
npm install

Bookmarklet

Build the bookmarklet and copy output into your clipboard with:

browserify ./src/bookmarklet.js | pbcopy

Take that output and create a bookmarket with a bookmarklet maker.

Explore to a page and click the bookmarklet you just created.

Expected output

In the console, you will see a warn with an array of overriden methods.

If you see a method name without a namespace, presume window.

Example:

alt text

Limitations

This bookmarket won't work on pages with strict CSPs, like twitter.com.

We currently rely on Object.getOwnPropertyNames which has decent browser support.

Tampermonkey is a wonderful tool that I highly encourage everyone to try out. That said, it overrides many natives, so I recommend that you disable it before running the bookmarklet.

Testing

npm test

About

Detect native overrides in the current page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published