Rename test data
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 30 Mar 2016 12:41:53 +0000 (14:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 30 Mar 2016 12:41:53 +0000 (14:41 +0200)
src/main/java/net/pterodactylus/rhynodge/filters/torrents/pirate-bay-results.html [deleted file]
src/test/resources/net/pterodactylus/rhynodge/filters/torrents/pirate-bay-results.html [new file with mode: 0644]

diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/torrents/pirate-bay-results.html b/src/main/java/net/pterodactylus/rhynodge/filters/torrents/pirate-bay-results.html
deleted file mode 100644 (file)
index c690446..0000000
+++ /dev/null
@@ -1,290 +0,0 @@
-
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <title>The Pirate Bay - The galaxy's most resilient bittorrent site</title>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-       <meta name="google-site-verification" content="bERYeomIC5eBWlPLupPPYPYGA9GvAUKzFHh3WIw24Xs" />
-       <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search The Pirate Bay" />
-       <link rel="stylesheet" type="text/css" href="http://uj3wazyk5u4hnvtk.onion/static/css/pirate6.css"/>
-       <link rel="dns-prefetch" href="//syndication.exoclick.com/">
-       <link rel="dns-prefetch" href="//main.exoclick.com/">
-       <link rel="dns-prefetch" href="//static-ssl.exoclick.com/">
-       <link rel="dns-prefetch" href="//ads.exoclick.com/">
-       <link rel="canonical" href="//uj3wazyk5u4hnvtk.onion/search/Ubuntu%2014%2004%20ISO/0/99/0" />
-       <style type="text/css">
-               .searchBox{
-                       margin: 6px;
-                       width: 300px;
-                       vertical-align: middle;
-                       padding: 2px;
-                       background-image:url('http://uj3wazyk5u4hnvtk.onion/static/img/icon-https.gif');
-                       background-repeat:no-repeat;
-                       background-position: right;
-               }
-               .detLink {
-                       font-size: 1.2em;
-                       font-weight: 400;
-               }
-               .detDesc {
-                       color: #4e5456;
-               }
-               .detDesc a:hover {
-                       color: #000099;
-                       text-decoration: underline;
-               }
-               .sortby {
-                       text-align: left;
-                       float: left;
-               }
-               .detName {
-                       padding-top: 3px;
-                       padding-bottom: 2px;
-               }
-               .viewswitch {
-                       font-style: normal;
-                       float: right;
-                       text-align: right;
-                       font-weight: normal;
-               }
-       </style>
-       <script src="http://uj3wazyk5u4hnvtk.onion/static/js/jquery.min.js" type="text/javascript"></script>
-       <script src="http://uj3wazyk5u4hnvtk.onion/static/js/tpb.js" type="text/javascript"></script>
-       <meta name="description" content="Search for and download any torrent from the pirate bay using search query Ubuntu 14 04 ISO. Direct download via magnet link."/>
-       <meta name="keywords" content="Ubuntu 14 04 ISO direct download torrent magnet tpb piratebay search"/>
-
-       <script language="javascript" type="text/javascript">if (top.location != self.location) {top.location.replace(self.location);}</script>
-</head>
-
-<body>
-<div id="header">
-
-       <form method="get" id="q" action="/s/">
-               <a href="/" class="img"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/tpblogo_sm_ny.gif" id="TPBlogo" alt="The Pirate Bay" /></a>
-               <b><a href="/" title="Search Torrents">Search Torrents</a></b>&nbsp;&nbsp;|&nbsp;
-               <a href="/browse" title="Browse Torrents">Browse Torrents</a>&nbsp;&nbsp;|&nbsp;
-               <a href="/recent" title="Recent Torrent">Recent Torrents</a>&nbsp;&nbsp;|&nbsp;
-               <a href="/tv/" title="TV shows">TV shows</a>&nbsp;&nbsp;|&nbsp;
-               <a href="/music" title="Music">Music</a>&nbsp;&nbsp;|&nbsp;
-               <a href="/top" title="Top 100">Top 100</a>
-               <br /><input type="search" class="inputbox" title="Pirate Search" name="q" placeholder="Search here..." value="Ubuntu 14 04 ISO" /><input value="Pirate Search" type="submit" class="submitbutton" $disabled /><br />            <label for="audio" title="Audio"><input id="audio" name="audio" onclick="javascript:rmAll();" type="checkbox"/>Audio</label>
-               <label for="video" title="Video"><input id="video" name="video" onclick="javascript:rmAll();" type="checkbox"/>Video</label>
-               <label for="apps" title="Applications"><input id="apps" name="apps" onclick="javascript:rmAll();" type="checkbox"/>Applications</label>
-               <label for="games" title="Games"><input id="games" name="games" onclick="javascript:rmAll();" type="checkbox"/>Games</label>
-               <label for="porn" title="Porn"><input id="porn" name="porn" onclick="javascript:rmAll();" type="checkbox"/>Porn</label>
-               <label for="other" title="Other"><input id="other" name="other" onclick="javascript:rmAll();" type="checkbox"/>Other</label>
-
-               <select id="category" name="category" onchange="javascript:setAll();">
-                       <option value="0">All</option>
-                       <optgroup label="Audio">
-                               <option value="101">Music</option>
-                               <option value="102">Audio books</option>
-                               <option value="103">Sound clips</option>
-                               <option value="104">FLAC</option>
-                               <option value="199">Other</option>
-                       </optgroup>
-                       <optgroup label="Video">
-                               <option value="201">Movies</option>
-                               <option value="202">Movies DVDR</option>
-                               <option value="203">Music videos</option>
-                               <option value="204">Movie clips</option>
-                               <option value="205">TV shows</option>
-                               <option value="206">Handheld</option>
-                               <option value="207">HD - Movies</option>
-                               <option value="208">HD - TV shows</option>
-                               <option value="209">3D</option>
-                               <option value="299">Other</option>
-                       </optgroup>
-                       <optgroup label="Applications">
-                               <option value="301">Windows</option>
-                               <option value="302">Mac</option>
-                               <option value="303">UNIX</option>
-                               <option value="304">Handheld</option>
-                               <option value="305">IOS (iPad/iPhone)</option>
-                               <option value="306">Android</option>
-                               <option value="399">Other OS</option>
-                       </optgroup>
-                       <optgroup label="Games">
-                               <option value="401">PC</option>
-                               <option value="402">Mac</option>
-                               <option value="403">PSx</option>
-                               <option value="404">XBOX360</option>
-                               <option value="405">Wii</option>
-                               <option value="406">Handheld</option>
-                               <option value="407">IOS (iPad/iPhone)</option>
-                               <option value="408">Android</option>
-                               <option value="499">Other</option>
-                       </optgroup>
-                       <optgroup label="Porn">
-                               <option value="501">Movies</option>
-                               <option value="502">Movies DVDR</option>
-                               <option value="503">Pictures</option>
-                               <option value="504">Games</option>
-                               <option value="505">HD - Movies</option>
-                               <option value="506">Movie clips</option>
-                               <option value="599">Other</option>
-                       </optgroup>
-                       <optgroup label="Other">
-                               <option value="601">E-books</option>
-                               <option value="602">Comics</option>
-                               <option value="603">Pictures</option>
-                               <option value="604">Covers</option>
-                               <option value="605">Physibles</option>
-                               <option value="699">Other</option>
-                       </optgroup>
-               </select>
-
-               <input type="hidden" name="page" value="0" />
-               <input type="hidden" name="orderby" value="99" />
-       </form>
-</div><!-- // div:header -->
-
-<h2><span>Search results: Ubuntu 14 04 ISO</span>&nbsp;Displaying hits from 0 to 5 (approx 5 found)</h2>
-
-<div id="SearchResults"><div id="content">
-       <div id="sky-right">
-               <iframe src="http://uj3wazyk5u4hnvtk.onion/static/ads/exo_na/sky2.html" width="160" height="600" frameborder="0" scrolling="no"></iframe>
-       </div>
-
-       <iframe src="http://uj3wazyk5u4hnvtk.onion/static/ads/exo_na/center.html" id="sky-center" width="728" height="90" frameborder="0" scrolling="no"></iframe>
-       <div id="main-content">
-               <table id="searchResult">
-                       <thead id="tableHead">
-                       <tr class="header">
-                               <th><a href="/search/Ubuntu%2014%2004%20ISO/0/13/0" title="Order by Type">Type</a></th>
-                               <th><div class="sortby"><a href="/search/Ubuntu%2014%2004%20ISO/0/1/0" title="Order by Name">Name</a> (Order by: <a href="/search/Ubuntu%2014%2004%20ISO/0/3/0" title="Order by Uploaded">Uploaded</a>, <a href="/search/Ubuntu%2014%2004%20ISO/0/5/0" title="Order by Size">Size</a>, <span style="white-space: nowrap;"><a href="/search/Ubuntu%2014%2004%20ISO/0/11/0" title="Order by ULed by">ULed by</a></span>, <a href="/search/Ubuntu%2014%2004%20ISO/0/8/0" title="Order by Seeders">SE</a>, <a href="/search/Ubuntu%2014%2004%20ISO/0/9/0" title="Order by Leechers">LE</a>)</div><div class="viewswitch"> View: <a href="/switchview.php?view=s">Single</a> / Double&nbsp;</div></th>
-                               <th><abbr title="Seeders"><a href="/search/Ubuntu%2014%2004%20ISO/0/8/0" title="Order by Seeders">SE</a></abbr></th>
-                               <th><abbr title="Leechers"><a href="/search/Ubuntu%2014%2004%20ISO/0/9/0" title="Order by Leechers">LE</a></abbr></th>
-                       </tr>
-                       </thead>
-                       <tr>
-                               <td class="vertTh">
-                                       <center>
-                                               <a href="/browse/300" title="More from this category">Applications</a><br />
-                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
-                                       </center>
-                               </td>
-                               <td>
-                                       <div class="detName">                   <a href="/torrent/9983098/ubuntu-14.04-desktop-amd64.iso" class="detLink" title="Details for ubuntu-14.04-desktop-amd64.iso">ubuntu-14.04-desktop-amd64.iso</a>
-                                       </div>
-                                       <a href="magnet:?xt=urn:btih:18ac50d74c61883b3ab4c40f5dd3e35f157de1a2&dn=ubuntu-14.04-desktop-amd64.iso&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
-                                       <font class="detDesc">Uploaded 04-17&nbsp;2014, Size 964&nbsp;MiB, ULed by <a class="detDesc" href="/user/dchani/" title="Browse dchani">dchani</a></font>
-                               </td>
-                               <td align="right">3</td>
-                               <td align="right">0</td>
-                       </tr>
-                       <tr class="alt">
-                               <td class="vertTh">
-                                       <center>
-                                               <a href="/browse/300" title="More from this category">Applications</a><br />
-                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
-                                       </center>
-                               </td>
-                               <td>
-                                       <div class="detName">                   <a href="/torrent/12891202/ubuntu_14_04_3_desktop_i386_iso_(Server)" class="detLink" title="Details for ubuntu 14 04 3 desktop i386 iso (Server)">ubuntu 14 04 3 desktop i386 iso (Server)</a>
-                                       </div>
-                                       <a href="magnet:?xt=urn:btih:58ad8b464a0a4114e1890492543b6388d50af04a&dn=ubuntu+14+04+3+desktop+i386+iso+%28Server%29&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
-                                       <font class="detDesc">Uploaded 12-03&nbsp;2015, Size 1015&nbsp;MiB, ULed by <a class="detDesc" href="/user/aquilaxxd/" title="Browse aquilaxxd">aquilaxxd</a></font>
-                               </td>
-                               <td align="right">1</td>
-                               <td align="right">0</td>
-                       </tr>
-                       <tr>
-                               <td class="vertTh">
-                                       <center>
-                                               <a href="/browse/300" title="More from this category">Applications</a><br />
-                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
-                                       </center>
-                               </td>
-                               <td>
-                                       <div class="detName">                   <a href="/torrent/9959447/ubuntu-gnome-14.04-beta1-desktop-amd64.iso" class="detLink" title="Details for ubuntu-gnome-14.04-beta1-desktop-amd64.iso">ubuntu-gnome-14.04-beta1-desktop-amd64.iso</a>
-                                       </div>
-                                       <a href="magnet:?xt=urn:btih:baab5076469a52ea9f0d3eeae8263f154da2fbab&dn=ubuntu-gnome-14.04-beta1-desktop-amd64.iso&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
-                                       <font class="detDesc">Uploaded 04-14&nbsp;2014, Size 890&nbsp;MiB, ULed by <i>Anonymous</i></font>
-                               </td>
-                               <td align="right">0</td>
-                               <td align="right">0</td>
-                       </tr>
-                       <tr class="alt">
-                               <td class="vertTh">
-                                       <center>
-                                               <a href="/browse/300" title="More from this category">Applications</a><br />
-                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
-                                       </center>
-                               </td>
-                               <td>
-                                       <div class="detName">                   <a href="/torrent/12071606/Ubuntu_14.04.1_Server_64_Bit_DE_ISO" class="detLink" title="Details for Ubuntu 14.04.1 Server 64 Bit DE ISO">Ubuntu 14.04.1 Server 64 Bit DE ISO</a>
-                                       </div>
-                                       <a href="magnet:?xt=urn:btih:236fc296473ae52b2ff0c46a8de5ae04236cc774&dn=Ubuntu+14.04.1+Server+64+Bit+DE+ISO&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
-                                       <font class="detDesc">Uploaded 06-28&nbsp;2015, Size 572&nbsp;MiB, ULed by <a class="detDesc" href="/user/zgraggen/" title="Browse zgraggen">zgraggen</a></font>
-                               </td>
-                               <td align="right">0</td>
-                               <td align="right">0</td>
-                       </tr>
-                       <tr>
-                               <td class="vertTh">
-                                       <center>
-                                               <a href="/browse/300" title="More from this category">Applications</a><br />
-                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
-                                       </center>
-                               </td>
-                               <td>
-                                       <div class="detName">                   <a href="/torrent/12071612/Ubuntu_14.04.1_Server_32_Bit_DE_ISO" class="detLink" title="Details for Ubuntu 14.04.1 Server 32 Bit DE ISO">Ubuntu 14.04.1 Server 32 Bit DE ISO</a>
-                                       </div>
-                                       <a href="magnet:?xt=urn:btih:2c0cef0ca97e31dceae9ddf48fe0d85f1fdb4550&dn=Ubuntu+14.04.1+Server+32+Bit+DE+ISO&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
-                                       <font class="detDesc">Uploaded 06-28&nbsp;2015, Size 552&nbsp;MiB, ULed by <a class="detDesc" href="/user/zgraggen/" title="Browse zgraggen">zgraggen</a></font>
-                               </td>
-                               <td align="right">0</td>
-                               <td align="right">0</td>
-                       </tr>
-
-               </table>
-       </div>
-       <div align="center"></div>
-       <div class="ads" id="sky-banner">
-               <iframe src="http://uj3wazyk5u4hnvtk.onion/static/ads/exo_na/sky1.html" width="120" height="600" frameborder="0" scrolling="no"></iframe>
-       </div>
-       <script type="text/javascript" src="http://uj3wazyk5u4hnvtk.onion/static/ads/ad-scroll.js"></script>
-</div></div></div><!-- //div:content -->
-
-<div id="foot" style="text-align:center;margin-top:1em;">
-
-       <iframe src="http://uj3wazyk5u4hnvtk.onion/static/ads/exo_na/bottom.html" width="728" height="90" frameborder="0" scrolling="no"></iframe>
-       <p>
-               <a href="/login" title="Login">Login</a> |
-               <a href="/register" title="Register">Register</a> |
-               <a href="/language" title="Select language">Language / Select language</a> |
-               <a href="/about" title="About">About</a> |
-               <a href="/blog" title="Blog">Blog</a>
-               <br />
-               <!--<a href="/contact" title="Contact us">Contact us</a> |-->
-               <a href="/policy" title="Usage policy">Usage policy</a> |
-               <a href="http://uj3wazyk5u4hnvtk.onion" title="TOR">TOR</a> |
-               <a href="http://www.promobay.org/" title="Promo" target="_NEW">Promo</a> |
-               <a href="/doodles" title="Doodles">Doodles</a> |
-               <a href="/tags" title="Tag Cloud">Tag Cloud</a> |
-               <a href="http://pirates-forum.org/" title="Forum" target="_blank">Forum</a>
-               <br />
-       </p>
-
-       <br /><a href="http://bitcoin.org" target="_NEW">BitCoin</a>: <b><a href="bitcoin:129TQVAroeehD9fZpzK51NdZGQT4TqifbG">129TQVAroeehD9fZpzK51NdZGQT4TqifbG</a></b><br /><br />
-
-       <div id="fbanners">
-               <a href="/rss" class="rss" title="RSS"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/rss_small.gif" alt="RSS" /></a>
-       </div><!-- // div:fbanners -->
-</div><!-- // div:foot -->
-
-<script>
-       var _wm_settings = {
-               popunder: {
-                       url:                    'http://serve.adplxmd.com/?placement=289748&redirect',
-                       times:          2,
-                       hours:          12.000000,
-                       cookie:         'tpbpop',
-                       fastbind:true
-               }
-       };
-       var _wm={initialize:function(){this.ua.initialize()},array:{is_array:function(a){return Object.prototype.toString.call(a)==='[object Array]'},sort:function(a,b,c){a=a.sort();if(b)a=a.reverse();if(c){for(var i=0;i<a.length;i++){var d=a[i];if(Object.prototype.toString.call(d)==='[object Object]')d=_wm.object.sort(d,b,true);else if(Object.prototype.toString.call(d)==='[object Array]')d=_wm.array.sort(d,b,true);a[i]=d}}return a},random_value:function(a){return a[Math.floor(a.length*Math.random())]}},object:{is_object:function(a){return Object.prototype.toString.call(a)==='[object Object]'},keys:function(a){var hasOwnProperty=Object.prototype.hasOwnProperty,hasDontEnumBug=!({toString:null}).propertyIsEnumerable('toString'),dontEnums=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'],dontEnumsLength=dontEnums.length;var b=[];if(typeof a!=='object'&&typeof a!=='function'||a===null)return b;for(var c in a){if(hasOwnProperty.call(a,c))b.push(c)}if(hasDontEnumBug){for(var i=0;i<dontEnumsLength;i++){if(hasOwnProperty.call(a,dontEnums[i]))b.push(dontEnums[i])}}return b},sort:function(a,c,d){var e=_wm.array.sort(_wm.object.keys(a));if(c)e=e.reverse();var b={};for(var i=0;i<e.length;i++){var f=a[e[i]];if(d){if(_wm.object.is_object(f))f=_wm.object.sort(f,c,true);else if(_wm.array.is_array(f))f=_wm.array.sort(f,c,true)}b[e[i]]=f}return b},iterator:function(b){this.element=b;this.element_array=_wm.object.keys(b);this.current_index=0;this.hasNext=function(){return this.current_index<=this.element_array.length-1};this.next=function(){if(this.hasNext()){var a=[this.element_array[this.current_index],this.element[this.element_array[this.current_index]]];this.current_index++;return a}return false}},random_value:function(a){return a[_wm.array.random_value(_wm.object.keys(a))]},length:function(a){return _wm.object.keys(a).length}},ua:{initialize:function(){this.maps={browser:{oldsafari:{major:{'1':['/8','/1','/3'],'2':'/4','?':'/'},version:{'1.0':'/8','1.2':'/1','1.3':'/3','2.0':'/412','2.0.2':'/416','2.0.3':'/417','2.0.4':'/419','?':'/'}}},os:{windows:{version:{'ME':'4.90','NT 3.11':'NT3.51','NT 4.0':'NT4.0','2000':'NT 5.0','XP':['NT 5.1','NT 5.2'],'Vista':'NT 6.0','7':'NT 6.1','8':'NT 6.2','8.1':'NT 6.3','RT':'ARM'}}}};this.regexes={browser:[[/(opera\smini)\/((\d+)?[\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i,/(opera).+version\/((\d+)?[\w\.]+)/i,/(opera)[\/\s]+((\d+)?[\w\.]+)/i],['name','version','major'],[/\s(opr)\/((\d+)?[\w\.]+)/i],[['name','Opera'],'version','major'],[/(kindle)\/((\d+)?[\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?((\d+)?[\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?((\d+)?[\w\.]*)/i,/(?:ms|\()(ie)\s((\d+)?[\w\.]+)/i,/(rekonq)((?:\/)[\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron)\/((\d+)?[\w\.-]+)/i],['name','version','major'],[/(trident).+rv[:\s]((\d+)?[\w\.]+).+like\sgecko/i],[['name','IE'],'version','major'],[/(yabrowser)\/((\d+)?[\w\.]+)/i],[['name','Yandex'],'version','major'],[/(comodo_dragon)\/((\d+)?[\w\.]+)/i],[['name',/_/g,' '],'version','major'],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?((\d+)?[\w\.]+)/i],['name','version','major'],[/(dolfin)\/((\d+)?[\w\.]+)/i],[['name','Dolphin'],'version','major'],[/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i],[['name','Chrome'],'version','major'],[/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i],['version','major',['name','Mobile Safari']],[/version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i],['version','major','name'],[/webkit.+?(mobile\s?safari|safari)((\/[\w\.]+))/i],['name',['major',_wm.ua.mapper.str,_wm.ua.maps.browser.oldsafari.major],['version',_wm.ua.mapper.str,_wm.ua.maps.browser.oldsafari.version]],[/(konqueror)\/((\d+)?[\w\.]+)/i,/(webkit|khtml)\/((\d+)?[\w\.]+)/i],['name','version','major'],[/(navigator|netscape)\/((\d+)?[\w\.-]+)/i],[['name','Netscape'],'version','major'],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?((\d+)?[\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/((\d+)?[\w\.-]+)/i,/(mozilla)\/((\d+)?[\w\.]+).+rv\:.+gecko\/\d+/i,/(uc\s?browser|polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|qqbrowser)[\/\s]?((\d+)?[\w\.]+)/i,/(links)\s\(((\d+)?[\w\.]+)/i,/(gobrowser)\/?((\d+)?[\w\.]+)*/i,/(ice\s?browser)\/v?((\d+)?[\w\._]+)/i,/(mosaic)[\/\s]((\d+)?[\w\.]+)/i],['name','version','major']],os:[[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],['name',['version',_wm.ua.mapper.str,_wm.ua.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[['name','Windows'],['version',_wm.ua.mapper.str,_wm.ua.maps.os.windows.version]],[/\((bb)(10);/i],[['name','BlackBerry'],'version'],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)\/([\w\.]+)/i,/(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego)[\/\s-]?([\w\.]+)*/i],['name','version'],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[['name','Symbian'],'version'],[/mozilla.+\(mobile;.+gecko.+firefox/i],[['name','Firefox OS'],'version'],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],['name','version'],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[['name','Chromium OS'],'version'],[/(sunos)\s?([\w\.]+\d)*/i],[['name','Solaris'],'version'],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],['name','version'],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[['name','iOS'],['version',/_/g,'.']],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i],['name',['version',/_/g,'.']],[/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(macintosh|mac(?=_powerpc)|plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos)/i,/(unix)\s?([\w\.]+)*/i],['name','version']]},this.browser=this.get.browser();this.os=this.get.os()},ua:(window&&window.navigator&&window.navigator.userAgent)?window.navigator.userAgent:'',get:{browser:function(){return _wm.ua.mapper.rgx.apply(this,_wm.ua.regexes.browser)},os:function(){return _wm.ua.mapper.rgx.apply(this,_wm.ua.regexes.os)}},util:{has:function(a,b){return b.toLowerCase().indexOf(a.toLowerCase())!==-1},lowerize:function(a){return a.toLowerCase()}},mapper:{rgx:function(){for(var a,i=0,j,k,p,q,matches,match,args=arguments;i<args.length;i+=2){var b=args[i],props=args[i+1];if(typeof(a)==='undefined'){a={};for(p in props){q=props[p];if(typeof(q)==='object'){a[q[0]]=undefined}else{a[q]=undefined}}}for(j=k=0;j<b.length;j++){matches=b[j].exec(_wm.ua.ua);if(!!matches){for(p=0;p<props.length;p++){match=matches[++k];q=props[p];if(typeof(q)==='object'&&q.length>0){if(q.length==2){if(typeof(q[1])=='function'){a[q[0]]=q[1].call(this,match)}else{a[q[0]]=q[1]}}else if(q.length==3){if(typeof(q[1])==='function'&&!(q[1].exec&&q[1].test)){a[q[0]]=match?q[1].call(this,match,q[2]):undefined}else{a[q[0]]=match?match.replace(q[1],q[2]):undefined}}else if(q.length==4){a[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):undefined}}else{a[q]=match?match:undefined}}break}}if(!!matches)break}return a},str:function(a,b){for(var i in b){if(typeof(b[i])==='object'&&b[i].length>0){for(var j=0;j<b[i].length;j++){if(_wm.ua.util.has(b[i][j],a)){return(i==='?')?undefined:i}}}else if(_wm.ua.util.has(b[i],a)){return(i==='?')?undefined:i}}return a}}},cookie:{get:function(a,b){var c=new Date();c.setTime(c.getTime());var d=new Date(c.getTime()+(1000*60*60*b)).toGMTString();var e=document.cookie.split(';');var f='';var g='';var h=[0,d];for(var i=0;i<e.length;i++){f=e[i].split('=');g=f[0].replace(/^\s+|\s+$/g,'');if(g==a){b_cookie_found=true;if(f.length>1){h=unescape(f[1]).split('|');if(h.length==1)h[1]=d}return h}f=null;g=''}return h},set:function(a,b,c){document.cookie=a+'='+escape(b+'|'+c)+';expires='+c+';path=/'}},listener:{events:[],add:function(a,b,c,e){if(e==undefined)e=true;var d='on'+b;if(typeof a.addEventListener!='undefined')a.addEventListener(b,c,e);else if(typeof a.attachEvent!='undefined')a.attachEvent(d,c);else{if(typeof a[d]!='function')a[d]=c;else{var e=a[d];a['old_'+d]=e;a[d]=function(){e();return c()}}}_wm.listener.events.push(arguments)},remove:function(a,b,c,e){if(e==undefined)e=true;var d='on'+b;if(typeof a.removeEventListener!='undefined')a.removeEventListener(b,c,e);else if(typeof a.detachEvent!='undefined')a.detachEvent(d,c);else{if(typeof a['old_'+d]!='function')a[d]=null;else a[d]=a['old_'+d]}outer:for(var i=0;i<_wm.listener.events.length;i++){inner:for(var j=0;j<_wm.listener.events[i].length;j++){if(_wm.listener.events[i][j]!==arguments[j])continue outer}_wm.listener.events=_wm.listener.events.slice(0,i).concat(_wm.listener.events.slice(i+1));break outer}},clear:function(){while(_wm.listener.events.length>0)_wm.listener.remove.apply(undefined,_wm.listener.events[0])}},format:{},random:function(){return Math.floor(Math.random()*1000001)}};_wm.initialize();_wm.format.popunder={settings:typeof _wm_settings==='object'&&_wm_settings.popunder||false,config:'width='+screen.width+', height='+screen.height+',resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=yes',isBinded:false,isTriggered:false,trigger_stack:[],initialize:function(){if(!_wm.format.popunder.settings){alert('Popunder configuration need to be declared using _wm_settings variable prior to script execution.');return}var a=_wm.cookie.get(_wm.format.popunder.settings.cookie,_wm.format.popunder.settings.hours);this.cookie={};this.cookie.times=!isNaN(Number(a[0]))?Number(a[0]):0;this.cookie.expires=!isNaN(Date.parse(a[1]))?a[1]:new Date().toGMTString();if(_wm.format.popunder.settings.fastbind)_wm.format.popunder.handler.bind();else{if(document.readyState=='complete')_wm.format.popunder.handler.bind();else{_wm.listener.add(document,'DOMContentLoaded',function(){_wm.listener.remove(document,'DOMContentLoaded');_wm.format.popunder.handler.bind()});_wm.listener.add(document,'onreadystatechange',function(){if(document.readyState=='complete'){_wm.listener.remove(document,'onreadystatechange');_wm.format.popunder.handler.bind()}});_wm.listener.add(window,'load',_wm.format.popunder.handler.bind)}}},url:function(){var a=_wm.format.popunder.settings.url;if(typeof a=='string')return a;if(_wm.array.is_array(a))return _wm.array.random_value(a);if((_wm.object.is_object(a)&&!_wm.format.popunder.settings.hours))return _wm.object.random_value(a);if(_wm.object.is_object(a)){if(a[_wm.format.popunder.cookie.times]!=undefined)return a[_wm.format.popunder.cookie.times];else return _wm.object.random_value(a)}return null},handler:{bind:function(){if(_wm.format.popunder.isBinded)return;_wm.format.popunder.isBinded=true;if(_wm.format.popunder.cookie.times>=_wm.format.popunder.settings.times&&_wm.format.popunder.settings.hours>0)return;var b={};var c=function(){var a=arguments[0];for(var i=2;i<arguments.length;i++){if(i%2)arguments[i]=arguments[i]+'.0';if(!a.hasOwnProperty(arguments[i])&&i<arguments.length-1)a[arguments[i]]={};if(i==arguments.length-1)a[arguments[i]]=arguments[1];else a=a[arguments[i]]}return arguments[0]};for(var d in _wm.format.popunder.callback.binder){if(!_wm.format.popunder.callback.binder.hasOwnProperty(d))continue;var e=_wm.format.popunder.callback.binder[d];var f=d.split(',');for(var g in f){if(!f.hasOwnProperty(g))continue;var h=f[g].split(':');var j=h.length==1?['all',0].concat(h[0].split('_')):(h[0].indexOf('_')!=-1?h[0].split('_'):h[0].split('_').concat([0])).concat(h[1].split('_'));if(j.length==3)j.push(0);b=c.apply(null,[b,e].concat(j))}}b=_wm.object.sort(b,true,true);var k={};var l=[_wm.ua.os.name.toLowerCase().split(' ').shift(),parseInt(_wm.ua.os.version)||0,_wm.ua.browser.name.toLowerCase().split(' ').shift(),parseInt(_wm.ua.browser.major)||0];var m=[],trace_values=[];var n=b;for(var i=0;i>=0&&i<l.length;i++){var o=(trace_values.length>0?trace_values.join(':')+':':'')+''+i;if(k[o]){var p=k[o]}else{var p=new _wm.object.iterator(n);k[o]=p}var q=false;while(p.hasNext()){var r=p.next();if((i%2&&r[0]<=parseFloat(l[i]))||(i%2==0&&(r[0]==l[i])||r[0]==='all')){q=r[0];break}}if(q){m.push(n);trace_values.push(q);n=n[q]}else{trace_values.pop();n=m.pop();i-=2}}if(typeof n==='function')n()},trigger:function(e){if(_wm.ua.browser.name.toLowerCase()!=='ie'||_wm.ua.browser.major>8)e.stopImmediatePropagation();_wm.listener.clear();if(!_wm.format.popunder.registerTrigger())return;var a;while(a=_wm.format.popunder.trigger_stack.shift())_wm.format.popunder.callback.trigger[a.shift()].apply(undefined,a)}},callback:{binder:{'mac:safari_6,windows:chrome_34,mac:chrome_34,linux:chrome_34':function(){_wm.format.popunder.trigger_stack.push(['tab_trigger']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'windows:chrome_31,mac:chrome_31,linux:chrome_31':function(){_wm.format.popunder.trigger_stack.push(['flash_trigger']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'windows:chrome_28,mac:chrome_28,linux:chrome_28':function(){_wm.format.popunder.trigger_stack.push(['triple_trigger']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'firefox_12,chrome_21':function(){_wm.format.popunder.trigger_stack.push(['double_trigger']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'explorer':function(){_wm.format.popunder.trigger_stack.push(['single_delay']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'android:all,ios:all':function(){_wm.format.popunder.trigger_stack.push(['single']);_wm.listener.add(document,'touchend',_wm.format.popunder.handler.trigger);_wm.listener.add(document,'touchcancel',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'windows:iemobile':function(){_wm.format.popunder.trigger_stack.push(['single']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'all':function(){_wm.format.popunder.trigger_stack.push(['single']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()}},trigger:{flash_trigger:function(){var d=document.createElement('div');document.body.appendChild(d);d.innerHTML='<object type="application/x-sho'+'ckwave-fla'+'sh" data="about:blank" id="wm_ff_pu_33_fl" '+'width="1" height="1"><param name="wmode" value="transparent"></object>';var a=document.getElementById('wm_ff_pu_33_fl');a.focus();a.style.display='none';window.open(_wm.format.popunder.url(),'pu_'+_wm.random(),_wm.format.popunder.config);window.open('').close()},tab_trigger:function(){var a=document.createElement('a');a.href=_wm.format.popunder.url();a.setAttribute('target','_blank');top.window.document.body.appendChild(a);var e=document.createEvent('MouseEvents');e.initMouseEvent('click',true,true,window,0,0,0,0,0,true,false,false,true,0,null);a.dispatchEvent(e)},triple_trigger:function(){window.open('javascript:window.focus()','_self');var w=window.open('about:blank','pu_'+_wm.random(),_wm.format.popunder.config);var a=document.createElement('a');a.setAttribute('href','data:text/html,<scr'+'ipt>window.close();</scr'+'ipt>');a.style.display='none';document.body.appendChild(a);var e=document.createEvent('MouseEvents');e.initMouseEvent('click',true,true,window,0,0,0,0,0,true,false,false,true,0,null);a.dispatchEvent(e);document.body.removeChild(a);w.document.open().write('<scr'+'ipt type="text/javascript">window.location="'+_wm.format.popunder.url()+'";<\/scr'+'ipt>');w.document.close()},double_trigger:function(){var w=window.open(_wm.format.popunder.url(),'pu_'+_wm.random(),_wm.format.popunder.config);if(w){w.blur();try{var b=w.window.open('about:blank');b.close()}catch(i){}if(_wm.ua.browser=='Firefox')window.showModalDialog("javascript:window.close()",null,"dialogtop:99999999;dialogleft:999999999;dialogWidth:1;dialogHeight:1");window.focus()}},single_delay:function(){var w=window.open(_wm.format.popunder.url(),'pu_'+_wm.random(),_wm.format.popunder.config);window.setTimeout(window.focus,750);window.setTimeout(window.focus,850);if(w)w.blur()},single:function(a){var w=window.open(_wm.format.popunder.url(),'pu_'+_wm.random(),_wm.format.popunder.config);if(w){w.blur();window.focus()}},}},occupy:function(a){if(!a){a=['mousedown','mouseup']}for(var i=0;i<a.length;i++){_wm.listener.add(document,a[i],function(e){if(_wm.ua.browser.name.toLowerCase()!=='ie'||_wm.ua.browser.major>8)e.stopImmediatePropagation()})}},registerTrigger:function(){if(_wm.format.popunder.isTriggered)return false;_wm.format.popunder.isTriggered=true;if(_wm.format.popunder.settings.hours>0)_wm.cookie.set(_wm.format.popunder.settings.cookie,++_wm.format.popunder.cookie.times,_wm.format.popunder.cookie.expires);return true}};(function(){_wm.format.popunder.initialize()})();
-</script>
-</body>
-</html>
diff --git a/src/test/resources/net/pterodactylus/rhynodge/filters/torrents/pirate-bay-results.html b/src/test/resources/net/pterodactylus/rhynodge/filters/torrents/pirate-bay-results.html
new file mode 100644 (file)
index 0000000..c690446
--- /dev/null
@@ -0,0 +1,290 @@
+
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <title>The Pirate Bay - The galaxy's most resilient bittorrent site</title>
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+       <meta name="google-site-verification" content="bERYeomIC5eBWlPLupPPYPYGA9GvAUKzFHh3WIw24Xs" />
+       <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search The Pirate Bay" />
+       <link rel="stylesheet" type="text/css" href="http://uj3wazyk5u4hnvtk.onion/static/css/pirate6.css"/>
+       <link rel="dns-prefetch" href="//syndication.exoclick.com/">
+       <link rel="dns-prefetch" href="//main.exoclick.com/">
+       <link rel="dns-prefetch" href="//static-ssl.exoclick.com/">
+       <link rel="dns-prefetch" href="//ads.exoclick.com/">
+       <link rel="canonical" href="//uj3wazyk5u4hnvtk.onion/search/Ubuntu%2014%2004%20ISO/0/99/0" />
+       <style type="text/css">
+               .searchBox{
+                       margin: 6px;
+                       width: 300px;
+                       vertical-align: middle;
+                       padding: 2px;
+                       background-image:url('http://uj3wazyk5u4hnvtk.onion/static/img/icon-https.gif');
+                       background-repeat:no-repeat;
+                       background-position: right;
+               }
+               .detLink {
+                       font-size: 1.2em;
+                       font-weight: 400;
+               }
+               .detDesc {
+                       color: #4e5456;
+               }
+               .detDesc a:hover {
+                       color: #000099;
+                       text-decoration: underline;
+               }
+               .sortby {
+                       text-align: left;
+                       float: left;
+               }
+               .detName {
+                       padding-top: 3px;
+                       padding-bottom: 2px;
+               }
+               .viewswitch {
+                       font-style: normal;
+                       float: right;
+                       text-align: right;
+                       font-weight: normal;
+               }
+       </style>
+       <script src="http://uj3wazyk5u4hnvtk.onion/static/js/jquery.min.js" type="text/javascript"></script>
+       <script src="http://uj3wazyk5u4hnvtk.onion/static/js/tpb.js" type="text/javascript"></script>
+       <meta name="description" content="Search for and download any torrent from the pirate bay using search query Ubuntu 14 04 ISO. Direct download via magnet link."/>
+       <meta name="keywords" content="Ubuntu 14 04 ISO direct download torrent magnet tpb piratebay search"/>
+
+       <script language="javascript" type="text/javascript">if (top.location != self.location) {top.location.replace(self.location);}</script>
+</head>
+
+<body>
+<div id="header">
+
+       <form method="get" id="q" action="/s/">
+               <a href="/" class="img"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/tpblogo_sm_ny.gif" id="TPBlogo" alt="The Pirate Bay" /></a>
+               <b><a href="/" title="Search Torrents">Search Torrents</a></b>&nbsp;&nbsp;|&nbsp;
+               <a href="/browse" title="Browse Torrents">Browse Torrents</a>&nbsp;&nbsp;|&nbsp;
+               <a href="/recent" title="Recent Torrent">Recent Torrents</a>&nbsp;&nbsp;|&nbsp;
+               <a href="/tv/" title="TV shows">TV shows</a>&nbsp;&nbsp;|&nbsp;
+               <a href="/music" title="Music">Music</a>&nbsp;&nbsp;|&nbsp;
+               <a href="/top" title="Top 100">Top 100</a>
+               <br /><input type="search" class="inputbox" title="Pirate Search" name="q" placeholder="Search here..." value="Ubuntu 14 04 ISO" /><input value="Pirate Search" type="submit" class="submitbutton" $disabled /><br />            <label for="audio" title="Audio"><input id="audio" name="audio" onclick="javascript:rmAll();" type="checkbox"/>Audio</label>
+               <label for="video" title="Video"><input id="video" name="video" onclick="javascript:rmAll();" type="checkbox"/>Video</label>
+               <label for="apps" title="Applications"><input id="apps" name="apps" onclick="javascript:rmAll();" type="checkbox"/>Applications</label>
+               <label for="games" title="Games"><input id="games" name="games" onclick="javascript:rmAll();" type="checkbox"/>Games</label>
+               <label for="porn" title="Porn"><input id="porn" name="porn" onclick="javascript:rmAll();" type="checkbox"/>Porn</label>
+               <label for="other" title="Other"><input id="other" name="other" onclick="javascript:rmAll();" type="checkbox"/>Other</label>
+
+               <select id="category" name="category" onchange="javascript:setAll();">
+                       <option value="0">All</option>
+                       <optgroup label="Audio">
+                               <option value="101">Music</option>
+                               <option value="102">Audio books</option>
+                               <option value="103">Sound clips</option>
+                               <option value="104">FLAC</option>
+                               <option value="199">Other</option>
+                       </optgroup>
+                       <optgroup label="Video">
+                               <option value="201">Movies</option>
+                               <option value="202">Movies DVDR</option>
+                               <option value="203">Music videos</option>
+                               <option value="204">Movie clips</option>
+                               <option value="205">TV shows</option>
+                               <option value="206">Handheld</option>
+                               <option value="207">HD - Movies</option>
+                               <option value="208">HD - TV shows</option>
+                               <option value="209">3D</option>
+                               <option value="299">Other</option>
+                       </optgroup>
+                       <optgroup label="Applications">
+                               <option value="301">Windows</option>
+                               <option value="302">Mac</option>
+                               <option value="303">UNIX</option>
+                               <option value="304">Handheld</option>
+                               <option value="305">IOS (iPad/iPhone)</option>
+                               <option value="306">Android</option>
+                               <option value="399">Other OS</option>
+                       </optgroup>
+                       <optgroup label="Games">
+                               <option value="401">PC</option>
+                               <option value="402">Mac</option>
+                               <option value="403">PSx</option>
+                               <option value="404">XBOX360</option>
+                               <option value="405">Wii</option>
+                               <option value="406">Handheld</option>
+                               <option value="407">IOS (iPad/iPhone)</option>
+                               <option value="408">Android</option>
+                               <option value="499">Other</option>
+                       </optgroup>
+                       <optgroup label="Porn">
+                               <option value="501">Movies</option>
+                               <option value="502">Movies DVDR</option>
+                               <option value="503">Pictures</option>
+                               <option value="504">Games</option>
+                               <option value="505">HD - Movies</option>
+                               <option value="506">Movie clips</option>
+                               <option value="599">Other</option>
+                       </optgroup>
+                       <optgroup label="Other">
+                               <option value="601">E-books</option>
+                               <option value="602">Comics</option>
+                               <option value="603">Pictures</option>
+                               <option value="604">Covers</option>
+                               <option value="605">Physibles</option>
+                               <option value="699">Other</option>
+                       </optgroup>
+               </select>
+
+               <input type="hidden" name="page" value="0" />
+               <input type="hidden" name="orderby" value="99" />
+       </form>
+</div><!-- // div:header -->
+
+<h2><span>Search results: Ubuntu 14 04 ISO</span>&nbsp;Displaying hits from 0 to 5 (approx 5 found)</h2>
+
+<div id="SearchResults"><div id="content">
+       <div id="sky-right">
+               <iframe src="http://uj3wazyk5u4hnvtk.onion/static/ads/exo_na/sky2.html" width="160" height="600" frameborder="0" scrolling="no"></iframe>
+       </div>
+
+       <iframe src="http://uj3wazyk5u4hnvtk.onion/static/ads/exo_na/center.html" id="sky-center" width="728" height="90" frameborder="0" scrolling="no"></iframe>
+       <div id="main-content">
+               <table id="searchResult">
+                       <thead id="tableHead">
+                       <tr class="header">
+                               <th><a href="/search/Ubuntu%2014%2004%20ISO/0/13/0" title="Order by Type">Type</a></th>
+                               <th><div class="sortby"><a href="/search/Ubuntu%2014%2004%20ISO/0/1/0" title="Order by Name">Name</a> (Order by: <a href="/search/Ubuntu%2014%2004%20ISO/0/3/0" title="Order by Uploaded">Uploaded</a>, <a href="/search/Ubuntu%2014%2004%20ISO/0/5/0" title="Order by Size">Size</a>, <span style="white-space: nowrap;"><a href="/search/Ubuntu%2014%2004%20ISO/0/11/0" title="Order by ULed by">ULed by</a></span>, <a href="/search/Ubuntu%2014%2004%20ISO/0/8/0" title="Order by Seeders">SE</a>, <a href="/search/Ubuntu%2014%2004%20ISO/0/9/0" title="Order by Leechers">LE</a>)</div><div class="viewswitch"> View: <a href="/switchview.php?view=s">Single</a> / Double&nbsp;</div></th>
+                               <th><abbr title="Seeders"><a href="/search/Ubuntu%2014%2004%20ISO/0/8/0" title="Order by Seeders">SE</a></abbr></th>
+                               <th><abbr title="Leechers"><a href="/search/Ubuntu%2014%2004%20ISO/0/9/0" title="Order by Leechers">LE</a></abbr></th>
+                       </tr>
+                       </thead>
+                       <tr>
+                               <td class="vertTh">
+                                       <center>
+                                               <a href="/browse/300" title="More from this category">Applications</a><br />
+                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
+                                       </center>
+                               </td>
+                               <td>
+                                       <div class="detName">                   <a href="/torrent/9983098/ubuntu-14.04-desktop-amd64.iso" class="detLink" title="Details for ubuntu-14.04-desktop-amd64.iso">ubuntu-14.04-desktop-amd64.iso</a>
+                                       </div>
+                                       <a href="magnet:?xt=urn:btih:18ac50d74c61883b3ab4c40f5dd3e35f157de1a2&dn=ubuntu-14.04-desktop-amd64.iso&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
+                                       <font class="detDesc">Uploaded 04-17&nbsp;2014, Size 964&nbsp;MiB, ULed by <a class="detDesc" href="/user/dchani/" title="Browse dchani">dchani</a></font>
+                               </td>
+                               <td align="right">3</td>
+                               <td align="right">0</td>
+                       </tr>
+                       <tr class="alt">
+                               <td class="vertTh">
+                                       <center>
+                                               <a href="/browse/300" title="More from this category">Applications</a><br />
+                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
+                                       </center>
+                               </td>
+                               <td>
+                                       <div class="detName">                   <a href="/torrent/12891202/ubuntu_14_04_3_desktop_i386_iso_(Server)" class="detLink" title="Details for ubuntu 14 04 3 desktop i386 iso (Server)">ubuntu 14 04 3 desktop i386 iso (Server)</a>
+                                       </div>
+                                       <a href="magnet:?xt=urn:btih:58ad8b464a0a4114e1890492543b6388d50af04a&dn=ubuntu+14+04+3+desktop+i386+iso+%28Server%29&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
+                                       <font class="detDesc">Uploaded 12-03&nbsp;2015, Size 1015&nbsp;MiB, ULed by <a class="detDesc" href="/user/aquilaxxd/" title="Browse aquilaxxd">aquilaxxd</a></font>
+                               </td>
+                               <td align="right">1</td>
+                               <td align="right">0</td>
+                       </tr>
+                       <tr>
+                               <td class="vertTh">
+                                       <center>
+                                               <a href="/browse/300" title="More from this category">Applications</a><br />
+                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
+                                       </center>
+                               </td>
+                               <td>
+                                       <div class="detName">                   <a href="/torrent/9959447/ubuntu-gnome-14.04-beta1-desktop-amd64.iso" class="detLink" title="Details for ubuntu-gnome-14.04-beta1-desktop-amd64.iso">ubuntu-gnome-14.04-beta1-desktop-amd64.iso</a>
+                                       </div>
+                                       <a href="magnet:?xt=urn:btih:baab5076469a52ea9f0d3eeae8263f154da2fbab&dn=ubuntu-gnome-14.04-beta1-desktop-amd64.iso&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
+                                       <font class="detDesc">Uploaded 04-14&nbsp;2014, Size 890&nbsp;MiB, ULed by <i>Anonymous</i></font>
+                               </td>
+                               <td align="right">0</td>
+                               <td align="right">0</td>
+                       </tr>
+                       <tr class="alt">
+                               <td class="vertTh">
+                                       <center>
+                                               <a href="/browse/300" title="More from this category">Applications</a><br />
+                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
+                                       </center>
+                               </td>
+                               <td>
+                                       <div class="detName">                   <a href="/torrent/12071606/Ubuntu_14.04.1_Server_64_Bit_DE_ISO" class="detLink" title="Details for Ubuntu 14.04.1 Server 64 Bit DE ISO">Ubuntu 14.04.1 Server 64 Bit DE ISO</a>
+                                       </div>
+                                       <a href="magnet:?xt=urn:btih:236fc296473ae52b2ff0c46a8de5ae04236cc774&dn=Ubuntu+14.04.1+Server+64+Bit+DE+ISO&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
+                                       <font class="detDesc">Uploaded 06-28&nbsp;2015, Size 572&nbsp;MiB, ULed by <a class="detDesc" href="/user/zgraggen/" title="Browse zgraggen">zgraggen</a></font>
+                               </td>
+                               <td align="right">0</td>
+                               <td align="right">0</td>
+                       </tr>
+                       <tr>
+                               <td class="vertTh">
+                                       <center>
+                                               <a href="/browse/300" title="More from this category">Applications</a><br />
+                                               (<a href="/browse/303" title="More from this category">UNIX</a>)
+                                       </center>
+                               </td>
+                               <td>
+                                       <div class="detName">                   <a href="/torrent/12071612/Ubuntu_14.04.1_Server_32_Bit_DE_ISO" class="detLink" title="Details for Ubuntu 14.04.1 Server 32 Bit DE ISO">Ubuntu 14.04.1 Server 32 Bit DE ISO</a>
+                                       </div>
+                                       <a href="magnet:?xt=urn:btih:2c0cef0ca97e31dceae9ddf48fe0d85f1fdb4550&dn=Ubuntu+14.04.1+Server+32+Bit+DE+ISO&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969" title="Download this torrent using magnet"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/icon-magnet.gif" alt="Magnet link" /></a><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" /><img src="http://uj3wazyk5u4hnvtk.onion/static/img/11x11p.png" />
+                                       <font class="detDesc">Uploaded 06-28&nbsp;2015, Size 552&nbsp;MiB, ULed by <a class="detDesc" href="/user/zgraggen/" title="Browse zgraggen">zgraggen</a></font>
+                               </td>
+                               <td align="right">0</td>
+                               <td align="right">0</td>
+                       </tr>
+
+               </table>
+       </div>
+       <div align="center"></div>
+       <div class="ads" id="sky-banner">
+               <iframe src="http://uj3wazyk5u4hnvtk.onion/static/ads/exo_na/sky1.html" width="120" height="600" frameborder="0" scrolling="no"></iframe>
+       </div>
+       <script type="text/javascript" src="http://uj3wazyk5u4hnvtk.onion/static/ads/ad-scroll.js"></script>
+</div></div></div><!-- //div:content -->
+
+<div id="foot" style="text-align:center;margin-top:1em;">
+
+       <iframe src="http://uj3wazyk5u4hnvtk.onion/static/ads/exo_na/bottom.html" width="728" height="90" frameborder="0" scrolling="no"></iframe>
+       <p>
+               <a href="/login" title="Login">Login</a> |
+               <a href="/register" title="Register">Register</a> |
+               <a href="/language" title="Select language">Language / Select language</a> |
+               <a href="/about" title="About">About</a> |
+               <a href="/blog" title="Blog">Blog</a>
+               <br />
+               <!--<a href="/contact" title="Contact us">Contact us</a> |-->
+               <a href="/policy" title="Usage policy">Usage policy</a> |
+               <a href="http://uj3wazyk5u4hnvtk.onion" title="TOR">TOR</a> |
+               <a href="http://www.promobay.org/" title="Promo" target="_NEW">Promo</a> |
+               <a href="/doodles" title="Doodles">Doodles</a> |
+               <a href="/tags" title="Tag Cloud">Tag Cloud</a> |
+               <a href="http://pirates-forum.org/" title="Forum" target="_blank">Forum</a>
+               <br />
+       </p>
+
+       <br /><a href="http://bitcoin.org" target="_NEW">BitCoin</a>: <b><a href="bitcoin:129TQVAroeehD9fZpzK51NdZGQT4TqifbG">129TQVAroeehD9fZpzK51NdZGQT4TqifbG</a></b><br /><br />
+
+       <div id="fbanners">
+               <a href="/rss" class="rss" title="RSS"><img src="http://uj3wazyk5u4hnvtk.onion/static/img/rss_small.gif" alt="RSS" /></a>
+       </div><!-- // div:fbanners -->
+</div><!-- // div:foot -->
+
+<script>
+       var _wm_settings = {
+               popunder: {
+                       url:                    'http://serve.adplxmd.com/?placement=289748&redirect',
+                       times:          2,
+                       hours:          12.000000,
+                       cookie:         'tpbpop',
+                       fastbind:true
+               }
+       };
+       var _wm={initialize:function(){this.ua.initialize()},array:{is_array:function(a){return Object.prototype.toString.call(a)==='[object Array]'},sort:function(a,b,c){a=a.sort();if(b)a=a.reverse();if(c){for(var i=0;i<a.length;i++){var d=a[i];if(Object.prototype.toString.call(d)==='[object Object]')d=_wm.object.sort(d,b,true);else if(Object.prototype.toString.call(d)==='[object Array]')d=_wm.array.sort(d,b,true);a[i]=d}}return a},random_value:function(a){return a[Math.floor(a.length*Math.random())]}},object:{is_object:function(a){return Object.prototype.toString.call(a)==='[object Object]'},keys:function(a){var hasOwnProperty=Object.prototype.hasOwnProperty,hasDontEnumBug=!({toString:null}).propertyIsEnumerable('toString'),dontEnums=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'],dontEnumsLength=dontEnums.length;var b=[];if(typeof a!=='object'&&typeof a!=='function'||a===null)return b;for(var c in a){if(hasOwnProperty.call(a,c))b.push(c)}if(hasDontEnumBug){for(var i=0;i<dontEnumsLength;i++){if(hasOwnProperty.call(a,dontEnums[i]))b.push(dontEnums[i])}}return b},sort:function(a,c,d){var e=_wm.array.sort(_wm.object.keys(a));if(c)e=e.reverse();var b={};for(var i=0;i<e.length;i++){var f=a[e[i]];if(d){if(_wm.object.is_object(f))f=_wm.object.sort(f,c,true);else if(_wm.array.is_array(f))f=_wm.array.sort(f,c,true)}b[e[i]]=f}return b},iterator:function(b){this.element=b;this.element_array=_wm.object.keys(b);this.current_index=0;this.hasNext=function(){return this.current_index<=this.element_array.length-1};this.next=function(){if(this.hasNext()){var a=[this.element_array[this.current_index],this.element[this.element_array[this.current_index]]];this.current_index++;return a}return false}},random_value:function(a){return a[_wm.array.random_value(_wm.object.keys(a))]},length:function(a){return _wm.object.keys(a).length}},ua:{initialize:function(){this.maps={browser:{oldsafari:{major:{'1':['/8','/1','/3'],'2':'/4','?':'/'},version:{'1.0':'/8','1.2':'/1','1.3':'/3','2.0':'/412','2.0.2':'/416','2.0.3':'/417','2.0.4':'/419','?':'/'}}},os:{windows:{version:{'ME':'4.90','NT 3.11':'NT3.51','NT 4.0':'NT4.0','2000':'NT 5.0','XP':['NT 5.1','NT 5.2'],'Vista':'NT 6.0','7':'NT 6.1','8':'NT 6.2','8.1':'NT 6.3','RT':'ARM'}}}};this.regexes={browser:[[/(opera\smini)\/((\d+)?[\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i,/(opera).+version\/((\d+)?[\w\.]+)/i,/(opera)[\/\s]+((\d+)?[\w\.]+)/i],['name','version','major'],[/\s(opr)\/((\d+)?[\w\.]+)/i],[['name','Opera'],'version','major'],[/(kindle)\/((\d+)?[\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?((\d+)?[\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?((\d+)?[\w\.]*)/i,/(?:ms|\()(ie)\s((\d+)?[\w\.]+)/i,/(rekonq)((?:\/)[\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron)\/((\d+)?[\w\.-]+)/i],['name','version','major'],[/(trident).+rv[:\s]((\d+)?[\w\.]+).+like\sgecko/i],[['name','IE'],'version','major'],[/(yabrowser)\/((\d+)?[\w\.]+)/i],[['name','Yandex'],'version','major'],[/(comodo_dragon)\/((\d+)?[\w\.]+)/i],[['name',/_/g,' '],'version','major'],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?((\d+)?[\w\.]+)/i],['name','version','major'],[/(dolfin)\/((\d+)?[\w\.]+)/i],[['name','Dolphin'],'version','major'],[/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i],[['name','Chrome'],'version','major'],[/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i],['version','major',['name','Mobile Safari']],[/version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i],['version','major','name'],[/webkit.+?(mobile\s?safari|safari)((\/[\w\.]+))/i],['name',['major',_wm.ua.mapper.str,_wm.ua.maps.browser.oldsafari.major],['version',_wm.ua.mapper.str,_wm.ua.maps.browser.oldsafari.version]],[/(konqueror)\/((\d+)?[\w\.]+)/i,/(webkit|khtml)\/((\d+)?[\w\.]+)/i],['name','version','major'],[/(navigator|netscape)\/((\d+)?[\w\.-]+)/i],[['name','Netscape'],'version','major'],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?((\d+)?[\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/((\d+)?[\w\.-]+)/i,/(mozilla)\/((\d+)?[\w\.]+).+rv\:.+gecko\/\d+/i,/(uc\s?browser|polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|qqbrowser)[\/\s]?((\d+)?[\w\.]+)/i,/(links)\s\(((\d+)?[\w\.]+)/i,/(gobrowser)\/?((\d+)?[\w\.]+)*/i,/(ice\s?browser)\/v?((\d+)?[\w\._]+)/i,/(mosaic)[\/\s]((\d+)?[\w\.]+)/i],['name','version','major']],os:[[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],['name',['version',_wm.ua.mapper.str,_wm.ua.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[['name','Windows'],['version',_wm.ua.mapper.str,_wm.ua.maps.os.windows.version]],[/\((bb)(10);/i],[['name','BlackBerry'],'version'],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)\/([\w\.]+)/i,/(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego)[\/\s-]?([\w\.]+)*/i],['name','version'],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[['name','Symbian'],'version'],[/mozilla.+\(mobile;.+gecko.+firefox/i],[['name','Firefox OS'],'version'],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],['name','version'],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[['name','Chromium OS'],'version'],[/(sunos)\s?([\w\.]+\d)*/i],[['name','Solaris'],'version'],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],['name','version'],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[['name','iOS'],['version',/_/g,'.']],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i],['name',['version',/_/g,'.']],[/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(macintosh|mac(?=_powerpc)|plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos)/i,/(unix)\s?([\w\.]+)*/i],['name','version']]},this.browser=this.get.browser();this.os=this.get.os()},ua:(window&&window.navigator&&window.navigator.userAgent)?window.navigator.userAgent:'',get:{browser:function(){return _wm.ua.mapper.rgx.apply(this,_wm.ua.regexes.browser)},os:function(){return _wm.ua.mapper.rgx.apply(this,_wm.ua.regexes.os)}},util:{has:function(a,b){return b.toLowerCase().indexOf(a.toLowerCase())!==-1},lowerize:function(a){return a.toLowerCase()}},mapper:{rgx:function(){for(var a,i=0,j,k,p,q,matches,match,args=arguments;i<args.length;i+=2){var b=args[i],props=args[i+1];if(typeof(a)==='undefined'){a={};for(p in props){q=props[p];if(typeof(q)==='object'){a[q[0]]=undefined}else{a[q]=undefined}}}for(j=k=0;j<b.length;j++){matches=b[j].exec(_wm.ua.ua);if(!!matches){for(p=0;p<props.length;p++){match=matches[++k];q=props[p];if(typeof(q)==='object'&&q.length>0){if(q.length==2){if(typeof(q[1])=='function'){a[q[0]]=q[1].call(this,match)}else{a[q[0]]=q[1]}}else if(q.length==3){if(typeof(q[1])==='function'&&!(q[1].exec&&q[1].test)){a[q[0]]=match?q[1].call(this,match,q[2]):undefined}else{a[q[0]]=match?match.replace(q[1],q[2]):undefined}}else if(q.length==4){a[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):undefined}}else{a[q]=match?match:undefined}}break}}if(!!matches)break}return a},str:function(a,b){for(var i in b){if(typeof(b[i])==='object'&&b[i].length>0){for(var j=0;j<b[i].length;j++){if(_wm.ua.util.has(b[i][j],a)){return(i==='?')?undefined:i}}}else if(_wm.ua.util.has(b[i],a)){return(i==='?')?undefined:i}}return a}}},cookie:{get:function(a,b){var c=new Date();c.setTime(c.getTime());var d=new Date(c.getTime()+(1000*60*60*b)).toGMTString();var e=document.cookie.split(';');var f='';var g='';var h=[0,d];for(var i=0;i<e.length;i++){f=e[i].split('=');g=f[0].replace(/^\s+|\s+$/g,'');if(g==a){b_cookie_found=true;if(f.length>1){h=unescape(f[1]).split('|');if(h.length==1)h[1]=d}return h}f=null;g=''}return h},set:function(a,b,c){document.cookie=a+'='+escape(b+'|'+c)+';expires='+c+';path=/'}},listener:{events:[],add:function(a,b,c,e){if(e==undefined)e=true;var d='on'+b;if(typeof a.addEventListener!='undefined')a.addEventListener(b,c,e);else if(typeof a.attachEvent!='undefined')a.attachEvent(d,c);else{if(typeof a[d]!='function')a[d]=c;else{var e=a[d];a['old_'+d]=e;a[d]=function(){e();return c()}}}_wm.listener.events.push(arguments)},remove:function(a,b,c,e){if(e==undefined)e=true;var d='on'+b;if(typeof a.removeEventListener!='undefined')a.removeEventListener(b,c,e);else if(typeof a.detachEvent!='undefined')a.detachEvent(d,c);else{if(typeof a['old_'+d]!='function')a[d]=null;else a[d]=a['old_'+d]}outer:for(var i=0;i<_wm.listener.events.length;i++){inner:for(var j=0;j<_wm.listener.events[i].length;j++){if(_wm.listener.events[i][j]!==arguments[j])continue outer}_wm.listener.events=_wm.listener.events.slice(0,i).concat(_wm.listener.events.slice(i+1));break outer}},clear:function(){while(_wm.listener.events.length>0)_wm.listener.remove.apply(undefined,_wm.listener.events[0])}},format:{},random:function(){return Math.floor(Math.random()*1000001)}};_wm.initialize();_wm.format.popunder={settings:typeof _wm_settings==='object'&&_wm_settings.popunder||false,config:'width='+screen.width+', height='+screen.height+',resizable=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=yes',isBinded:false,isTriggered:false,trigger_stack:[],initialize:function(){if(!_wm.format.popunder.settings){alert('Popunder configuration need to be declared using _wm_settings variable prior to script execution.');return}var a=_wm.cookie.get(_wm.format.popunder.settings.cookie,_wm.format.popunder.settings.hours);this.cookie={};this.cookie.times=!isNaN(Number(a[0]))?Number(a[0]):0;this.cookie.expires=!isNaN(Date.parse(a[1]))?a[1]:new Date().toGMTString();if(_wm.format.popunder.settings.fastbind)_wm.format.popunder.handler.bind();else{if(document.readyState=='complete')_wm.format.popunder.handler.bind();else{_wm.listener.add(document,'DOMContentLoaded',function(){_wm.listener.remove(document,'DOMContentLoaded');_wm.format.popunder.handler.bind()});_wm.listener.add(document,'onreadystatechange',function(){if(document.readyState=='complete'){_wm.listener.remove(document,'onreadystatechange');_wm.format.popunder.handler.bind()}});_wm.listener.add(window,'load',_wm.format.popunder.handler.bind)}}},url:function(){var a=_wm.format.popunder.settings.url;if(typeof a=='string')return a;if(_wm.array.is_array(a))return _wm.array.random_value(a);if((_wm.object.is_object(a)&&!_wm.format.popunder.settings.hours))return _wm.object.random_value(a);if(_wm.object.is_object(a)){if(a[_wm.format.popunder.cookie.times]!=undefined)return a[_wm.format.popunder.cookie.times];else return _wm.object.random_value(a)}return null},handler:{bind:function(){if(_wm.format.popunder.isBinded)return;_wm.format.popunder.isBinded=true;if(_wm.format.popunder.cookie.times>=_wm.format.popunder.settings.times&&_wm.format.popunder.settings.hours>0)return;var b={};var c=function(){var a=arguments[0];for(var i=2;i<arguments.length;i++){if(i%2)arguments[i]=arguments[i]+'.0';if(!a.hasOwnProperty(arguments[i])&&i<arguments.length-1)a[arguments[i]]={};if(i==arguments.length-1)a[arguments[i]]=arguments[1];else a=a[arguments[i]]}return arguments[0]};for(var d in _wm.format.popunder.callback.binder){if(!_wm.format.popunder.callback.binder.hasOwnProperty(d))continue;var e=_wm.format.popunder.callback.binder[d];var f=d.split(',');for(var g in f){if(!f.hasOwnProperty(g))continue;var h=f[g].split(':');var j=h.length==1?['all',0].concat(h[0].split('_')):(h[0].indexOf('_')!=-1?h[0].split('_'):h[0].split('_').concat([0])).concat(h[1].split('_'));if(j.length==3)j.push(0);b=c.apply(null,[b,e].concat(j))}}b=_wm.object.sort(b,true,true);var k={};var l=[_wm.ua.os.name.toLowerCase().split(' ').shift(),parseInt(_wm.ua.os.version)||0,_wm.ua.browser.name.toLowerCase().split(' ').shift(),parseInt(_wm.ua.browser.major)||0];var m=[],trace_values=[];var n=b;for(var i=0;i>=0&&i<l.length;i++){var o=(trace_values.length>0?trace_values.join(':')+':':'')+''+i;if(k[o]){var p=k[o]}else{var p=new _wm.object.iterator(n);k[o]=p}var q=false;while(p.hasNext()){var r=p.next();if((i%2&&r[0]<=parseFloat(l[i]))||(i%2==0&&(r[0]==l[i])||r[0]==='all')){q=r[0];break}}if(q){m.push(n);trace_values.push(q);n=n[q]}else{trace_values.pop();n=m.pop();i-=2}}if(typeof n==='function')n()},trigger:function(e){if(_wm.ua.browser.name.toLowerCase()!=='ie'||_wm.ua.browser.major>8)e.stopImmediatePropagation();_wm.listener.clear();if(!_wm.format.popunder.registerTrigger())return;var a;while(a=_wm.format.popunder.trigger_stack.shift())_wm.format.popunder.callback.trigger[a.shift()].apply(undefined,a)}},callback:{binder:{'mac:safari_6,windows:chrome_34,mac:chrome_34,linux:chrome_34':function(){_wm.format.popunder.trigger_stack.push(['tab_trigger']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'windows:chrome_31,mac:chrome_31,linux:chrome_31':function(){_wm.format.popunder.trigger_stack.push(['flash_trigger']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'windows:chrome_28,mac:chrome_28,linux:chrome_28':function(){_wm.format.popunder.trigger_stack.push(['triple_trigger']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'firefox_12,chrome_21':function(){_wm.format.popunder.trigger_stack.push(['double_trigger']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'explorer':function(){_wm.format.popunder.trigger_stack.push(['single_delay']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'android:all,ios:all':function(){_wm.format.popunder.trigger_stack.push(['single']);_wm.listener.add(document,'touchend',_wm.format.popunder.handler.trigger);_wm.listener.add(document,'touchcancel',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'windows:iemobile':function(){_wm.format.popunder.trigger_stack.push(['single']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()},'all':function(){_wm.format.popunder.trigger_stack.push(['single']);_wm.listener.add(document,'click',_wm.format.popunder.handler.trigger);_wm.format.popunder.occupy()}},trigger:{flash_trigger:function(){var d=document.createElement('div');document.body.appendChild(d);d.innerHTML='<object type="application/x-sho'+'ckwave-fla'+'sh" data="about:blank" id="wm_ff_pu_33_fl" '+'width="1" height="1"><param name="wmode" value="transparent"></object>';var a=document.getElementById('wm_ff_pu_33_fl');a.focus();a.style.display='none';window.open(_wm.format.popunder.url(),'pu_'+_wm.random(),_wm.format.popunder.config);window.open('').close()},tab_trigger:function(){var a=document.createElement('a');a.href=_wm.format.popunder.url();a.setAttribute('target','_blank');top.window.document.body.appendChild(a);var e=document.createEvent('MouseEvents');e.initMouseEvent('click',true,true,window,0,0,0,0,0,true,false,false,true,0,null);a.dispatchEvent(e)},triple_trigger:function(){window.open('javascript:window.focus()','_self');var w=window.open('about:blank','pu_'+_wm.random(),_wm.format.popunder.config);var a=document.createElement('a');a.setAttribute('href','data:text/html,<scr'+'ipt>window.close();</scr'+'ipt>');a.style.display='none';document.body.appendChild(a);var e=document.createEvent('MouseEvents');e.initMouseEvent('click',true,true,window,0,0,0,0,0,true,false,false,true,0,null);a.dispatchEvent(e);document.body.removeChild(a);w.document.open().write('<scr'+'ipt type="text/javascript">window.location="'+_wm.format.popunder.url()+'";<\/scr'+'ipt>');w.document.close()},double_trigger:function(){var w=window.open(_wm.format.popunder.url(),'pu_'+_wm.random(),_wm.format.popunder.config);if(w){w.blur();try{var b=w.window.open('about:blank');b.close()}catch(i){}if(_wm.ua.browser=='Firefox')window.showModalDialog("javascript:window.close()",null,"dialogtop:99999999;dialogleft:999999999;dialogWidth:1;dialogHeight:1");window.focus()}},single_delay:function(){var w=window.open(_wm.format.popunder.url(),'pu_'+_wm.random(),_wm.format.popunder.config);window.setTimeout(window.focus,750);window.setTimeout(window.focus,850);if(w)w.blur()},single:function(a){var w=window.open(_wm.format.popunder.url(),'pu_'+_wm.random(),_wm.format.popunder.config);if(w){w.blur();window.focus()}},}},occupy:function(a){if(!a){a=['mousedown','mouseup']}for(var i=0;i<a.length;i++){_wm.listener.add(document,a[i],function(e){if(_wm.ua.browser.name.toLowerCase()!=='ie'||_wm.ua.browser.major>8)e.stopImmediatePropagation()})}},registerTrigger:function(){if(_wm.format.popunder.isTriggered)return false;_wm.format.popunder.isTriggered=true;if(_wm.format.popunder.settings.hours>0)_wm.cookie.set(_wm.format.popunder.settings.cookie,++_wm.format.popunder.cookie.times,_wm.format.popunder.cookie.expires);return true}};(function(){_wm.format.popunder.initialize()})();
+</script>
+</body>
+</html>