Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.27 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.27 KB

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