Last active
August 29, 2015 14:23
-
-
Save clemgrim/8a948878d1a093d7a3fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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