Google Answers Logo
View Question
 
Q: Search engine find javascript code ( No Answer,   0 Comments )
Question  
Subject: Search engine find javascript code
Category: Computers > Software
Asked by: drormata-ga
List Price: $50.00
Posted: 28 Sep 2005 15:04 PDT
Expires: 03 Oct 2005 12:41 PDT
Question ID: 573957
I know that as a rule search engine focus on the human visible part of
a web page. I would, however, like to be able to either:
1. Search the javascript code. It's ok if the search engine only looks
at the code that's only in the <body> part of the page.
2. Search for sites that include a certain javascript or CSS page. For
instance sites that include foo.js by doing
 <script type="text/javascript" src="foo.js"></script>

Ideally one of the free search engines would provide this capability,
but please include in your answer any paid services that offer this
capability.

Request for Question Clarification by pafalafa-ga on 28 Sep 2005 19:34 PDT
I'm not sure I'm getting what you're after here.  Do you want a search
on code that appears as part of the text of a site?  Or are you trying
to search on code that is generally invisible to the search bots?

For instance, here's a search on "src="foo.js"":


://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLD,GGLD:2005-04,GGLD:en&q=%22src%3D%22foo%2Ejs%22%22


Are these results of interest at all, or are they of no use whatsoever.


pafalafa-ga

Clarification of Question by drormata-ga on 28 Sep 2005 21:30 PDT
No, this doesn't really help because it will only find things where
"src=foo.js" is part of the *text* of the web page. I actually want to
actually look for the javascript code. So assume a web page has
something like the following HTML code:
<HTML>
<head>
 <script type="text/javascript" src="foo.js"></script>
</head
<body>
<h1> My Page </h1>
<script type='text/javascript'>
//foo.js defines function bar
var myVar getElementById('abc');
bar(myVar);
</script>
</body>
</HTML>

I'd like to find this page either by finding that it includes foo.js
or by finding that it uses the function bar.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy