[Script]Travel Blocker: OC Timing, Drug Cooldown, Bazaar Status…

[Script]Travel Blocker: OC Timing, Drug Cooldown, Bazaar Status

​

    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 11:35:02 - 02/08/25 (1 year ago)
    |
    Last replied 06:00:49 - 22/07/26 (2 months ago)

    TRAVEL BLOCKER

    FORMERLY OC TIMING: TRAVEL BLOCKER

    Important: This script was renamed. If you previously installed OC Timing: Travel Blocker, please remove it first to avoid conflicts.

    A modular Torn travel utility that helps you avoid conflicts and track cooldowns. Blocks travel actions or shows warnings based on customizable rules — and now includes War Watch, a faction war awareness layer that shows enemy member travel intel directly on the Travel Agency page.

    ■ Features

    • Blocks travel if it conflicts with an upcoming Organized Crime window.
    • OC Status — notifies when you have no active Organized Crime, or when your OC has been completed, so you never leave without one running.
    • OC Window — API-powered module that fetches your actual OC ready time and blocks travel within a configurable pre-OC window.
    • Overdose / Addiction — API-powered module that monitors your happiness level and drug addiction penalty, with configurable thresholds. Switzerland always exempt.
    • Checks Drug Cooldown & Bazaar status with configurable Block, Popup, Both, or Off actions per module.
    • Supports both Desktop and Mobile layouts seamlessly.
    • Settings panel accessible via ⚙ button in the Travel Agency header.
    • War Watch — connects to the Torn API to monitor active faction wars. During a war it auto-disables affected travel modules so you aren’t blocked from travelling, and shows how many enemy members are going to, already at, or returning from each destination. Badges appear on the world map (desktop) or inline on the destination list (mobile). Badge display can be toggled off for a cleaner UI while keeping module locking active.
    • Fully modular system: easily expandable with new checks without affecting existing behavior.

    ■ Compatibility

    Browser Desktop Mobile
    Chrome / Edge ▶ Yes ▶ Edge
    Firefox ▶ Yes ▶ Yes
    Kiwi Browser ■ N/A ▶ Yes
    TornPDA ■ N/A ▶ Yes

    ■ API Usage & Key Policy

    War Watch, OC Window, and Overdose / Addiction use your Limited API key to fetch faction war status, OC timing, and health data. TornPDA users do not need to enter a key — PDA provides it automatically. The table below discloses how your key and data are handled, as required by Torn’s API ToS.

    Data Storage Data Sharing Purpose of Use Key Storage & Sharing Key Access Level
    Locally only (browser localStorage). Faction data and war state cached until war ends or script is removed. Nobody Public amusement / personal convenience Stored locally only. Never transmitted to any third party or external server. Limited

    Your key is stored in your own browser’s localStorage and is only ever sent directly to api.torn.com. No data leaves your device to any external service.

    ■ Latest Update

    v2.3.0 — TRAVELING 2.0

    • OC timing rebuilt: Torn’s Phase 2 of Traveling 2.0 removed the data source the script relied on for non-API OC timing. The core blocking feature has been rebuilt from scratch to work with the new travel system — no change in behavior from your end.
    • Flight type aware: the script now correctly reads whichever flight type you have selected (Standard, Airstrip, Private, Business) and uses its actual duration when calculating whether your OC fires before you’re back.
    • Travel state detection updated: in-Torn detection also updated to account for changes introduced in the same Torn update.
    ■ Previous Updates

    v2.2.0 — API MODULES

    • OC Window: new API-powered module that fetches your actual OC ready time and blocks travel when it fires within a configurable window. Set how many hours ahead you want travel stopped — useful if you check the game infrequently. Has its own tab in the settings panel.
    • Overdose / Addiction: new API-powered module that monitors your happiness level and drug addiction penalty. Warns or blocks travel if either crosses your set threshold. Switzerland is automatically exempted since it’s the recovery destination. Has its own tab in the settings panel.
    • Limited API key: the script now requires a Limited key instead of Public. If you already had a key entered, you’ll need to replace it in the Modules tab of the settings panel.

    v2.2.1 — HOTFIX

    • Fixed stale faction data persisting across sessions — War Watch now refreshes faction info from the API on every page load instead of relying solely on the local cache.

    v2.1.0 — WAR WATCH

    • War Watch: new optional feature that monitors active faction wars via the Torn API. During a war, affected travel modules are automatically disabled so you’re never blocked from travelling. Restores module states when the war ends.
    • Enemy travel badges: shows how many enemy members are heading to, already at, or returning from each destination. Desktop shows badges on the world map pins; mobile shows them inline on the destination list.
    • Badge toggle: badges can be hidden independently of War Watch — module locking still works with badges off, for players who prefer a clean UI.
    • Settings panel close button: added ✕ button to the settings header for easier closing on mobile.
    • War lock visual: during a war, affected module buttons are visually grayed out and non-interactive to make it clear they are under automatic control.
    • TornPDA support: War Watch initializes automatically in PDA using the injected API key — no manual setup required.
    • OC Status module: new module that triggers when you have no active OC (no recruiting or planning icon found) or when your OC has been completed. Configurable as popup, block, or both — same options as all other modules.
    • Settings panel tabs: modules and War Watch are now on separate tabs so the panel stays compact regardless of how many modules are enabled.
    • Mid-war module sync: if the script is updated while a war is active, any newly added modules are automatically disabled to match the war lock state — no data clearing required.

    v2.0.1

    • Minor bug fixes.

    v2.0.0

    • Redesigned settings panel: rebuilt to match Torn’s dark UI.
    • Per-module action control: Block, Popup, Both, or Off per module.
    • Inline block warnings: reason shown directly inside the destination panel.
    • Improved reliability: more resilient selectors and stability fixes.

    v1.4.5

    • Fixed major regression: button state now restores correctly.
    • Bazaar Status module: notifies when bazaar is closed or has no items.
    • Consolidated notifications: multiple warnings shown in one dialog.

    v1.3.6

    • Drug Cooldown warning.
    • Toggles moved inside the ⚙ settings panel in the Travel Agency header.

    v1.2.10

    • Toggle integrated into Travel Agency header. UI and reliability improvements.
    ■ Previews Outdated

    ■ Desktop Preview

    Recorded in Test Mode so Torn doesn’t show OC conflict warnings, but the script disables travel.

    ■ Mobile Preview

    ■ Install

    ▶ INSTALL SCRIPT

    GreasyFork page here

    Requires Tampermonkey or Violentmonkey. TornPDA supported natively.

    04:33:26 - 04/03/26  Tozak sent some Xanax to you with the message: Loving your Travel Blocker, thanks!

    This is my first public userscript! I made it to help avoid accidental OC overlaps while traveling. If you have feedback, suggestions, or run into any bugs please feel free to share them on the GreasyFork discussion tab or leave a comment here. I’d love to improve it further.

    Last edited by Zonure on 12:21:21 - 09/07/26 (2 months ago)
    banner.php
    • OneStrangeGuy [3696702]
    • Role: Civilian
    • Level: 51
    • Posts: 748
    • Karma: 68
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:35:37 - 02/08/25 (1 year ago)
    Post link copied to clipboard Copy post link

    OMG i need this but to prevent me from traveling if my bazaar is closed lmao! this is awesome!

    12b85f33-8762-4434-9d60-7b7167a14fa7-3696702.gif?v=1940629196397

    • quit4good [3865640]
    • Role: Civilian
    • Level: 31
    • Posts: 17
    • Karma: 12
    • Last Action: 11 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:38:02 - 03/08/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Very nice. Like strangeguy said, settings you could enable and toggle like preventing travel if your bazaar is open/closed or if you do/don't have point or item market listings would be super useful too.

     

    Also the "Travel Blocker" button on the flight screen moves everything down a lot which looks kinda funky. It may not be necessary since you can toggle the script on/off already in the dashboard settings of whatever extension you installed the script through.

     

    Thanks for sharing and congrats on your first public script!

     

     

    Last edited by quit4good on 07:55:48 - 03/08/25 (1 year ago)
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:24:30 - 03/08/25 (1 year ago)
    Post link copied to clipboard Copy post link

    quit4good [3865640]

    Very nice. Like strangeguy said, settings you could enable and toggle like preventing travel if your bazaar is open/closed or if you do/don't have point or item market listings would be super useful too.

     

    Also the "Travel Blocker" button on the flight screen moves everything down a lot which looks kinda funky. It may not be necessary since you can toggle the script on/off already in the dashboard settings of whatever extension you installed the script through.

     

    Thanks for sharing and congrats on your first public script!

     

     

    Thanks for the response and good point about the toggle. I originally put it for PDA users that doesn't have easy access to disabling it, like to those who uses other browsers. 

     

    About the bazaar I currently don't have it but once I got bazaar Ill look into it.

    banner.php
    • EragonArgetlam [3626354]
    • Role: Civilian
    • Level: 82
    • Posts: 55
    • Karma: 12
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:57:42 - 20/08/25 (1 year ago)
    Post link copied to clipboard Copy post link

    Could this also check if you have drug CD?

    Maybe not block flying if you are on cd but if there was a warning "Hey you currently don't have any drug CD, you sure you want to fly?"

     

    Because my dumbass flies way too often while forgetting to take xan beforehand.

    Last edited by EragonArgetlam on 08:03:20 - 20/08/25 (1 year ago)
    • Casper [2181389]
    • Role: Civilian
    • Level: 89
    • Posts: 1,473
    • Karma: 695
    • Last Action: 3 months
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:00:22 - 11/11/25 (10 months ago)
    Post link copied to clipboard Copy post link

    Had it enabled after my last oc was done so wouldnt mis the next one and now it was disabled and i missed my oc. Can the script or pda app disable the script automaticly? Maybe through an update or bug? Verry weird! I could have forgotten it to but i tend to really focus on this and i really recall enabeling it as ocs are verry important to me and my faction. 

    koala_animated2_1.gif?ex=6612cfc4&is=66005ac4&hm=a9772dc05fcc8e3a1400ff2598315338d296686f1e09560cc3302f711d8dba08&

    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:42:28 - 24/12/25 (9 months ago)
    Post link copied to clipboard Copy post link

    Casper [2181389]

    Had it enabled after my last oc was done so wouldnt mis the next one and now it was disabled and i missed my oc. Can the script or pda app disable the script automaticly? Maybe through an update or bug? Verry weird! I could have forgotten it to but i tend to really focus on this and i really recall enabeling it as ocs are verry important to me and my faction. 

    Became a little busy so sorry for the late response. That being said I'll check the script to see what's the issue.

    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:05:54 - 01/01/26 (8 months ago)
    Post link copied to clipboard Copy post link

    Update v1.2.11 released.

     

    UI improvements and internal logic rework for better reliability on the Travel page.

    If you already have the script installed, your userscript manager should auto-update.

     

    Details are now reflected in the main post.

    banner.php
    • Doctor_Krieger [3555284]
    • Role: Civilian
    • Level: 50
    • Posts: 59
    • Karma: 43
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:44:21 - 04/01/26 (8 months ago)
    Post link copied to clipboard Copy post link

    We were just asking for this. Thank you for saving me from my stupidity!

    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:14:06 - 04/01/26 (8 months ago)
    Post link copied to clipboard Copy post link

    v1.3.5

    • New feature: Drug Cooldown warning.
    • Fixed major bug.
    • Moved toggles inside settings panel accessible with gear (⚙) button directly in the Travel Agency header.
    • Improved reliability and safety when blocking travel actions.
    • Laid groundwork for future features without affecting existing behavior.
    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:53:52 - 12/01/26 (8 months ago)
    Post link copied to clipboard Copy post link
      Important: This script was renamed.     If you previously installed OC Timing: Travel Blocker, please remove it first to avoid conflicts.

    v1.4.5

    •  
    • Fixed major regression: resolved a bug that could disable all travel buttons; button state now restores correctly.
    •  
    • More reliable blocking: desktop handling now reacts directly to the actual Travel/Continue click, reducing false global blocks.
    •  
    • Bazaar Status: added a Bazaar check module (notifies when bazaar is closed or has no items).
    •  
    • Consolidated notifications: multiple module warnings are now shown together in one dialog instead of spamming popups.
    •  
    • Safer injection: script now checks you’re actually in Torn before injecting controls (less noise outside the travel page).
    •  
    • Stability & UX tweaks: improved re-enable logic, minor reliability improvements and general polish.
    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:05:20 - 11/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    b

    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:40:01 - 07/03/26 (6 months ago)
    Post link copied to clipboard Copy post link

    b

    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:11:41 - 07/03/26 (6 months ago)
    Post link copied to clipboard Copy post link

    v2.0.0 is out - this one’s a big one.

    The jump to 2.0 reflects a full internal rebuild of how modules work and how the settings panel behaves. Here’s what changed:

    • Redesigned settings panel: completely rebuilt to match Torn’s own dark UI instead of the old white floating card that clashed with the page. It now looks like it belongs there.
    • Per-module action control: each module now has four options - Block, Popup, Both, or Off - instead of a simple on/off toggle. You choose exactly what each check does when it triggers.
    • Inline block warnings: when travel is blocked, a red warning now appears directly inside the destination panel telling you exactly which module is blocking it and why - right where you’re already looking, no separate popup needed.
    • OC Timing simplified: since OC conflicts can only be detected after you select a destination, OC Timing now shows a clean Enable/Disable toggle in settings rather than the full action options.
    • Improved reliability: selectors used to find page elements have been made more resilient to Torn’s internal changes, reducing the chance of silent failures after a Torn update.
    • Stability fixes: resolved an edge case where the script could initialize twice under certain conditions. MutationObserver now also debounces to avoid unnecessary work during page load.

    Update via your script manager or grab it from the GreasyFork page. As always, let me know if you run into anything.

    banner.php
    • T4t3z0r [3490633]
    • Role: Civilian
    • Level: 48
    • Posts: 25
    • Karma: 4
    • Last Action: 10 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:06:20 - 11/03/26 (6 months ago)
    Post link copied to clipboard Copy post link

    I can't get this one to work.  Is there supposed to be a place for an API key?  I'm using it in torn pda and regardless of drug cool down or oc status, it always blocks travel or gives a popup.  For example I currently have a 24 hour cooldown due to an od.  It's blocking me and telling me I can take a drug

    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:33:55 - 13/03/26 (6 months ago)
    Post link copied to clipboard Copy post link

    T4t3z0r [3490633]

    I can't get this one to work.  Is there supposed to be a place for an API key?  I'm using it in torn pda and regardless of drug cool down or oc status, it always blocks travel or gives a popup.  For example I currently have a 24 hour cooldown due to an od.  It's blocking me and telling me I can take a drug

    It doesn't need API Key cause it works by detecting icons present in the page. I fixed the issue, try updating the script and test it again.

    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 02:17:21 - 16/03/26 (6 months ago)
    Post link copied to clipboard Copy post link

    B

    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 07:15:40 - 21/03/26 (6 months ago)
    Post link copied to clipboard Copy post link

    B

    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:46:50 - 06/04/26 (5 months ago)
    Post link copied to clipboard Copy post link

    B

    banner.php
    • Zonure [3787510]
    • Role: Civilian
    • Level: 35
    • Posts: 76
    • Karma: 52
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:50:31 - 14/04/26 (5 months ago)
    Post link copied to clipboard Copy post link

    ■ UPDATE — v2.1.0

    Big update to Travel Blocker. Full changelog in the main post. short version:

    • War Watch - monitors your faction’s war status and shows enemy member travel intel on the destination list and world map. Auto-disables travel modules during wars so you’re never blocked from travelling when it matters.
    • OC Status module - notifies when you have no active OC or when your OC is completed.
    • Settings panel tabs - modules and War Watch are now on separate tabs so the panel stays compact.

    War Watch requires a Public API key (not needed on TornPDA). Install link in the main post.

    banner.php
Reply
Thread Title: