From 8a235d206a55218b53bc0d09f13bf6ba19abd435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=E2=80=9EJaczup=E2=80=9D=20Piwnik?= Date: Sun, 8 Dec 2024 20:02:34 +0100 Subject: [PATCH] Update index.js --- index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9e2acaa..64e2db3 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,8 @@ @wetraks - https://github.com/wetraks @cryblanka - https://github.com/cryblanka @9fm - https://github.com/9fm - + @MARECKIyt - https://github.com/MARECKIyt + */ const SCREEN_WIDTH = window.screen.availWidth @@ -1126,7 +1127,9 @@ function getRandomArrayEntry (arr) { return arr[Math.floor(Math.random() * arr.length)] } -// TODO: document this +/** + * Automates a series of Google searches in a browser window, moving the window randomly between searches. - Added by @MARECKIyt + */ function setupSearchWindow (win) { if (!win) return win.window.location = 'https://www.google.com/search?q=' + encodeURIComponent(SEARCHES[0])