Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name kasowanie obiektów z widoku
- // @version 1.0
- // @include *hegira.com.pl/*
- // @copyright free
- // ==/UserScript==
- "use strict";
- const kasownik = function (a) {
- $(`img[${a}]`).parent().remove();
- };
- $('button[name="show_g"]')
- ?.parent()
- ?.after(
- '<td><button type ="button" id ="kas_fl" title ="Kasuj ikony flot z podglądu.">KF</button></td>><td><button type ="button" id ="kas_orb_strz" title ="Kasuj ikony budynków orbitalnych i strzałki.">KOS</button></td>'
- );
- $("button#kas_fl").click(function () {
- kasownik('name*="przyciskja2"');
- });
- $("button#kas_orb_strz").click(function () {
- kasownik('title*="rbitaln"');
- kasownik('title*="osmiczny"');
- kasownik('title*="UL Zebren"');
- kasownik('src ="img/bud/orbitalna_plat_ob_80px.png"');
- $('img[title*="obiekt jest"]').remove();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement