Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Szukaj lokacji fauna, flora wszystkie opcje
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
- // @version 1.1
- // @include *hegira.com.pl/*
- // @copyright free
- // ==/UserScript==
- if ($('input[type="radio"]').length === 5) {
- $("h3:contains(Szukaj lokalizacji wybranych form życia:)").after(
- '<button type = "button" id = "szukajwsz">Szukaj lokalizacji wszystkich opcji</button>'
- );
- }
- $("button#szukajwsz").click(function () {
- for (let i = 0; i < 2; i++) {
- for (let j = 2; j < 5; j++) {
- $.ajax({
- type: "POST",
- url: "blanc2.php",
- data: `menu=111&tech=local_life&s_id=${
- $('input[type="radio"]')[i].defaultValue
- }&forma_t=${$('input[type="radio"]')[j].defaultValue}&zaladuj=1`,
- async: false,
- });
- }
- }
- location.reload();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement