How much work you put into these should be roughly proportional to how useful you think the question would be if it was asked correctly.
- Useless: Down-vote.
- Useless and misleading to folks searching: Down-vote, vote to close (this reason worksthis reason works).
- Possibly useful if it had the code: either edit to include the code, leave a note for the asker, or vote to close as above.
- Possibly useful even without the code: do nothing, or make minor cleanup edits to make it easier to find.
That's assuming you do anything at all, of course. I definitely wouldn't bother editing out links - that just makes it harder for others to evaluate the question and burns up time you could be using on something more productive.
Spam notes: this isn't extremely common in my experience, but it does happen that you'll find a "question" that's nothing but a thinly-veiled vehicle for getting a link to the asker's website posted. These are usually pretty obvious, and should just be flagged as spam.