Configuration Tatkal Tickets
IRCTC WebView

Filtering configuration

Active server-side rules for the mobile IRCTC WebView. The app fetches this JSON to dismiss startup alerts, prefer English, and hide nonessential page clutter during the booking journey.

Version 1
Preferred Language English
Startup Alert Enabled

Rule Groups

Read only

Startup alert dismissal

  • ALERT
  • Close: OK
  • Close: CLOSE
  • Close: DONE

Language preference

  • PLEASE SELECT YOUR PREFERRED
  • WELCOME TO IRCTC
  • PREFERRED LANGUAGE
  • Select: ENGLISH

Hidden selectors

  • [aria-label*="feedback" i]
  • [title*="feedback" i]
  • [class*="floating" i]
  • [class*="chat" i]
  • [class*="whats" i]
  • [class*="bot" i]
  • [class*="ticker" i]
  • [class*="marquee" i]
  • [class*="notification" i]
  • [class*="announcement" i]

Hidden text blocks

  • MY ACCOUNT + TRAINS + OTHER SERVICES
  • EXPLORE + BETA
  • VALUABLE SUGGESTIONS

JSON Config

/api/v1/irctc-webview-config
{
  "version": 1,
  "viewport": {
    "initialScale": "1.0",
    "maximumScale": "1.0",
    "userScalable": "yes"
  },
  "startupAlert": {
    "enabled": true,
    "dialogSelectors": [
      "[role=\"dialog\"]",
      ".ui-dialog",
      ".modal",
      ".modal-content",
      ".ui-widget-content"
    ],
    "textIncludes": [
      "ALERT"
    ],
    "excludeTextIncludes": [
      "BOOK TICKET",
      "FROM",
      "TO"
    ],
    "closeSelectors": [
      "button",
      "a",
      "[role=\"button\"]",
      ".ui-dialog-titlebar-close",
      ".close"
    ],
    "closeTextMatches": [
      "OK",
      "CLOSE",
      "DONE"
    ],
    "closeTextIncludes": [
      "CLOSE",
      "DISMISS"
    ]
  },
  "languagePreference": {
    "enabled": true,
    "preferredLanguage": "English",
    "dialogSelectors": [
      "[role=\"dialog\"]",
      ".ui-dialog",
      ".modal",
      ".modal-content",
      ".ui-widget-content",
      "div"
    ],
    "dialogTextIncludes": [
      "PLEASE SELECT YOUR PREFERRED",
      "WELCOME TO IRCTC",
      "PREFERRED LANGUAGE"
    ],
    "optionTextIncludes": [
      "ENGLISH"
    ],
    "confirmTextMatches": [
      "OK",
      "DONE",
      "SUBMIT",
      "CONTINUE"
    ],
    "confirmTextIncludes": [
      "PROCEED"
    ]
  },
  "clutter": {
    "bodyClass": "tatkal-irctc-focused",
    "directHideSelectors": [
      "[aria-label*=\"feedback\" i]",
      "[title*=\"feedback\" i]",
      "[class*=\"floating\" i]",
      "[class*=\"chat\" i]",
      "[class*=\"whats\" i]",
      "[class*=\"bot\" i]",
      "[class*=\"ticker\" i]",
      "[class*=\"marquee\" i]",
      "[class*=\"notification\" i]",
      "[class*=\"announcement\" i]"
    ],
    "cssRules": [
      "header, footer, app-header, app-footer { display: none !important; }",
      ".top-header, .h_container, .main-header, .navbar, .nav-bar { display: none !important; }",
      ".ui-sidebar { display: none !important; }",
      "[class*=\"advert\" i], [id*=\"advert\" i], [class*=\"banner\" i], [id*=\"banner\" i] { display: none !important; }",
      "[class*=\"promo\" i], [id*=\"promo\" i], [class*=\"feedback\" i], [id*=\"feedback\" i] { display: none !important; }",
      "iframe[src*=\"ads\"], iframe[src*=\"doubleclick\"] { display: none !important; }"
    ],
    "blockCandidateSelectors": "aside, nav, section, div",
    "blockTextGroups": [
      [
        "MY ACCOUNT",
        "TRAINS",
        "OTHER SERVICES"
      ],
      [
        "EXPLORE",
        "BETA"
      ],
      [
        "VALUABLE SUGGESTIONS"
      ]
    ]
  }
}