Hi all!
I am trying to write a greasemonkey script, which uses lodash. I am not very familiar with lodash. However, when I use it with the following require:
// @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.jsthe Browser console (Pressing Ctrl+Shift+J) warns me about this:
The problematic function is:
/** Used to detect if a method is native */
var reNative = RegExp('^' +
String(toString)
.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
.replace(/toString| for [^\]]+/g, '.*?') + '$'
);However, I cannot reproduce this with a hello world greasemonkey script, which includes this file.
To say the whole truth, I don't know how to debug greasemonkey scripts at all! I found little or no feedback from browser console. How can one debug greasemonkey scripts?
thanks
Gergo