ReTorn Firefox

Examine source code of ReTorn

Inspect and view changes in ReTorn source codes across current and past versions
MinuteBio
Want more fun? Play 1,000+ free unblocked games at
Please login to examine the extension's source code.
manifest.json
{
  "name": "ReTorn",
  "version": "1.8.4.1",
  "description": "The return of a great Torn extension.",
  "author": "Heasley",
  "manifest_version": 3,
  "icons": {
    "16": "images/ReTorn@16px.png",
    "32": "images/ReTorn@32px.png",
    "48": "images/ReTorn@48px.png",
    "64": "images/ReTorn@64px.png",
    "96": "images/ReTorn@96px.png",
    "128": "images/ReTorn@128px.png"
  },
  "action": {
    "default_title": "ReTorn",
    "default_popup": "pages/popup_start.html",
    "default_icon": {
      "16": "images/ReTorn@16px.png",
      "32": "images/ReTorn@32px.png",
      "48": "images/ReTorn@48px.png",
      "64": "images/ReTorn@64px.png",
      "96": "images/ReTorn@96px.png",
      "128": "images/ReTorn@128px.png"
    }
  },
  "permissions": [
    "storage",
    "alarms",
    "notifications"
  ],
  "host_permissions": [
    "https://www.tornstats.com/api/",
    "https://*.torn.com/*"
  ],
  "options_ui": {
    "page": "/pages/options.html",
    "open_in_tab": true
  },
  "background": {
    "type": "module",
    "scripts": [
      "background.js"
    ]
  },
  "browser_specific_settings": {
    "gecko": {
      "id": "public@retorn.rocks",
      "strict_min_version": "121.0"
    }
  },
  "web_accessible_resources": [
    {
      "resources": [
        "/inject/inject_interceptFetch.js",
        "/js/api/apiAjaxComplete.js",
        "/js/everywhere/torn3d.js",
        "/lib/fontawesome/webfonts/fa-brands-400.ttf",
        "/lib/fontawesome/webfonts/fa-brands-400.woff2",
        "/lib/fontawesome/webfonts/fa-solid-900.ttf",
        "/lib/fontawesome/webfonts/fa-solid-900.woff2",
        "/lib/fontawesome/webfonts/fa-regular-400.ttf",
        "/lib/fontawesome/webfonts/fa-regular-400.woff2",
        "/lib/fontawesome/webfonts/fa-v4compatibility.ttf",
        "/lib/fontawesome/webfonts/fa-v4compatibility.woff2"
      ],
      "matches": [
        "https://*.torn.com/*"
      ]
    }
  ],
  "content_scripts": [
    {
      "matches": [
        "https://*.torn.com/*"
      ],
      "exclude_matches": [
        "https://*.torn.com/api.html*",
        "https://wiki.torn.com/*",
        "https://*.torn.com/swagger.php"
      ],
      "css": [
        "/lib/fontawesome/css/all.min.css",
        "css/everywhere/everywhere.css",
        "css/everywhere/quicklinks.css",
        "css/everywhere/npclist.css",
        "css/everywhere/refills.css",
        "css/everywhere/sidebar.css",
        "css/everywhere/features.css"
      ],
      "js": [
        "/lib/jquery-3.6.0.min.js",
        "/lib/trie.min.js",
        "/lib/jquery.tab-complete.min.js",
        "js/everywhere/retorn.js",
        "js/global/constants.js",
        "js/global/globalFunctions.js",
        "js/global/miniprofiles.js",
        "js/global/interceptFetch.js",
        "js/everywhere/sidebar.js",
        "js/everywhere/refills.js",
        "js/everywhere/tornstats_events.js"
      ],
      "run_at": "document_start"
    },
    {
      "matches": [
        "https://*.torn.com/*"
      ],
      "exclude_matches": [
        "https://www.torn.com/api.html*",
        "https://wiki.torn.com/*",
        "https://api.torn.com/*",
        "https://www.torn.com/swagger.php*",
        "https://*.torn.com/admin*"
      ],
      "css": [
        "css/everywhere/left-align.css"
      ],
      "js": [
        "js/everywhere/other.js",
        "js/chat/chat.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/api.html*"
      ],
      "js": [
        "/lib/jquery-3.6.0.min.js",
        "js/api/api.js"
      ],
      "css": [
        "css/api/api.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/page.php?sid=stocks"
      ],
      "js": [
        "js/stocks/stocks.js"
      ],
      "css": [
        "css/stocks/stocks.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/index.php"
      ],
      "js": [
        "js/home/index.js"
      ],
      "css": [
        "css/home/index.css"
      ],
      "run_at": "document_start"
    },
    {
      "matches": [
        "https://*.torn.com/gym.php"
      ],
      "js": [
        "/lib/chartjs.js",
        "js/gym/gym.js"
      ],
      "css": [
        "css/gym/gym.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/crimes.php*"
      ],
      "js": [
        "/lib/jquery.countdown.min.js",
        "js/crimes/crimes.js"
      ],
      "css": [
        "css/crimes/crimes.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/item.php*"
      ],
      "js": [
        "/lib/jquery.countdown.min.js",
        "lib/jqueryui/jquery-ui.min.js",
        "lib/jqueryui/jquery.ui.touch-punch.min.js",
        "js/item/item.js"
      ],
      "css": [
        "css/item/item.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/jailview.php*"
      ],
      "js": [
        "js/jail/jail.js"
      ],
      "css": [
        "css/jail/jail.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/preferences.php*"
      ],
      "js": [
        "js/preferences/preferences.js"
      ],
      "css": [
        "css/preferences/preferences.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/city.php*"
      ],
      "js": [
        "js/city/city.js"
      ],
      "css": [
        "css/city/city.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/profiles.php*"
      ],
      "js": [
        "lib/jqueryui/jquery-ui.min.js",
        "lib/jqueryui/jquery.ui.touch-punch.min.js",
        "js/profiles/profiles.js"
      ],
      "css": [
        "css/profiles/profiles.css"
      ],
      "run_at": "document_start"
    },
    {
      "matches": [
        "https://*.torn.com/profiles.php?XID=1468764",
        "https://*.torn.com/profiles.php?NID=Heasleys4hemp"
      ],
      "js": [
        "js/profiles/heasleys4hemp.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/factions.php*"
      ],
      "js": [
        "js/factions/factions.js",
        "js/factions/territory.js",
        "js/factions/rankedwar.js",
        "js/factions/memberlist.js"
      ],
      "css": [
        "css/factions/factions.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/loader.php?sid=attack*"
      ],
      "js": [
        "js/loader/attack/attack.js"
      ],
      "css": [
        "css/loader/attack/attack.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/forums.php*"
      ],
      "js": [
        "js/forums/forums.js"
      ],
      "css": [
        "css/forums/forums.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/christmas_town.php"
      ],
      "js": [
        "js/competitions/christmastown.js"
      ],
      "css": [
        "css/competitions/christmastown.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/calendar.php"
      ],
      "js": [
        "js/calendar/calendar.js"
      ],
      "css": [
        "css/calendar/calendar.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/bounties.php*"
      ],
      "js": [
        "js/newspaper/bounties.js"
      ],
      "css": [
        "css/newspaper/bounties.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/bazaar.php*"
      ],
      "js": [
        "js/bazaar/bazaar.js"
      ],
      "css": [
        "css/bazaar/bazaar.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/amarket.php*"
      ],
      "js": [
        "js/amarket/amarket.js"
      ],
      "css": [
        "css/amarket/amarket.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/displaycase.php*"
      ],
      "js": [
        "js/displaycase/displaycase.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/war.php?step=rankreport*"
      ],
      "js": [
        "js/war/rankreport.js"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "https://*.torn.com/swagger.php"
      ],
      "js": [
        "/lib/jquery-3.6.0.min.js",
        "js/everywhere/retorn.js",
        "js/global/constants.js",
        "js/swagger/swagger.js"
      ],
      "run_at": "document_start"
    }
  ]
}

Best ReTorn Alternatives

Here are some Firefox add-ons that are similar to ReTorn: