Advertisement
Trambambaj

Linkowanie ikon statków

Sep 9th, 2024 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Linkowanie ikony statków
  3. // @version     2.0
  4. // @match       *hegira.eu/*
  5. // @match       *hegira.com.pl/*
  6. // @match       *www.hegira.com.pl/*
  7. // @match       *www.hegira.eu/*
  8. // @include     *hegira.eu/*
  9. // @include     *hegira.com.pl/*
  10. // @include     *www.hegira.com.pl/*
  11. // @include     *www.hegira.eu/*
  12. // @author      Thing
  13. // @copyright   free
  14. // ==/UserScript==
  15. $('[src*="img/statki"]').each(function () {
  16.   this.src = this.src.replace("gif", "png");
  17. });
  18.  
  19. $('[src*="img/ico_s"]').each(function () {
  20.   if (this.src.includes("black_wrota") || this.src.includes("Cruiser")) {
  21.     this.src = this.src.replace("png", "gif");
  22.   } else {
  23.     this.src = this.src.replace("gif", "png");
  24.   }
  25. });
  26.  
  27. $('[src*="langondier"]').each(function () {
  28.   this.src = this.src.replace("lang", "Lang");
  29. });
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement