Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to find CSS / JavaScript files that contain certain keywords:

  • in the title ?
  • in the code ?
share|improve this question

migrated from superuser.com Aug 30 '12 at 17:05

This question came from our site for computer enthusiasts and power users.

How about using filetype:css and filetype:js in the query? – Alex Aug 30 '12 at 17:11
It works! Post an answer that I give you points. – GG. Aug 30 '12 at 17:58
Just to add, filetype:css searches URLs that have the extension ".css", and likewise for ".js". It doesn't search files that have the associated mime types. So the pages returned in a filetype:css search are all forward facing pages in the visible content of the website, they aren't the external CSS files that are linked to from the HTML document. – w3dk Aug 30 '12 at 17:58
What do you mean by "in the title"? – w3dk Aug 30 '12 at 18:03
@w3d I think the OP means “in the name of the file.” – Alex Aug 30 '12 at 18:09
up vote 6 down vote accepted

Use the filetype: search operator.

  • filetype:css
  • filetype:js


When you use the filetype: operator in a Google search (for example, filetype:xml galway), Google searches for files with the .xml extension, not for files of file type XML.

Not all URLs or pages have the .html file extension. Some pages (like http://www.google.com) have no extension at all, and some have an extension that doesn't match their file type. Limiting your search to a specific file type will return pages with that file extension, and may return fewer relevant results.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.