// ==UserScript== // @name Auto Open Tab // @namespace http://tampermonkey.net/ // @version 2026-04-08 // @description try to take over the world! // @author You // @match https://dyandraglobalstore-02.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=dyandraglobalstore-02.com // @grant GM_openInTab // ==/UserScript== (function() { 'use strict'; const TARGET_HOUR = 15; // 5 PM const TARGET_MINUTE = 0; // 00 minutes const URL_PATTERN = /^https:\/\/widget\.loket\.com(\/.*)?$/; const now = new Date(); const currentHour = now.getHours(); const currentMinute = now.getMinutes(); // Check if current time is past the target time if (currentHour > TARGET_HOUR || (currentHour === TARGET_HOUR && currentMinute >= TARGET_MINUTE)) { // Get all links on the page const allLinks = document.querySelectorAll('a[href]'); // Filter and get unique matching URLs const matchingUrls = new Set(); allLinks.forEach(link => { const href = link.href; if (URL_PATTERN.test(href)) { matchingUrls.add(href); } }); if (matchingUrls.size > 0) { let index = 1; matchingUrls.forEach(url => { console.log(` ${index++}. ${url}`); }); // Open all matching URLs in new tabs matchingUrls.forEach(url => { console.log(🚀 Opening: ${url}); window.open(url, '_blank'); }); } else { } } else { } })();