Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name DW Search
- // @version 1.1
- // @author ThomassPWA
- // @description brak
- // @namespace http://pastebin.com/raw/uUAjXBpd
- // @include http://darkwarez.pl/forum/search.php*
- // @include https://darkwarez.pl/forum/search.php*
- // @require http://code.jquery.com/jquery-1.11.2.min.js
- // @grant none
- // ==/UserScript==
- $(document).ready(function ()
- {
- if( window.location.href.indexOf('search.php?search=') > -1 )
- {
- var keyword = $('link').attr('href').split('?search='); keyword = decodeURIComponent(keyword[1]);
- $('input[name="search_keywords"]').val(keyword);
- //$('.liteoption[value="Szukaj"]').trigger('click');
- $('form[name="search"]').submit();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement