Background: I\'m working on a framework/library to be used for a specific site in coordination with greasemonkey/userscripts. This framework/library will al
If all you want is a simple getter, program one instead of trying to eval anything.
function get(input) {
// if input is a string, it will be used as a DOM selector
// if it is an array (of strings), they will access properties of the global object
if (typeof input == "string")
return document.querySelector(input);
else if (Array.isArray(input)) {
var res = window;
for (var i=0; i