ReTorn

ReTorn

Its the return of a great Torn extension

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "ReTorn",
  "version": "1.4.0",
  "description": "Its the return of a great Torn extension",
  "manifest_version": 3,
  "icons": {
    "16": "images/[email protected]",
    "32": "images/[email protected]",
    "48": "images/[email protected]",
    "64": "images/[email protected]",
    "96": "images/[email protected]",
    "128": "images/[email protected]"
  },
  "action": {
    "default_title": "ReTorn",
    "default_popup": "pages/popup_start.html"
  },
  "permissions": [
    "storage",
    "background",
    "alarms",
    "notifications",
    "tts"
  ],
  "host_permissions": [
    "https://www.tornstats.com/api/",
    "https://api.torn.com/"
  ],
  "options_ui": {
    "page": "/pages/options.html",
    "open_in_tab": true
  },
  "background": {
    "service_worker": "background.js",
    "type": "module"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "/js/everywhere/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/*"
      ],
      "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/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/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/*"
      ],
      "js": [
        "js/everywhere/other.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/highcharts.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",
        "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"
    }
  ]
}