https://github.com/af/garbagepatch.js
Bookmarklet that reports on the global variables on a page.
https://github.com/af/garbagepatch.js
Last synced: about 1 year ago
JSON representation
Bookmarklet that reports on the global variables on a page.
- Host: GitHub
- URL: https://github.com/af/garbagepatch.js
- Owner: af
- Created: 2012-07-26T05:18:59.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-08-20T23:15:31.000Z (almost 13 years ago)
- Last Synced: 2025-06-10T16:09:08.360Z (about 1 year ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# garbagepatch.js
This is a simple little bookmarklet that checks the global variables in use on
a page and attempts to classify them. It's currently very bare-bones, but it's
already pretty interesting to check your sites' impact on the global environment,
and for deducing what libraries other sites are using.
## Using it
1. Copy the contents of `bookmarklet.js` into the URL field of a new browser bookmark.
2. Click on the bookmark when you're on a page you want to inspect.
## Building it
You'll need node.js and uglify-js to run the build script:
# With node.js installed:
npm install -g uglify-js
./build.js # This will save the new build as bookmarklet.js
## TODO
* Detect more popular libraries
* Better output styling
* Add a way to interact with the detected global variables