Flying seal

If you're bored of planes try owls

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Advertisement:

// ==UserScript==
// @name         Flying seal
// @namespace    namespace
// @version      0.8
// @description  If you're bored of planes try owls
// @author       Kivou inspired from https://www.torn.com/forums.php#/p=threads&f=67&t=16048041&b=0&a=0
// @match        *.torn.com/index.php*
// @grant        GM_addStyle
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==


GM_addStyle(`
  .flipped {
    transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -khtml-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
  }
`)

var planeType = $("#plane > img").attr("src").split(".")[0].split("-").pop();
// var pict = "https://i.snag.gy/XBrKmF.jpg";  // flying goat
var pict = "https://i.snag.gy/eNL6Ef.jpg"; // flying seal

if(planeType == "to") {
    $("#plane > img").attr("src", pict);
}
else if (planeType == "from") {
    $("#plane > img").attr("src", pict).addClass('flipped');
}