script

function looping (sec = 10, num = 5) {
  let titles = [
    "British Pound / New Zealand Dollar, OANDA, Real-time, Market Open",
    "British Pound / Australian Dollar, OANDA, Real-time, Market Open",
    "British Pound / Japanese Yen, OANDA, Real-time, Market Open",
    "British Pound / Canadian Dollar, OANDA, Real-time, Market Open",
    "Euro / New Zealand Dollar, OANDA, Real-time, Market Open",
    // "Euro / Australian Dollar, OANDA, Real-time, Market Open",
    // "Euro / Canadian Dollar, OANDA, Real-time, Market Open",
    // "British Pound / U.S. Dollar, OANDA, Real-time, Market Open",
    // "Euro / Japanese Yen, OANDA, Real-time, Market Open",
    // "U.S. Dollar / Japanese Yen, OANDA, Real-time, Market Open",
  ]
  let ms = sec * 1000
  num++
  num = num >= titles.length ? 0 : num

  let title = titles[num]

  $(`[title='${title}']`).click()

  window.watchListLoop = setTimeout(() => {
    looping(sec, num)
  }, ms)

  window.stopLoop = () => {
    clearTimeout(window.watchListLoop);
  }

  window.pauseLoop = () => {
    window.xloopData = {
      sec,
      num
    }
    clearTimeout(window.watchListLoop);
  }

  window.contLoop = () => {
    if (!window.xloopData) {
      return
    }
    looping(window.xloopData.sec, window.xloopData.num)
    delete window.xloopData
  }
}
looping()