git clone [email protected]:cvazac/detect-native-overrides.git
cd detect-native-overrides
npm install
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.
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:
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.
npm test