Flying seal

If you're bored of planes try owls

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Advertisement:

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

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');
}