From 81e68896600c35c9c6d5eb5e60a95ee17919498b Mon Sep 17 00:00:00 2001 From: YousefSedik Date: Sat, 29 Nov 2025 15:01:01 +0200 Subject: [PATCH] fix: solutionLanguage selector updated --- content-script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content-script.js b/content-script.js index 102078b..da47118 100644 --- a/content-script.js +++ b/content-script.js @@ -104,7 +104,7 @@ const SELECTORS = { problemName: "div.flex.items-start.justify-between.gap-4 > div.flex.items-start.gap-2 > div > a", solutionLanguage: - "div.w-full.flex-1.overflow-y-auto > div > div:nth-child(3) > div.flex.items-center.justify-between.pb-2 > div", + "div.flex.h-full.flex-nowrap.items-center > div:nth-child(1) > button", accepted: "div.text-green-s.dark\\:text-dark-green-s.flex.flex-1.items-center.gap-2.text-\\[16px\\].font-medium.leading-6 > span", parentDiv: @@ -280,7 +280,7 @@ } // Get solution language - const langElement = document.querySelector(SELECTORS.solutionLanguage).childNodes[2] + const langElement = document.querySelector(SELECTORS.solutionLanguage) if (!langElement) { console.error("Language element not found") return null