Here is the code:
function fil(val) {
console.log('fil'); // never written to console when run in greasemonkey
return true;
}
var temp = unsafeWindow.someobject;
console.log(temp); // looks fine
temp.filter(fil); // never happens in greasemonkey
If I run the very same code (without unsafeWindow of course) on the same object in the firebug console it outputs just fine. What could be the reason?
Edit to clarify: when run in greasemonkey the string 'fil' never is written to the console which shows that fil() is never called. Also if I do something like console.log(temp.filter(fil));
I never get to see a result from that in the console when the code runs from greasemonkey. (although I know it should because the line above tells me temp
exists and the code runs up to that point.
Is that me doing something wrong or some known bug of using scope operator ([...arr]) with Date()/Date.UTC() constructor? What confuses me: x = [2015,5,1]; //(3) [2015, 5, 1] new Date(2015, 5, 1); //...
Is that me doing something wrong or some known bug of using scope operator ([...arr]) with Date()/Date.UTC() constructor? What confuses me: x = [2015,5,1]; //(3) [2015, 5, 1] new Date(2015, 5, 1); //...
I can't seem to pass Vue data into Vue component from an inline template. I'm getting this error instead: vue.min.js: Uncaught TypeError: Cannot read property 'type' of undefined Below is my ...
I can't seem to pass Vue data into Vue component from an inline template. I'm getting this error instead: vue.min.js: Uncaught TypeError: Cannot read property 'type' of undefined Below is my ...
I have a list of objects with a property called created: let objs = [ { id: "1", created: "2019-02-12 00:00:00" }, { id: "2", created: "2018-02-12 00:00:00" }, { id: "3", created: "2017-02-...
I have a list of objects with a property called created: let objs = [ { id: "1", created: "2019-02-12 00:00:00" }, { id: "2", created: "2018-02-12 00:00:00" }, { id: "3", created: "2017-02-...
I'm trying to make a to do-list using Bootstrap and Javascript, and every item on the list consists of a text which is user-input and three clickable glyphicons (edit, finished, remove), on which i ...
I'm trying to make a to do-list using Bootstrap and Javascript, and every item on the list consists of a text which is user-input and three clickable glyphicons (edit, finished, remove), on which i ...