Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jaczup authored Dec 8, 2024
1 parent f36c33c commit 8a235d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 8a235d2

Please sign in to comment.