There are loads of new questions (mostly from new users) which primarily consist of a hyperlink to data or code or a picture of data or code. For example: https://stackoverflow.com/revisions/52096324/1
I think the site could detect such questions by some simple metrics such as:
- Does the user have low reputation?
- Is there a link in the question? Bonus points if it is a link to an image.
- Is the number of words in the post relatively small?
- Does the link text include keywords like "code" or "this code" or "my code"?
- Would this be the first time we prompt this user about this?
- Is this the user's first question, or were any of their recent questions closed for the reason that the content was not in the question itself?
Questions which score highly on the above could trigger a prompt when the user tries to submit. The prompt might say:
You may be submitting a question which is not answerable solely by reading the text within the question itself. Questions which have textual content behind a link or in an image are strongly discouraged on this site. If the links in your question are important and contain data or code, please copy the text (or at least an excerpt, if the whole is large) directly into the question. Would you like to go back and edit your question before posting?
Yes
/No
Allowing new users to self-censor by informing them of the etiquette would reduce the time wasted and frustration experienced by other users who are looking for questions they can answer without visiting other sites or doing data entry from images of text.