I cannot seem to get GM to see load external *.js files using the @require metadata keyword.
For the @require key value, I have put in the direct path (as displayed by Firefox browser in its location textbox) and have placed the required files directly in the same directory as the HTML doc (so no leading path). For debugging purposes, I have put an alert() call at the top of the JS file listed as the first required file, and no alert is called. The Error Console of Firefox (the only way to follow buggy code in GM scripts) does indicate that my function call in the *.user.js script is "undefined" (although it is clearly defined in one of the @required files. The required files and GM script code would work if I put it in script elements and within the HTML doc. The question is what things/approaches I should take to make sure that GM is finding the required files. GM seems to be working in other ways. For example, I have code to inspect the documents for the 'href' attribute of any "link" DOM elements present for a specific CSS file, and if missing, to insert a new DOM "link" element with that 'href' attribute. It works, because unstyled documents became styled. Moreover inserting an alert() call in the GM code (*.user.js file) does give an alert message. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---
