From 7afce9c3ac0e2fc7ed62a3b808135075b1b91178 Mon Sep 17 00:00:00 2001 From: Dustin Brett Date: Tue, 19 Aug 2025 21:56:10 -0700 Subject: [PATCH] Let sheep land on webamp too --- public/Program Files/eSheep/eSheep.js | 2 +- utils/spawnSheep.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/Program Files/eSheep/eSheep.js b/public/Program Files/eSheep/eSheep.js index 9dfd6273..544666eb 100644 --- a/public/Program Files/eSheep/eSheep.js +++ b/public/Program Files/eSheep/eSheep.js @@ -382,7 +382,7 @@ window.Sheep = class eSheep { let margin = 20; if (this.HTMLelement) margin = 5; for (const index in this.userOptions.collisionsWith) { - const els = document.body.getElementsByTagName( + const els = document.body.querySelectorAll( this.userOptions.collisionsWith[index] ); diff --git a/utils/spawnSheep.ts b/utils/spawnSheep.ts index f18a5061..aea71138 100644 --- a/utils/spawnSheep.ts +++ b/utils/spawnSheep.ts @@ -48,7 +48,11 @@ export const spawnSheep = (pickRandom?: boolean): Promise => if (window.Sheep) { const sheep = new window.Sheep({ allowPopup: "no", - collisionsWith: ["nav", "section"], + collisionsWith: [ + "#__next main > nav", // Taskbar + ".react-draggable section", // Windows + "#webamp .window", // Webamp Windows + ], footerMargin: TASKBAR_HEIGHT, spawnContainer: document.querySelector("main") as HTMLElement, });