Flying seal

If you're bored of planes try owls

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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