Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name kompleksowo gatunki
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
- // @version 1.2
- // @include *hegira.com.pl/*
- // @copyright free
- // ==/UserScript==
- 0 < $('button:contains("Kompleksowo")').length &&
- ($("[name='nazwa_robala']")
- .parent()
- .after(
- '<br /><br/><button type="button" id="komple" title="Badaj każdy z typów kompleksowo.">Kompleksowo kompleksowe</button>'
- ),
- $("button#komple").click(function () {
- const czy = window.confirm(
- "Czy potwierdzasz kompleksowe badanie gatunków?"
- );
- if (!czy) return;
- const idList = [1, 2, 3, 4, 5, 6, 7, 8];
- const liList = [0, -1, -4, -5, -6];
- for (const li of liList) {
- for (const id of idList) {
- if (li < -1 && id === 8) continue;
- $.ajax({
- type: "POST",
- url: "blanc2.php",
- data: `menu=111&tech=local_life&s_id=-999&li_id=${li}&ilu=365500&eko_id=${id}&zaladuj=1`,
- async: false,
- });
- }
- }
- location.reload();
- }));
Add Comment
Please, Sign In to add comment