Skip to content

Instantly share code, notes, and snippets.

@clemgrim
Last active August 29, 2015 14:23
Show Gist options
  • Save clemgrim/8a948878d1a093d7a3fc to your computer and use it in GitHub Desktop.
Save clemgrim/8a948878d1a093d7a3fc to your computer and use it in GitHub Desktop.
(function () {
var vars = [];
var reserved = [
'$',
'jQuery',
'History',
'Ext',
'CKEDITOR',
'applicationCache',
'caches',
'chrome',
'clientInformation',
'closed',
'console',
'crypto',
'CSS',
'defaultStatus',
'defaultstatus',
'devicePixelRatio',
'document',
'external',
'frameElement',
'frames',
'history',
'indexedDB',
'innerHeight',
'innerWidth',
'length',
'localStorage',
'location',
'locationbar',
'menubar',
'name',
'navigator',
'opener',
'outerHeight',
'outerWidth',
'pageXOffset',
'pageYOffset',
'parent',
'performance',
'personalbar',
'screen',
'screenLeft',
'screenTop',
'screenX',
'screenY',
'scrollX',
'scrollY',
'scrollbars',
'self',
'sessionStorage',
'speechSynthesis',
'status',
'statusbar',
'styleMedia',
'toolbar',
'top',
'webkitIndexedDB',
'webkitStorageInfo',
'window'
];
for (var k in window) {
if (!(k in window.constructor.prototype) && reserved.indexOf(k) === -1) {
vars.push(k);
}
}
return vars;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment