Hi guys. First of all thanks for this extension making Internet much safer. I have little userscript (Greasemonkey) that adds context menu item. Problem is it works only when i allow site. Is there any way to make it work without allowing site, cause this makes noscript pointless?
When it fails, do you see anything related in the Browser Console? (Ctrl-Shift-J)
When it fails, does it running any of the script at all? Try stuffing some alert()s or console.log()s in there to see where the script is getting.
*Always* check the changelogs BEFORE updating that important software!
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
lpmanuallogins.length is 0
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
lpmanuallogins.length is 0
JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:302:145
lpmanuallogins.length is 0
lpmanuallogins.length is 0
Thanks again for any help.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
in various places in the code, do you ever get an alert? If so, at what point does it not fire (if any)? Does it fire outside the click event listener callback, what about inside?
*Always* check the changelogs BEFORE updating that important software!
I tried adding that code you suggested and it fires only after I click button. Button doesn't even show itself in context menu till I allow site. Again thanks very much for taking time to help me.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Sounds like all there is to do is not use the page context menu... Wonder if page context menu works with NoScript disabled completely from Add-ons Manager, and JavaScript disabled by about:config > javascript.enabled set to false ?
*Always* check the changelogs BEFORE updating that important software!
Greg01010100 wrote:No. If i disable NoScript and set javascript.enabled to false - context menu doesn't show up.........
Thanks for testing that.
OK so not a NoScript issue, so the only way this will work with NoScript is if Giorgio decides to add some kind of work-around code in NoScript.
*Always* check the changelogs BEFORE updating that important software!
Note that it may not even be feasible, I said that only because Giorgio has added workarounds for these kinds of things before so it's not ruled out at this point.
Greg01010100 wrote:Is there any way to notify him to consider extending userscript compatibility to make this work???
If he doesn't respond in a week or so, if you like I'll do some testing and maybe PM him?
*Always* check the changelogs BEFORE updating that important software!