Advertisement
ThomassPWA

DW Search

May 3rd, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         DW Search
  3. // @version      1.1
  4. // @author       ThomassPWA
  5. // @description  brak
  6. // @namespace    http://pastebin.com/raw/uUAjXBpd
  7. // @include      http://darkwarez.pl/forum/search.php*
  8. // @include      https://darkwarez.pl/forum/search.php*
  9. // @require      http://code.jquery.com/jquery-1.11.2.min.js
  10. // @grant        none
  11. // ==/UserScript==
  12.  
  13. $(document).ready(function ()
  14. {
  15.     if( window.location.href.indexOf('search.php?search=') > -1 )
  16.     {
  17.         var keyword = $('link').attr('href').split('?search='); keyword = decodeURIComponent(keyword[1]);
  18.         $('input[name="search_keywords"]').val(keyword);
  19.         //$('.liteoption[value="Szukaj"]').trigger('click');
  20.         $('form[name="search"]').submit();
  21.     }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement