Wednesday, November 21, 2012

How to create a custom mediafire search page

Search Mediafire
Search Mediafire






You might have already familiar with google query language which enable to define various kind of searches over google search. In this article i will explain how to use such an option to search inside "mediafire.com", a popular file hosting service.

Use following query. ( for anything you want to search inside any site )


<File name><space>site:<site name>


For an example if we want search for "avatar" inside "mediafire.com" we write following query in google search bar.


avatar site:mediafire.com


Also below i post a simple "html" file that has a javascript function and a html form to accomplish this task. You have to do is save this as html file in your computer and bookmark it from your browser. So you can use this search page to search inside mediafire.com anything you want.

HTML FORM

<form action="http://www.google.com/search" method="get" onsubmit="google_sitesearch(this)">
<div style="text-align: center;">
<input name="q" style="font-size: 18px; height: 35; width: 550px;" type="text" />
<br />
<br />
<input style="height: 40px; width: 150px;" type="submit" value="Search" />
</div>
</form>


JAVASCRIPT

<script type="text/javascript">
     function google_sitesearch(thisForm){
             thisForm.q.value = thisForm.q.value+" site:mediafire.com";
     }
</script>




No comments:

Post a Comment