I’m learning how to use Greasemonkey, and was wondering what the @namespace metadata id is for.
Does it have to be a web address? Or can it be a folder/directory on my computer?
Does it even need to be filled in?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A namespace is used to avoid naming collisions. If you called your script
foobarand someone else did as well, then central repositories would have a hard time telling them apart.Therefore you should provide some URL that you control (i.e. you own it or can administrate it) that basically means ‘everything with that URL is by me’. Now those central repositories can distinguish between
foobarfromhttp://somesite.com/andfoobarfromhttp://anothersite.com.It’s not necessary for basic operation, but strongly suggested if you want to share your scripts.
Keep in mind that
mailto:someone@example.comis also a valid URL and might be a possible option when you don’t own or control a domain of your own.