// ==UserScript== // @name Dashboard auto-refresh // @namespace http://tampermonkey.net/ // @version 2025-05-05 // @description Automatically refresh your Multi-Player dashboard by re-applying your currently selected games filter. // @author JK_3 // @match https://www.warzone.com/MultiPlayer/ // @icon https://icons.duckduckgo.com/ip2/warzone.com.ico // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; const secondsBetweenRefreshes = 30; function RefreshFilter() { function SelectFilterOption(filterText) { let prompt = document.getElementById("AlertVMPrompt_Inner"); if (prompt) { let btn = Array.from(prompt.querySelectorAll("input")).filter(i => i.value.startsWith(filterText)).at(0); setTimeout(() => btn.click(), 300); // WZ is slow when adding event handlers, so we need to wait with clicking } else { setTimeout(() => SelectFilterOption(filterText), 25); } } let filterBtn = document.getElementById("MyGamesFilterBtn"); filterBtn.click(); SelectFilterOption(filterBtn.innerText.slice(8, -3)); } setInterval(RefreshFilter, secondsBetweenRefreshes * 1000); })();