Want more features on Pastebin? Sign Up, it's FREE!
Guest

search.html

By: a guest on Jan 26th, 2013  |  syntax: HTML  |  size: 1.48 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html>
  3. <head>
  4.  
  5.  
  6. <script type="text/javascript" src="jquery.js"></script>
  7.  
  8. <script type="text/javascript">
  9.  
  10.  
  11. function searchIt () {
  12.        
  13.         var k = $('#keyword').val();
  14.         var s = $('#site').val();
  15.         k = encodeURIComponent(k);
  16.  
  17.         //Fenopy
  18.         if (s==0) {
  19.                 chrome.tabs.create({url:'http://fenopy.eu/?keyword='+k});
  20.         //The Pirate Bay
  21.         } else if (s==1) {
  22.                 chrome.tabs.create({url:'http://thepiratebay.se/search/'+k+'/0/99/0'});
  23.         } else if (s==2) {
  24.                 chrome.tabs.create({url:'http://torrentz.eu/search?f='+k});
  25.         } else if (s==3) {
  26.                 chrome.tabs.create({url:'http://www.kickasstorrents.com/search/'+k+'/'});
  27.         }
  28.  
  29.         window.close();
  30. }
  31.  
  32.  
  33. </script>
  34.  
  35. <link rel="stylesheet" type="text/css" href="style.css"/>
  36.  
  37. </head>
  38. <body onload="document.search_form.keyword.focus();">
  39.  
  40. <div class="search_form">
  41.  
  42.         <form id="search_form" name="search_form" onsubmit="searchIt(); return false;">
  43.                 <input type="text" name="keyword" id="keyword" />
  44.        
  45.        
  46.        <input type="image" src="bt_search.png" id="bt" />
  47.        
  48.         <div class="sel">
  49.         <select name="site" id="site">
  50.             <option value="0">Fenopy</option>
  51.             <option value="1">Pirate Bay</option>
  52.             <option value="2">Torrentz</option>
  53.             <option value="3">Kick Ass Torrents</option>
  54.         </select>
  55.                 </div>
  56.        
  57.  
  58.         </form>
  59.    
  60. </div>
  61.  
  62.  
  63. </body>
clone this paste RAW Paste Data